sebastianbergmann/phpunit-mock-objects — pull request #86 by lstrojny (2012-03-14 16:24:24+00:00)
Title: Fixing verification of mock objects without specific parameter matchers

The attached patch fixes the wrong behavior of not verifying method names when no explicit parameters are specified. This is the reproduction case:

```php
getMock('Clazz');
$mock1->expects($this->at(0))
->method('execute');

$mock1->anotherMethod();
}

function testActuallyFails()
{
$mock1 = $this->getMock('Clazz');
$mock1->expects($this->at(0))
->method('execute')
->with();

$mock1->execute("foo");
}
}
```