@@ 132-144 (lines=13) @@ | ||
129 | * is equal to or higher than the highest supported PHP version |
|
130 | * in testVersion. False otherwise. |
|
131 | */ |
|
132 | public function supportsAbove($phpVersion) |
|
133 | { |
|
134 | $testVersion = $this->getTestVersion(); |
|
135 | $testVersion = $testVersion[1]; |
|
136 | ||
137 | if (is_null($testVersion) |
|
138 | || version_compare($testVersion, $phpVersion) >= 0 |
|
139 | ) { |
|
140 | return true; |
|
141 | } else { |
|
142 | return false; |
|
143 | } |
|
144 | }//end supportsAbove() |
|
145 | ||
146 | ||
147 | /** |
|
@@ 159-171 (lines=13) @@ | ||
156 | * supported PHP version in testVersion. |
|
157 | * False otherwise or if no testVersion is provided. |
|
158 | */ |
|
159 | public function supportsBelow($phpVersion) |
|
160 | { |
|
161 | $testVersion = $this->getTestVersion(); |
|
162 | $testVersion = $testVersion[0]; |
|
163 | ||
164 | if (!is_null($testVersion) |
|
165 | && version_compare($testVersion, $phpVersion) <= 0 |
|
166 | ) { |
|
167 | return true; |
|
168 | } else { |
|
169 | return false; |
|
170 | } |
|
171 | }//end supportsBelow() |
|
172 | ||
173 | ||
174 | /** |