$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.
........
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
Whats wrong with my code can any help me ?