Beispiel #1
0
 public function testDispatchRaisesDomainExceptionIfDiscoveredControllerIsNotDispatchable()
 {
     $locator = $this->controller->getServiceLocator();
     $locator->add('bogus', function () {
         return new stdClass();
     });
     $this->setExpectedException('Zend\\ServiceManager\\Exception\\ServiceNotFoundException');
     $this->plugin->dispatch('bogus');
 }