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 및 기고자.PHP 단위로 모의 불량 오류 리턴을 사용하는 경우
........
은 나를 무슨 잘못 내 코드를 도울 수 있는가?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
당신에게 방법을 반복하고 있습니다. 귀하의 방법을 확인 –
아니 난 testClass 안에 방법을 반복하지 않는 당신이 말하는 방법을 확인했습니다 –