Phalcon\Test\Unit\Mvc\RouterTest::testRemovingExtraSlashes PHP Метод

testRemovingExtraSlashes() публичный Метод

Tests removing extra slashes
С версии: 2012-12-16
Автор: 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()]);
    }