阅读背景:

使用PHPUnit mock对象,是否可能期望调用魔法__call()方法?

来源:互联网 

I've got a mock object in a test. The real object, PageRepository, implements a magic method using __call(), so if you call $pageRepository->findOneByXXXX($value_of_field_XXXX), it will search the database for records matching that parameter. I've got a mock object in a test. The real obje




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

分享到: