getInterpreter() public method

public getInterpreter ( ) : Tester\Runner\PhpInterpreter
return Tester\Runner\PhpInterpreter
示例#1
0
 private function assessHttpCode(Job $job, $code)
 {
     if (!$this->runner->getInterpreter()->isCgi()) {
         return;
     }
     $headers = $job->getHeaders();
     $actual = isset($headers['Status']) ? (int) $headers['Status'] : self::HTTP_OK;
     $code = (int) $code;
     if ($code && $code !== $actual) {
         return array(Runner::FAILED, "Exited with HTTP code {$actual} (expected {$code})");
     }
 }
示例#2
0
 public function begin()
 {
     fwrite($this->file, 'PHP ' . $this->runner->getInterpreter()->getVersion() . ' | ' . $this->runner->getInterpreter()->getCommandLine() . " | {$this->runner->threadCount} threads\n\n");
 }
示例#3
0
 public function begin()
 {
     $this->time = -microtime(TRUE);
     echo 'PHP ' . $this->runner->getInterpreter()->getVersion() . ' | ' . $this->runner->getInterpreter()->getCommandLine() . " | {$this->runner->threadCount} thread" . ($this->runner->threadCount > 1 ? 's' : '') . "\n\n";
 }