- 5.3 => php-5.3.29 (get the latest patched version) - 5.3.29 => php-5.3.29 - php-5.4 => php-5.4.26 - hhvm-3.3 => hhvm-3.3 TODO: - Parse stability
 private function isDistributedAtMuseum($version)
 {
     $version = new Version($version);
     if ($version->getMajorVersion() > 5) {
         return false;
     }
     if ($version->getMinorVersion() > 4) {
         return false;
     }
     if ($version->getMinorVersion() === 4) {
         return $version->getPatchVersion() <= 21;
     }
     return true;
 }
Beispiel #2
0
 public function testGetPatchVersion()
 {
     $version = new Version('php-5.4.22');
     $this->assertSame(22, $version->getPatchVersion());
 }