public function Framework_MockObject_Matcher_ConsecutiveParametersTest::testIntegration 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::testIntegration()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObject/ Matcher/ ConsecutiveParametersTest.php, line 4
Class
Code
public function testIntegration() {
$mock = $this
->getMock('stdClass', array(
'foo',
));
$mock
->expects($this
->any())
->method('foo')
->withConsecutive(array(
'bar',
), array(
21,
42,
));
$mock
->foo('bar');
$mock
->foo(21, 42);
}