Phalcon\Test\Unit\Mvc\RouterTest::testAddingRouteByUsingShortPaths PHP Method

testAddingRouteByUsingShortPaths() public method

Tests adding a route to the router by using short path
Since: 2012-01-16
Author: Andy Gutierrez ([email protected])
    public function testAddingRouteByUsingShortPaths()
    {
        $this->specify('Adding a route to the router by using short path does not produce expected paths', function ($route, $path, $expected) {
            $router = $this->getRouter(false);
            $route = $router->add($route, $path);
            expect($route->getPaths())->equals($expected);
        }, ['examples' => $this->pathsProvider()]);
    }