public function ClassLoaderTest::testSupportsInterfaceAutoloading in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ ClassLoaderTest.php, line 97
Class
Namespace
Doctrine\Tests\CommonCode
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));
}