/** * @group ZF-8496 */ public function testBootstrapAutoloaderNamespaceShouldBeConfigurable() { $application = new Zend_Application('testing', array('appnamespace' => 'Default')); $bootstrap = new Zend_Application_Bootstrap_Bootstrap($application); $al = $bootstrap->getResourceLoader(); $this->assertEquals('Default', $al->getNamespace()); }
/** * @group ZF-9435 */ public function testBootstrapShouldInitializeModuleAutoloaderWhenNamespaceSpecifiedAsEmpty() { $application = new Zend_Application('testing', array('appnamespace' => null)); $bootstrap = new Zend_Application_Bootstrap_Bootstrap($application); // Tests $this->assertTrue($bootstrap->getResourceLoader() instanceof Zend_Application_Module_Autoloader); $al = $bootstrap->getResourceLoader(); $this->assertEquals('', $al->getNamespace()); }