sebastianbergmann/phpunit-mock-objects — pull request #185 by arosslau (2014-07-11 21:43:36+00:00)
Title: extended MockObject for shortcut methods

... of expactations (consistent to shortcuts for returnValues); also extended mocked_class template for new methods in Interface.

## Purpose/Discription
This is a featurerequest for having those shortcutmethods for expectations on mocks similar to the shortCuts of the returnValue (e.g. "->willReturnValue()" or "->willReturnValueMap").

## Effect/Changes in Tests

$mock->expects($this->once())
$mock->expects($this->any())
$mock->expects($this->exactly(12))
$mock->expects($this->at(12))
$mock->expects($this->atLeastOnce())
$mock->expects($this->never())

becomes

$mock->expectsOnce()
$mock->expectsAny()
$mock->expectsExactly(12)
$mock->expectsAt(12)
$mock->expectsAtLeastOnce()
$mock->expectsNever()

## The changes were tested with PHPUnit 4.1 (latest stable)
So it would be nice to appear in the next minor? :-)