public function Framework_MockObject_Matcher_ConsecutiveParametersTest::testIntegrationWithLessAssertionsThenMethodCalls in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/tests/MockObject/Matcher/ConsecutiveParametersTest.php \Framework_MockObject_Matcher_ConsecutiveParametersTest::testIntegrationWithLessAssertionsThenMethodCalls()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObject/ Matcher/ ConsecutiveParametersTest.php, line 18
Class
Code
public function testIntegrationWithLessAssertionsThenMethodCalls() {
$mock = $this
->getMock('stdClass', array(
'foo',
));
$mock
->expects($this
->any())
->method('foo')
->withConsecutive(array(
'bar',
));
$mock
->foo('bar');
$mock
->foo(21, 42);
}