getInstance() public static method

public static getInstance ( )
Exemplo n.º 1
0
 /**
  * @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");
 }
Exemplo n.º 2
0
 /**
  * @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");
 }