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