public function testOnDispatchRaisesDomainExceptionOnMissingRoute() { $controller = new ResourceController(); $controller->setResource($this->resource); $this->setExpectedException('PhlyRestfully\\Exception\\DomainException', 'route'); $controller->onDispatch($this->event); }