public function testVerificationOfNeverFailsWithEmptyParameters() {
$mock = $this
->getMock('SomeClass', array(
'right',
'wrong',
), array(), '', TRUE, TRUE, TRUE);
$mock
->expects($this
->never())
->method('right')
->with();
try {
$mock
->right();
$this
->fail('Expected exception');
} catch (PHPUnit_Framework_ExpectationFailedException $e) {
$this
->assertSame('SomeClass::right() was not expected to be called.', $e
->getMessage());
}
$this
->resetMockObjects();
}