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

testRemovingExtraSlashes() public method

Tests removing extra slashes
Since: 2012-12-16
Author: Andy Gutierrez ([email protected])
    public function testRemovingExtraSlashes()
    {
        $this->specify('Removing extra slashes does not work as expected', function ($route, $paths) {
            $router = $this->getRouter();
            $router->removeExtraSlashes(true);
            $router->handle($route);
            expect($router->wasMatched())->true();
            expect($router->getControllerName())->equals($paths['controller']);
            expect($router->getActionName())->equals($paths['action']);
        }, ['examples' => $this->extraSlashesProvider()]);
    }