public function testOutArray() { $command = new MockCommand(array('request' => $this->request)); $expected = "line 1\nline 2\n"; $command->out(array('line 1', 'line 2')); $result = $command->response->output; $this->assertEqual($expected, $result); }
public function testOutWithSilent() { $command = new MockCommand(array('request' => $this->request)); $command->silent = true; $expected = ""; $result = $command->out('ok', 'some-style'); $this->assertEqual($expected, $result); }