You are here

public function Framework_MockObject_Matcher_ConsecutiveParametersTest::testIntegrationWithLessAssertionsThenMethodCalls in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

Framework_MockObject_Matcher_ConsecutiveParametersTest

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);
}