Esempio n. 1
0
 /**
  * Important: Test must run before testClassLoad
  *
  * Because testClassLoads loads the real code into stack
  */
 public function testLoadInterface()
 {
     $classFile = $this->baseDir . self::$classFile;
     $this->assertFileExists($classFile);
     $loader = new Loader();
     $loader->registerNamespace('My\\Library', dirname($classFile));
     $this->assertFalse($loader->loadClass('DOES\\NOT\\EXISTS'));
     $this->assertTrue($loader->loadClass('My\\Library\\TestStruct'));
 }