public static function getInstance()
{
if (is_null(self::$instance)) {
self::$instance = new self();
}
return self::$instance;
}
/** * @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"); }