/** * @group ZF-8496 */ public function testBootstrapAutoloaderNamespaceShouldBeConfigurable() { $application = new Application\Application('testing', array('appnamespace' => 'Default')); $bootstrap = new Application\Bootstrap($application); $al = $bootstrap->getResourceLoader(); $this->assertEquals('Default', $al->getNamespace()); }
/** * @group ZF-9110 */ public function testPassingSameBootstrapAsApplicationShouldNotCauseRecursion() { $this->setExpectedException('Zend\\Application\\Exception\\InvalidArgumentException'); $bootstrap = new Application\Bootstrap($this->application); $bootstrap->setApplication($bootstrap); }
public function testFrontControllerSpecShouldNotBeOverwrittenByBootstrap() { $application = new Application\Application('testing', array('resources' => array('frontcontroller' => array('controllerDirectory' => __DIR__ . '/TestAsset/modules/application/controllers', 'moduleDirectory' => __DIR__ . '/TestAsset/modules'), 'modules' => array()))); $bootstrap = new Application\Bootstrap($application); $bootstrap->bootstrap(); $front = $bootstrap->getResource('frontcontroller'); $module = $front->getDefaultModule(); $dir = $front->getControllerDirectory($module); $this->assertNotNull($dir); }