You are here

public function Framework_MockObject_Invocation_ObjectTest::testAllowToGetObjectSetInConstructor in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

Framework_MockObject_Invocation_ObjectTest

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);
}