阅读背景:

PHPUnit模拟对象和方法类型提示

来源:互联网 

I'm trying to create a mock object of \SplObserver using PHPunit and attach the mocked object to an \SplSubject. When I try to attach the mocked object to a class that implements \SplSubject, I get a catchable fatal error saying that the mocked object doesn't implement \SplObserver:I'm trying to create a mock object of \SplObser




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: