public function Framework_MockObject_Invocation_ObjectTest::testAllowToGetMethodParametersSetInConstructor

File

drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/ObjectTest.php, line 49

Class

Framework_MockObject_Invocation_ObjectTest

Code

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