RouterTest::check PHP Méthode

check() public méthode

Checks if a route was matched with a given output
public check ( $str = '' )
    function check($str = '')
    {
        /*
        $route = $this->router->route($this->request);
        
        $params = array_values($route->params);
        
        $this->assertTrue(is_callable($route->callback));
        
        call_user_func_array($route->callback, $params);
        */
        $this->routeRequest();
        $this->expectOutputString($str);
    }