public function testIdempotence() {
DebugClassLoader::enable();
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('classFinder');
$reflProp
->setAccessible(true);
$this
->assertNotInstanceOf('Symfony\\Component\\ClassLoader\\DebugClassLoader', $reflProp
->getValue($function[0]));
return;
}
}
throw new \Exception('DebugClassLoader did not register');
}