Esempio n. 1
0
 public function testClearPathsWithPrefixStaticallyClearsPathArray()
 {
     $this->key = 'foobar';
     $loader = new Zend_Loader_PluginLoader(array(), $this->key);
     $loader->addPrefixPath('Zend_View', $this->libPath . '/Zend/View')->addPrefixPath('Zend_Loader', $this->libPath . '/Zend/Loader')->addPrefixPath('Zend_Loader', $this->libPath . '/Zend');
     $paths = $loader->getPaths();
     $this->assertEquals(2, count($paths));
     $loader->clearPaths('Zend_Loader');
     $paths = $loader->getPaths();
     $this->assertEquals(1, count($paths));
 }