Skip to content

Commit 026a23e

Browse files
committed
Fixed PHPUnit <5.2 tests
1 parent 237f0cb commit 026a23e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/InvalidFormatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class InvalidFormatTest extends \PHPUnit_Framework_TestCase
2525
*/
2626
public function testInvalidFormat($product, $version)
2727
{
28-
if (version_compare(PHP_VERSION, '5.6.0', '<')) {
28+
if (PHP_VERSION_ID < 50600) {
2929
$this->markTestSkipped();
3030
return;
3131
}

tests/TruncateInvalidTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TruncateInvalidTest extends \PHPUnit_Framework_TestCase
2424
*/
2525
public function testTruncateInvalid($product, $version)
2626
{
27-
if (version_compare(PHP_VERSION, '5.6.0', '<')) {
27+
if (PHP_VERSION_ID < 50600) {
2828
$this->markTestSkipped();
2929
return;
3030
}

0 commit comments

Comments
 (0)