/**
  * @group ZF-7550
  * @group disable
  */
 public function testRequestingPluginsByAutoloadableClassNameShouldNotRaiseFatalErrors()
 {
     // Using namesapce 'zabt' to prevent conflict with Zend namespace
     $rl = new ResourceAutoloader(array('namespace' => 'Zabt', 'basePath' => __DIR__ . '/TestAsset'));
     $rl->addResourceType('resources', 'resources', 'Resource');
     $options = array('resources' => array('Zabt\\Resource\\Autoloaded' => array('bar' => 'baz')));
     set_error_handler(array($this, 'handleError'));
     $this->application->setOptions($options);
     $bootstrap = new Application\Bootstrap($this->application);
     $bootstrap->bootstrap();
     restore_error_handler();
 }
Example #2
0
 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);
 }