/** * @outputBuffering enabled * @depends testInstallCommand */ public function testInstallAsCommand() { $processorNumber = Machine::getInstance()->detectProcessorNumber(); $jobs = is_numeric($processorNumber) ? "--jobs {$processorNumber}" : ""; $this->assertTrue($this->runCommand("phpbrew --quiet install {$jobs} {$this->primaryVersion} as myphp +soap")); $this->assertListContains("myphp"); }
/** * @depends testInstallCommand * @group install */ public function testInstallAsCommand() { $versionName = $this->getPrimaryVersion(); $processorNumber = Machine::getInstance()->detectProcessorNumber(); $jobs = is_numeric($processorNumber) ? "--jobs {$processorNumber}" : ""; $this->assertCommandSuccess("phpbrew install {$jobs} php-{$versionName} as myphp +cli+soap"); $this->assertListContains("myphp"); }
public function detectProcessorNumberByGrep() { return parent::detectProcessorNumberByGrep(); }