コード例 #1
0
ファイル: RunnerTest.php プロジェクト: codegyre/robo
 public function testRunnerDebugOutput()
 {
     $argv = ['placeholder', 'test:verbosity', '-vvv'];
     $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
     $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
     $this->guy->seeInOutput('This is a verbose message (-v).');
     $this->guy->seeInOutput('This is a very verbose message (-vv).');
     $this->guy->seeInOutput('This is a debug message (-vvv).');
     $this->guy->seeInOutput(' [warning] This is a warning log message.');
     $this->guy->seeInOutput(' [notice] This is a notice log message.');
     $this->guy->seeInOutput(' [debug] This is a debug log message.');
     $this->assertEquals(0, $result);
 }