phockito icon indicating copy to clipboard operation
phockito copied to clipboard

argOfTypeThat() function that allows us to keep HamcrestXXX:: out of our code isn't working

Open tpimienta opened this issue 7 years ago • 0 comments
trafficstars

The example shown in the README:

Phockito::when($stub)->Foo(argOfTypeThat('B', is(equalTo($b))))->return('Zap');

Does not work. Simply missing return statement. Fixed. Added test case. Pull request #39. I'm a github noob ;-)

tpimienta avatar Jul 28 '18 21:07 tpimienta