You are here

public function ClassUtilsTest::testNewReflectionObject in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php \Doctrine\Tests\Common\Util\ClassUtilsTest::testNewReflectionObject()

@dataProvider dataGetClass

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php, line 61

Class

ClassUtilsTest

Namespace

Doctrine\Tests\Common\Util

Code

public function testNewReflectionObject($className, $expectedClassName) {
  $object = new $className();
  $reflClass = ClassUtils::newReflectionObject($object);
  $this
    ->assertEquals($expectedClassName, $reflClass
    ->getName());
}