public function ClassUtilsTest::testNewReflectionObject in Plug 7
@dataProvider dataGetClass
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Util/ ClassUtilsTest.php, line 61
Class
Namespace
Doctrine\Tests\Common\UtilCode
public function testNewReflectionObject($className, $expectedClassName) {
$object = new $className();
$reflClass = ClassUtils::newReflectionObject($object);
$this
->assertEquals($expectedClassName, $reflClass
->getName());
}