/** * @expectedException \Exception */ public function testAfterRegularException() { $expectedResponse = new TemplateResponse('core', '403', array(), 'guest'); $expectedResponse->setStatus(403); $this->subadminMiddleware->afterException($this->controller, 'foo', new \Exception()); }
public function testAfterException() { $expectedResponse = new TemplateResponse('core', '403', array(), 'guest'); $this->assertEquals($expectedResponse, $this->subadminMiddleware->afterException($this->controller, 'foo', new \Exception())); }