Tester\Runner\Runner::getInterpreter PHP Method

getInterpreter() public method

public getInterpreter ( ) : Tester\Runner\PhpInterpreter
return Tester\Runner\PhpInterpreter
    public function getInterpreter()
    {
        return $this->interpreter;
    }

Usage Example

Example #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})");
     }
 }
All Usage Examples Of Tester\Runner\Runner::getInterpreter