lithium\tests\cases\console\command\RouteTest::testShowWithInvalidRoute PHP Method

testShowWithInvalidRoute() public method

Test the show command with an invalid route.
    public function testShowWithInvalidRoute()
    {
        $request = new Request();
        $request->params = array('args' => array('/foobar'));
        $command = new Route(compact('request') + array('routes' => $this->_config['routes'], 'classes' => array('response' => 'lithium\\tests\\mocks\\console\\MockResponse')));
        $command->show();
        $expected = "No route found.\n";
        $this->assertEqual($expected, $command->response->output);
    }