Scalr\Tests\Api\Rest\Routing\RouteTest::getRouteFixture PHP Method

getRouteFixture() public method

Gets route fixture object
public getRouteFixture ( ) : Scalr\Api\Rest\Routing\Route
return Scalr\Api\Rest\Routing\Route Gets route fixture object
    public function getRouteFixture()
    {
        $route = new Route('/api/path/:id', function () {
        }, ['id' => '[\\d]+']);
        $route->setMethods([Request::METHOD_GET]);
        return $route;
    }