You are here

public function Framework_MockObject_Invocation_ObjectTest::testAllowToGetMethodNameSetInConstructor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php \Framework_MockObject_Invocation_ObjectTest::testAllowToGetMethodNameSetInConstructor()

File

vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php, line 27

Class

Framework_MockObject_Invocation_ObjectTest

Code

public function testAllowToGetMethodNameSetInConstructor() {
  $invocation = new PHPUnit_Framework_MockObject_Invocation_Object('FooClass', 'FooMethod', array(
    'an_argument',
  ), new StdClass());
  $this
    ->assertSame('FooMethod', $invocation->methodName);
}