/** * Returns the path to the class definition * * The class definition must be created with makeClass() * or makeClassInNamespace(). * * @param String $class The class name * * @see makeClass() * @see makeClassInNamespace() * @return String */ public function getGeneratedClassPath($class) { $normlizedName = $class; AbstractAutoloader::normalizeClass($normlizedName); return $this->_generatedClassPaths[$normlizedName]; }
/** * Tests removing of class definitions * * If an Autoloader found a class, the path for the class definition is fetched * from the index. If the class definition is removed, the autoloader should * fail. * * @return void */ public function testRemoveClassdefinition() { $class = uniqid("testclass"); $index = Autoloader::getRegisteredAutoloader()->getIndex(); AbstractAutoloader::normalizeClass($class); $index->setPath($class, uniqid('/dev/null/')); $this->_autoloaderTestHelper->assertNotLoadable($class); $this->assertFalse($index->hasPath($class)); }