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

testAllWithoutEnvironment() public method

Don't be confused if the expected output doesn't make sense here. We are stripping the whitespace away so that this source code is easier to read. Built-In methods are used for output formatting and are tested elsewhere.
    public function testAllWithoutEnvironment()
    {
        $command = new Route(array('routes' => $this->_config['routes'], 'classes' => array('response' => 'lithium\\tests\\mocks\\console\\MockResponse'), 'request' => new Request()));
        $command->all();
        $expected = 'TemplateParams--------------';
        $expected .= '/{"controller":"Pages","action":"view"}';
        $expected .= '/pages/{:args}{"controller":"Pages","action":"view"}';
        $expected .= '/test/{:args}{"controller":"lithium\\test\\\\Controller","action":"index"}';
        $expected .= '/test{"controller":"lithium\\test\\\\Controller","action":"index"}';
        $this->assertEqual($this->_strip($expected), $this->_strip($command->response->output));
    }