You are here

public function Framework_MockObject_Invocation_StaticTest::testAllowToGetMethodParametersSetInConstructor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php \Framework_MockObject_Invocation_StaticTest::testAllowToGetMethodParametersSetInConstructor()

File

vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php, line 24

Class

Framework_MockObject_Invocation_StaticTest

Code

public function testAllowToGetMethodParametersSetInConstructor() {
  $expectedParameters = array(
    'foo',
    5,
    array(
      'a',
      'b',
    ),
    new StdClass(),
    null,
    false,
  );
  $invocation = new PHPUnit_Framework_MockObject_Invocation_Static('FooClass', 'FooMethod', $expectedParameters);
  $this
    ->assertSame($expectedParameters, $invocation->parameters);
}