public function testCommandOutputIsIncludedInResult() { $result = $this->exec->setCmd("bash -c 'echo TEST_OUTPUT'")->run(); $this->assertContains('TEST_OUTPUT', $result->getOutput()); }
public function exec($cmd) { $task = new ExecTask(); return $task->setGasp($this->gasp)->setClassMap($this)->setCmd($cmd)->run(); }