You are here

public function ClassLoaderTest::testSupportsInterfaceAutoloading in Zircon Profile 8

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/ClassLoaderTest.php, line 97

Class

ClassLoaderTest

Namespace

Doctrine\Tests\Common

Code

public function testSupportsInterfaceAutoloading() {
  $classLoader = new ClassLoader();
  $classLoader
    ->setIncludePath(__DIR__);
  $classLoader
    ->setFileExtension('.class.php');
  $classLoader
    ->setNamespaceSeparator('_');
  $this
    ->assertTrue($classLoader
    ->loadClass('ClassLoaderTest_InterfaceA'));
  $this
    ->assertTrue(interface_exists('ClassLoaderTest_InterfaceA', false));
}