コード例 #1
0
ファイル: ShellTest.php プロジェクト: mast3rpee/blw
 /**
  * @depends test_createCommandLine
  * @depends test_createDescriptors
  * @depends test_transferStreams
  * @covers ::doRun
  * @covers ::open
  * @covers ::close
  * @covers ::transferStreams
  * @covers ::getStatus
  */
 public function test_doRun()
 {
     $Expected = 'foo';
     $this->assertLessThanOrEqual(0, $this->Command->doRun($this->Input, $this->Output), 'ShellCommand::doRun() returned an invalid result');
     $this->assertEquals($Expected, $this->Output->stdOut->getContents(), 'ShellCommand::doRun() Failed to process command output');
     $this->assertEmpty($this->Output->stdErr->getContents(), 'ShellCommand::doRun() Failed to process command error');
 }