You are here

public function ClassUtilsTest::testNewReflectionObject in Plug 7

@dataProvider dataGetClass

File

lib/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());
}