public function DebugClassLoaderTest::testIdempotence in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/debug/Tests/DebugClassLoaderTest.php \Symfony\Component\Debug\Tests\DebugClassLoaderTest::testIdempotence()
File
- vendor/
symfony/ debug/ Tests/ DebugClassLoaderTest.php, line 42
Class
Namespace
Symfony\Component\Debug\TestsCode
public function testIdempotence() {
DebugClassLoader::enable();
$functions = spl_autoload_functions();
foreach ($functions as $function) {
if (is_array($function) && $function[0] instanceof DebugClassLoader) {
$reflClass = new \ReflectionClass($function[0]);
$reflProp = $reflClass
->getProperty('classLoader');
$reflProp
->setAccessible(true);
$this
->assertNotInstanceOf('Symfony\\Component\\Debug\\DebugClassLoader', $reflProp
->getValue($function[0]));
return;
}
}
$this
->fail('DebugClassLoader did not register');
}