You are here

public function ClassUtilsTest::testGetClass in Zircon Profile 8

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

@dataProvider dataGetClass

File

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

Class

ClassUtilsTest

Namespace

Doctrine\Tests\Common\Util

Code

public function testGetClass($className, $expectedClassName) {
  $object = new $className();
  $this
    ->assertEquals($expectedClassName, ClassUtils::getClass($object));
}