/** * @expectedException \RuntimeException */ public function testExceptionPassedThroughMiddlewares() { Apricot::reset(); Apricot::add(function () { throw new \Exception(); }); Apricot::add(function ($e) { throw new \RuntimeException(); }); Apricot::browse('/'); }