diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-11-11 20:46:52 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-07 15:44:03 +0100 |
commit | 988ce1374c6fa54d2ecbcd2a7fdc056398382ac0 (patch) | |
tree | 3ca05b4298b0e894018285cedaece9c036bb20ad /tests/lib/App | |
parent | c084008df25ad6d417da0a85afb20522ee20fc03 (diff) | |
download | nextcloud-server-988ce1374c6fa54d2ecbcd2a7fdc056398382ac0.tar.gz nextcloud-server-988ce1374c6fa54d2ecbcd2a7fdc056398382ac0.zip |
Don't check on php8
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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 |