Em_Model_Collection_MapperTest::testDeleteCollectionWithJoinTable Expectation failed for method name is equal towhen invoked 2 time(s). Method was expected to be called 2 times, actually called 2 times.
PHPUnit and Mock Object Exactly Method
Nov 1st, 2009
[php]
$mapper->expects($this->exactly('2'))->method('delete');
$mapper->expects($this->exactly(2))->method('delete');
[/php]
The two above lines of code don't behave the same. When passing in 2 as a string instead of a number, PHPUnit declares it a failure:
Posted In: PHP