/**
* @test
*/
public function testError()
{
try {
$this->app->error();
$this->assertTrue(false, 'app->error() should throw StopException');
} catch (StopException $e) {
$this->assertTrue(true);
$this->assertEquals(500, $this->app->response->getStatus());
}
}