From 1670eabdb3120f8b47a633f40c2e1cb173d17cff Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 27 Nov 2020 16:46:49 +0100 Subject: [PATCH] Do not run on php8 Signed-off-by: Roeland Jago Douma --- tests/lib/App/CodeChecker/DeprecationCheckTest.php | 4 ++++ tests/lib/App/CodeChecker/NodeVisitorTest.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/lib/App/CodeChecker/DeprecationCheckTest.php b/tests/lib/App/CodeChecker/DeprecationCheckTest.php index 1a16e7e492..ea8ed8f50d 100644 --- a/tests/lib/App/CodeChecker/DeprecationCheckTest.php +++ b/tests/lib/App/CodeChecker/DeprecationCheckTest.php @@ -22,6 +22,10 @@ class DeprecationCheckTest 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 DeprecationCheck(new EmptyCheck()), false diff --git a/tests/lib/App/CodeChecker/NodeVisitorTest.php b/tests/lib/App/CodeChecker/NodeVisitorTest.php index cfc6951c61..d828b84fc7 100644 --- a/tests/lib/App/CodeChecker/NodeVisitorTest.php +++ b/tests/lib/App/CodeChecker/NodeVisitorTest.php @@ -57,6 +57,10 @@ class NodeVisitorTest extends TestCase { * @param string $fileToVerify */ public function testMethodsToCheck($expectedErrors, $fileToVerify) { + if (PHP_MAJOR_VERSION > 7) { + $this->markTestSkipped('Only run on php7'); + } + $checker = new CodeChecker( new TestList(new EmptyCheck()), false