Skip to content

Commit a3490a7

Browse files
committed
Fixed PHPUnit <5.2 tests
1 parent f71e15f commit a3490a7

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 (version_compare(PHP_VERSION, '5.6.0', '>')) {
2929
$this->markTestSkipped();
3030
}
3131
$this->expectException(FormatException::class);

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 (version_compare(PHP_VERSION, '5.6.0', '>')) {
2828
$this->markTestSkipped();
2929
}
3030
$this->expectException(\PHPUnit_Framework_Error_Warning::class);

0 commit comments

Comments
 (0)