Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Better test for PHP version
Browse files Browse the repository at this point in the history
- version_compare understands comparing minor versions, fortunately;
  fixes issue with bad comparisons in 5.5 vs 5.4.
  • Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Formatter/BaseTest.php
Expand Up @@ -139,7 +139,7 @@ public function testFormatNoInfiniteLoopOnSelfReferencingArrayValues()
),
);

if (version_compare(PHP_VERSION, '5.5.0alpha1', 'lte')) {
if (version_compare(PHP_VERSION, '5.5', 'lt')) {
$outputExpected = array(
'timestamp' => $datetime->format($formatter->getDateTimeFormat()),
'priority' => 1,
Expand Down

0 comments on commit 2ee5d16

Please sign in to comment.