public function testAutoincluding() { Zend_Loader_AutoloaderFactory::factory(array('Zend_Loader_ClassMapAutoloader' => array(dirname(__FILE__) . '/_files/goodmap.php'))); $loader = Zend_Loader_AutoloaderFactory::getRegisteredAutoloader('Zend_Loader_ClassMapAutoloader'); $map = $loader->getAutoloadMap(); $this->assertTrue(is_array($map)); $this->assertEquals(2, count($map)); }
public function testGetInvalidAutoloaderThrowsException() { $this->setExpectedException('Zend_Loader_Exception_InvalidArgumentException'); $loader = Zend_Loader_AutoloaderFactory::getRegisteredAutoloader('InvalidAutoloader'); }