/** * @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)); }
protected function matchNamespace($class, $namespace) { $this->processedNamespaces[] = $namespace; return parent::matchNamespace($class, $namespace); }