public function Framework_MockObject_Invocation_ObjectTest::testAllowToGetMethodParametersSetInConstructor in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php \Framework_MockObject_Invocation_ObjectTest::testAllowToGetMethodParametersSetInConstructor()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObject/ Invocation/ ObjectTest.php, line 53
Class
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);
}