diff --git a/tests/lib/App/CodeChecker/CodeCheckerTest.php b/tests/lib/App/CodeChecker/CodeCheckerTest.php index bb121eccc4..7725d46a27 100644 --- a/tests/lib/App/CodeChecker/CodeCheckerTest.php +++ b/tests/lib/App/CodeChecker/CodeCheckerTest.php @@ -22,6 +22,10 @@ class CodeCheckerTest extends TestCase { * @param string $fileToVerify */ public function testFindInvalidUsage($expectedErrorToken, $expectedErrorCode, $fileToVerify) { + if (PHP_MAJOR_VERSION > 7) { + $this->markTestSkipped('Only run on php7'); + } + $checker = new CodeChecker( new PrivateCheck(new EmptyCheck()), false @@ -49,6 +53,10 @@ class CodeCheckerTest extends TestCase { * @param string $fileToVerify */ public function testPassValidUsage($fileToVerify) { + if (PHP_MAJOR_VERSION > 7) { + $this->markTestSkipped('Only run on php7'); + } + $checker = new CodeChecker( new PrivateCheck(new EmptyCheck()), false diff --git a/tests/lib/App/CodeChecker/StrongComparisonCheckTest.php b/tests/lib/App/CodeChecker/StrongComparisonCheckTest.php index 6d3d2f50ef..e21dcbbc58 100644 --- a/tests/lib/App/CodeChecker/StrongComparisonCheckTest.php +++ b/tests/lib/App/CodeChecker/StrongComparisonCheckTest.php @@ -45,6 +45,10 @@ class StrongComparisonCheckTest extends TestCase { * @param string $fileToVerify */ public function testPassValidUsage($fileToVerify) { + if (PHP_MAJOR_VERSION > 7) { + $this->markTestSkipped('Only run on php7'); + } + $checker = new CodeChecker( new StrongComparisonCheck(new EmptyCheck()), false