public function Framework_MockObject_Invocation_StaticTest::testConstructorAllowToSetFlagCloneObjectsInParameters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php \Framework_MockObject_Invocation_StaticTest::testConstructorAllowToSetFlagCloneObjectsInParameters()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObject/ Invocation/ StaticTest.php, line 39
Class
Code
public function testConstructorAllowToSetFlagCloneObjectsInParameters() {
$parameters = array(
new StdClass(),
);
$cloneObjects = true;
$invocation = new PHPUnit_Framework_MockObject_Invocation_Static('FooClass', 'FooMethod', $parameters, $cloneObjects);
$this
->assertEquals($parameters, $invocation->parameters);
$this
->assertNotSame($parameters, $invocation->parameters);
}