Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-11 22:46:52 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-07 17:44:03 +0300
commit988ce1374c6fa54d2ecbcd2a7fdc056398382ac0 (patch)
tree3ca05b4298b0e894018285cedaece9c036bb20ad /tests
parentc084008df25ad6d417da0a85afb20522ee20fc03 (diff)
Don't check on php8
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/App/CodeChecker/CodeCheckerTest.php8
-rw-r--r--tests/lib/App/CodeChecker/StrongComparisonCheckTest.php4
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