public getInterpreter ( ) : Tester\Runner\PhpInterpreter | ||
return | Tester\Runner\PhpInterpreter |
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})"); } }
public function begin() { fwrite($this->file, 'PHP ' . $this->runner->getInterpreter()->getVersion() . ' | ' . $this->runner->getInterpreter()->getCommandLine() . " | {$this->runner->threadCount} threads\n\n"); }
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"; }