From 988ce1374c6fa54d2ecbcd2a7fdc056398382ac0 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 11 Nov 2020 20:46:52 +0100 Subject: [PATCH] Don't check on php8 Signed-off-by: Roeland Jago Douma --- tests/lib/App/CodeChecker/CodeCheckerTest.php | 8 ++++++++ tests/lib/App/CodeChecker/StrongComparisonCheckTest.php | 4 ++++ 2 files changed, 12 insertions(+) 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