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; }
public function testGetPatchVersion() { $version = new Version('php-5.4.22'); $this->assertSame(22, $version->getPatchVersion()); }