Do not run on php8

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-11-27 16:46:49 +01:00
parent 6b7731a852
commit 1670eabdb3
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,10 @@ class DeprecationCheckTest 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 DeprecationCheck(new EmptyCheck()), new DeprecationCheck(new EmptyCheck()),
false false

View File

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