public function testAccessingInvalidControllerRaisesException() { $map = $this->app->map('/:controller', 'bogus-callback'); $this->setExpectedException('Phlyty\\Exception\\InvalidControllerException'); $map->controller(); }