コード例 #1
0
ファイル: ExecTest.php プロジェクト: griffbrad/gasp
 public function testCommandOutputIsIncludedInResult()
 {
     $result = $this->exec->setCmd("bash -c 'echo TEST_OUTPUT'")->run();
     $this->assertContains('TEST_OUTPUT', $result->getOutput());
 }
コード例 #2
0
ファイル: ClassMap.php プロジェクト: griffbrad/gasp
 public function exec($cmd)
 {
     $task = new ExecTask();
     return $task->setGasp($this->gasp)->setClassMap($this)->setCmd($cmd)->run();
 }