Don't check on php8

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-11-11 20:46:52 +01:00
parent c084008df2
commit 988ce1374c
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,10 @@ class CodeCheckerTest extends TestCase {
* @param string $fileToVerify * @param string $fileToVerify
*/ */
public function testFindInvalidUsage($expectedErrorToken, $expectedErrorCode, $fileToVerify) { public function testFindInvalidUsage($expectedErrorToken, $expectedErrorCode, $fileToVerify) {
if (PHP_MAJOR_VERSION > 7) {
$this->markTestSkipped('Only run on php7');
}
$checker = new CodeChecker( $checker = new CodeChecker(
new PrivateCheck(new EmptyCheck()), new PrivateCheck(new EmptyCheck()),
false false
@ -49,6 +53,10 @@ class CodeCheckerTest extends TestCase {
* @param string $fileToVerify * @param string $fileToVerify
*/ */
public function testPassValidUsage($fileToVerify) { public function testPassValidUsage($fileToVerify) {
if (PHP_MAJOR_VERSION > 7) {
$this->markTestSkipped('Only run on php7');
}
$checker = new CodeChecker( $checker = new CodeChecker(
new PrivateCheck(new EmptyCheck()), new PrivateCheck(new EmptyCheck()),
false false

View File

@ -45,6 +45,10 @@ class StrongComparisonCheckTest extends TestCase {
* @param string $fileToVerify * @param string $fileToVerify
*/ */
public function testPassValidUsage($fileToVerify) { public function testPassValidUsage($fileToVerify) {
if (PHP_MAJOR_VERSION > 7) {
$this->markTestSkipped('Only run on php7');
}
$checker = new CodeChecker( $checker = new CodeChecker(
new StrongComparisonCheck(new EmptyCheck()), new StrongComparisonCheck(new EmptyCheck()),
false false