public function Framework_MockObject_Invocation_ObjectTest::testAllowToGetObjectSetInConstructor in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php \Framework_MockObject_Invocation_ObjectTest::testAllowToGetObjectSetInConstructor()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObject/ Invocation/ ObjectTest.php, line 39
Class
Code
public function testAllowToGetObjectSetInConstructor() {
$expectedObject = new StdClass();
$invocation = new PHPUnit_Framework_MockObject_Invocation_Object('FooClass', 'FooMethod', array(
'an_argument',
), $expectedObject);
$this
->assertSame($expectedObject, $invocation->object);
}