Ejemplo n.º 1
0
 private function initiatePhpVersion($version, PhpExecutable $php)
 {
     if (preg_match('#^(<=|<|==|=|!=|<>|>=|>)?\\s*(.+)#', $version, $matches) && version_compare($matches[2], $php->getVersion(), $matches[1] ?: '>=')) {
         return array(Runner::SKIPPED, "Requires PHP {$version}.");
     }
 }