Example #1
0
 public function testCanNotLoadSomeObjectModuleWithoutIdentifier()
 {
     require_once __DIR__ . '/TestAsset/SomeModule/Module.php';
     $configListener = $this->defaultListeners->getConfigListener();
     $moduleManager = new ModuleManager(array(new \SomeModule\Module()), new EventManager());
     $moduleManager->getEventManager()->attachAggregate($this->defaultListeners);
     $this->setExpectedException('Zend\\ModuleManager\\Exception\\RuntimeException');
     $moduleManager->loadModules();
 }