| @@ 168-180 (lines=13) @@ | ||
| 165 | * is equal to or higher than the highest supported PHP version |
|
| 166 | * in testVersion. False otherwise. |
|
| 167 | */ |
|
| 168 | public function supportsAbove($phpVersion) |
|
| 169 | { |
|
| 170 | $testVersion = $this->getTestVersion(); |
|
| 171 | $testVersion = $testVersion[1]; |
|
| 172 | ||
| 173 | if (is_null($testVersion) |
|
| 174 | || version_compare($testVersion, $phpVersion) >= 0 |
|
| 175 | ) { |
|
| 176 | return true; |
|
| 177 | } else { |
|
| 178 | return false; |
|
| 179 | } |
|
| 180 | }//end supportsAbove() |
|
| 181 | ||
| 182 | ||
| 183 | /** |
|
| @@ 195-207 (lines=13) @@ | ||
| 192 | * supported PHP version in testVersion. |
|
| 193 | * False otherwise or if no testVersion is provided. |
|
| 194 | */ |
|
| 195 | public function supportsBelow($phpVersion) |
|
| 196 | { |
|
| 197 | $testVersion = $this->getTestVersion(); |
|
| 198 | $testVersion = $testVersion[0]; |
|
| 199 | ||
| 200 | if (!is_null($testVersion) |
|
| 201 | && version_compare($testVersion, $phpVersion) <= 0 |
|
| 202 | ) { |
|
| 203 | return true; |
|
| 204 | } else { |
|
| 205 | return false; |
|
| 206 | } |
|
| 207 | }//end supportsBelow() |
|
| 208 | ||
| 209 | ||
| 210 | /** |
|