Skip to content

Commit

Permalink
Do not run on php8
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Dec 7, 2020
1 parent 6b7731a commit 1670eab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lib/App/CodeChecker/DeprecationCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tests/lib/App/CodeChecker/NodeVisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public function providesFilesToCheck() {
* @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
Expand Down

0 comments on commit 1670eab

Please sign in to comment.