public function install()
 {
     $this->getOutput()->step('Initialize test suite');
     $this->execute->mustRunAll(array_merge($this->getBehatInstallProcesses(), $this->getUnitTestInstallProcesses()));
     $this->getOutput()->step('Building configs');
     $this->execute->mustRunAll($this->getPostInstallProcesses());
 }
 public function install()
 {
     $this->getOutput()->step('Install dependencies');
     $processes = [];
     if ($this->plugin->hasUnitTests() || $this->plugin->hasBehatFeatures()) {
         $processes[] = new Process('composer install --no-interaction --prefer-dist', $this->moodle->directory, null, null, null);
     }
     $processes[] = new Process('npm install -g jshint csslint shifter@0.4.6', null, null, null, null);
     $this->execute->mustRunAll($processes);
 }
Example #3
0
 /**
  * @expectedException \Symfony\Component\Process\Exception\ProcessFailedException
  */
 public function testMustRunAllFail()
 {
     $helper = new ProcessHelper();
     $helper->setHelperSet(new HelperSet([new DebugFormatterHelper()]));
     /** @var Process[] $processes */
     $processes = [new Process('php -r "echo 42;"'), new Process('php -r "syntax error"'), new Process('php -r "echo 42;"')];
     $execute = new Execute(new NullOutput(), $helper);
     $execute->mustRunAll($processes);
 }