0
$this->formatter = $this->getMockBuilder("TDD\Formatter")
->setMethods([ 'currencyAmt' ])
->getMock();
$this->formatter->expects($this->any())
->method('currencyAmt')
->with($this->anything())
->will($this->returnArgument(0));
PHPUnit 6.5.3 by Sebastian Bergmann and contributors。PHPユニットでMock bulderエラーを返す場合
........
Fatal error: Cannot use PHPUnit\Framework\MockObject\Invocation as Invocation because the name is already in use in C:\wamp64\www\unit\vendor\phpunit\phpunit-mock-objects\src\Matcher\MethodName.php on line 14
いただきました私のコードで間違って任意の私を助けることができますか?
下にチェックPHPUnitの-モックオブジェクトの新バージョンをリリースしているgithubのに報告しています方法を繰り返す。あなたのメソッドを確認する –
いいえ、私はtestClassの中でメソッドを繰り返さない –