public function testDoesNotAllowNonStringPaths($path) { $this->setExpectedException('InvalidArgumentException'); $route = new Route($path, function () { }); }