public function Framework_MockObject_Invocation_ObjectTest::testAllowToGetClassNameSetInConstructor 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::testAllowToGetClassNameSetInConstructor()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObject/ Invocation/ ObjectTest.php, line 15
Class
Code
public function testAllowToGetClassNameSetInConstructor() {
$invocation = new PHPUnit_Framework_MockObject_Invocation_Object('FooClass', 'FooMethod', array(
'an_argument',
), new StdClass());
$this
->assertSame('FooClass', $invocation->className);
}