aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-27 16:46:49 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-07 15:44:03 +0100
commit1670eabdb3120f8b47a633f40c2e1cb173d17cff (patch)
tree30e818a135d42f02717f0d14535443f6ecbdcbb0 /tests
parent6b7731a852630db901409f1ee65133c5a2c13a16 (diff)
downloadnextcloud-server-1670eabdb3120f8b47a633f40c2e1cb173d17cff.tar.gz
nextcloud-server-1670eabdb3120f8b47a633f40c2e1cb173d17cff.zip
Do not run on php8
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/App/CodeChecker/DeprecationCheckTest.php4
-rw-r--r--tests/lib/App/CodeChecker/NodeVisitorTest.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/App/CodeChecker/DeprecationCheckTest.php b/tests/lib/App/CodeChecker/DeprecationCheckTest.php
index 1a16e7e4920..ea8ed8f50d6 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 cfc6951c614..d828b84fc75 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