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