コード例 #1
0
 /**
  * @test
  */
 public function load()
 {
     $loader = new Stagehand_Autoload_Loader_LegacyLoader();
     $loader->addNamespace('Stagehand_Autoload_Loader_LegacyLoaderTest');
     $this->assertTrue($loader->load('Stagehand_Autoload_Loader_LegacyLoaderTest_Foo'));
     $this->assertTrue(class_exists('Stagehand_Autoload_Loader_LegacyLoaderTest_Foo', false));
 }
コード例 #2
0
 protected function matchNamespace($class, $namespace)
 {
     $this->processedNamespaces[] = $namespace;
     return parent::matchNamespace($class, $namespace);
 }