public function Framework_MockObjectTest::testMockedMethodIsCalledAtMosttTwice2 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php \Framework_MockObjectTest::testMockedMethodIsCalledAtMosttTwice2()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php, line 98
Class
- Framework_MockObjectTest
- @since Class available since Release 3.0.0
Code
public function testMockedMethodIsCalledAtMosttTwice2() {
$mock = $this
->getMock('AnInterface');
$mock
->expects($this
->atMost(2))
->method('doSomething');
$mock
->doSomething();
}