| @@ 101-113 (lines=13) @@ | ||
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | public function supportsAbove($phpVersion) |
|
| 102 | { |
|
| 103 | $testVersion = $this->getTestVersion(); |
|
| 104 | $testVersion = $testVersion[1]; |
|
| 105 | ||
| 106 | if (is_null($testVersion) |
|
| 107 | || version_compare($testVersion, $phpVersion) >= 0 |
|
| 108 | ) { |
|
| 109 | return true; |
|
| 110 | } else { |
|
| 111 | return false; |
|
| 112 | } |
|
| 113 | }//end supportsAbove() |
|
| 114 | ||
| 115 | public function supportsBelow($phpVersion) |
|
| 116 | { |
|
| @@ 115-127 (lines=13) @@ | ||
| 112 | } |
|
| 113 | }//end supportsAbove() |
|
| 114 | ||
| 115 | public function supportsBelow($phpVersion) |
|
| 116 | { |
|
| 117 | $testVersion = $this->getTestVersion(); |
|
| 118 | $testVersion = $testVersion[0]; |
|
| 119 | ||
| 120 | if (!is_null($testVersion) |
|
| 121 | && version_compare($testVersion, $phpVersion) <= 0 |
|
| 122 | ) { |
|
| 123 | return true; |
|
| 124 | } else { |
|
| 125 | return false; |
|
| 126 | } |
|
| 127 | }//end supportsBelow() |
|
| 128 | ||
| 129 | ||
| 130 | /** |
|