예제 #1
0
파일: TestHandler.php 프로젝트: xnovk/test
 private function assessHttpCode(Job $job, $code)
 {
     if (!$this->runner->getPhp()->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()
 {
     $this->time = -microtime(TRUE);
     echo 'PHP ' . $this->runner->getPhp()->getVersion() . ' | ' . $this->runner->getPhp()->getCommandLine() . " | {$this->runner->jobCount} threads\n\n";
 }
예제 #3
0
 public function begin()
 {
     fputs($this->file, 'PHP ' . $this->runner->getPhp()->getVersion() . ' | ' . $this->runner->getPhp()->getCommandLine() . " | {$this->runner->jobCount} threads\n\n");
 }