lithium\tests\cases\console\CommandTest::testErrorArray PHP Method

testErrorArray() public method

public testErrorArray ( )
    public function testErrorArray()
    {
        $command = new MockCommand(array('request' => $this->request));
        $expected = "line 1\nline 2\n";
        $command->error(array('line 1', 'line 2'));
        $result = $command->response->error;
        $this->assertEqual($expected, $result);
    }