コード例 #1
0
ファイル: CommandTest.php プロジェクト: EHER/monopolis
 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);
 }
コード例 #2
0
 public function testOutWithSilent()
 {
     $command = new MockCommand(array('request' => $this->request));
     $command->silent = true;
     $expected = "";
     $result = $command->out('ok', 'some-style');
     $this->assertEqual($expected, $result);
 }