阅读背景:

如何在PHPUnit模拟对象中测试第二个参数

来源:互联网 

This is what I have:

这就是我所拥有的:

$observer = $this->getMock('SomeObserverClass', array('method'));
$observer->expects($this->once())
         ->method('method')
         ->with($this->equalTo($arg1));
$observer = 



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

分享到: