diff options
Diffstat (limited to 'tests/lib/App')
-rw-r--r-- | tests/lib/App/CodeChecker/CodeCheckerTest.php | 8 | ||||
-rw-r--r-- | tests/lib/App/CodeChecker/StrongComparisonCheckTest.php | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/lib/App/CodeChecker/CodeCheckerTest.php b/tests/lib/App/CodeChecker/CodeCheckerTest.php index bb121eccc44..7725d46a273 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 6d3d2f50efd..e21dcbbc585 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 |