我刚刚将phpunit 7.5.20升级到phpunit 9.5.0,我遇到了很多错误(实际上是好的),但不是100%确定如何解决其中的一些错误。may not return value of type NULL, its return declaration is "void" 只有在创建createConfiguredMock()并将null方法作为参数传递时php
class DummyTest extends PHPUnit\Framework\Te
我正在尝试创建我的第一个phpunit测试,并且发现自己需要在IMailer接口上存根一个方法。in ...Test.php on line 16class Mock_IMailer_4c3e02a7#215 (1) { NULL使用expect($this->any())会给出一个dito错误-似乎被模拟的对象没有任何模拟功能……
我在ubuntu机器上