예제 #1
0
 /**
  * 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];
 }
예제 #2
0
 /**
  * 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));
 }