diff --git a/test/PhpParser/Parser/Php7Test.php b/test/PhpParser/Parser/Php7Test.php index 22a4c5190c..56f3eb6243 100644 --- a/test/PhpParser/Parser/Php7Test.php +++ b/test/PhpParser/Parser/Php7Test.php @@ -3,9 +3,9 @@ namespace PhpParser\Parser; use PhpParser\Lexer; -use PhpParser\ParserTest; +use PhpParser\PhpVersionAbstract; -class Php7Test extends ParserTest +class Php7Test extends PhpVersionAbstract { protected function getParser(Lexer $lexer) { return new Php7($lexer); diff --git a/test/PhpParser/Parser/Php8Test.php b/test/PhpParser/Parser/Php8Test.php index f771672daf..d1ede1470d 100644 --- a/test/PhpParser/Parser/Php8Test.php +++ b/test/PhpParser/Parser/Php8Test.php @@ -3,9 +3,9 @@ namespace PhpParser\Parser; use PhpParser\Lexer; -use PhpParser\ParserTest; +use PhpParser\PhpVersionAbstract; -class Php8Test extends ParserTest +class Php8Test extends PhpVersionAbstract { protected function getParser(Lexer $lexer) { return new Php8($lexer); diff --git a/test/PhpParser/ParserTest.php b/test/PhpParser/PhpVersionAbstract.php similarity index 99% rename from test/PhpParser/ParserTest.php rename to test/PhpParser/PhpVersionAbstract.php index ced0b33431..7531f4eb3f 100644 --- a/test/PhpParser/ParserTest.php +++ b/test/PhpParser/PhpVersionAbstract.php @@ -7,7 +7,7 @@ use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt; -abstract class ParserTest extends \PHPUnit\Framework\TestCase { +abstract class PhpVersionAbstract extends \PHPUnit\Framework\TestCase { /** @returns Parser */ abstract protected function getParser(Lexer $lexer);