asEnv() public method

public asEnv ( ) : array
return array
 private function buildArgString()
 {
     $argstring = '';
     foreach ($this->executionContext->asEnv() as $key => $value) {
         $argstring .= 'SET ' . $key . '=' . $value . ' && ';
     }
     return $argstring;
 }
Example #2
0
 private function buildArgString()
 {
     $argstring = '';
     foreach ($this->executionContext->asEnv() as $key => $value) {
         $argstring .= $key . '=' . escapeshellarg($value) . ' ';
     }
     return $argstring;
 }
Example #3
0
 /**
  * Kills the current process and starts a new one
  */
 public function reRunSuite()
 {
     $args = $_SERVER['argv'];
     $env = $this->executionContext ? $this->executionContext->asEnv() : array();
     pcntl_exec($this->getExecutablePath(), $args, array_merge($env, $_SERVER));
 }