コード例 #1
0
 /**
  * @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());
 }
コード例 #2
0
ファイル: BootstrapTest.php プロジェクト: jsnshrmn/Suma
 /**
  * @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());
 }