@@ 173-185 (lines=13) @@ | ||
170 | * is equal to or higher than the highest supported PHP version |
|
171 | * in testVersion. False otherwise. |
|
172 | */ |
|
173 | public function supportsAbove($phpVersion) |
|
174 | { |
|
175 | $testVersion = $this->getTestVersion(); |
|
176 | $testVersion = $testVersion[1]; |
|
177 | ||
178 | if (is_null($testVersion) |
|
179 | || version_compare($testVersion, $phpVersion) >= 0 |
|
180 | ) { |
|
181 | return true; |
|
182 | } else { |
|
183 | return false; |
|
184 | } |
|
185 | }//end supportsAbove() |
|
186 | ||
187 | ||
188 | /** |
|
@@ 200-212 (lines=13) @@ | ||
197 | * supported PHP version in testVersion. |
|
198 | * False otherwise or if no testVersion is provided. |
|
199 | */ |
|
200 | public function supportsBelow($phpVersion) |
|
201 | { |
|
202 | $testVersion = $this->getTestVersion(); |
|
203 | $testVersion = $testVersion[0]; |
|
204 | ||
205 | if (is_null($testVersion) === false |
|
206 | && version_compare($testVersion, $phpVersion) <= 0 |
|
207 | ) { |
|
208 | return true; |
|
209 | } else { |
|
210 | return false; |
|
211 | } |
|
212 | }//end supportsBelow() |
|
213 | ||
214 | ||
215 | /** |