From e32e8230894f58bd058877e737c297ab64273d4f Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 14 Oct 2025 19:28:33 +0700 Subject: [PATCH] Revert "Add test PHPUnit 10 with PHP-Parser 4 usage (#7)" This reverts commit 2f6ca92ab1473b0760dc4c550e79e93180baa041. --- .github/workflows/compat_tests.yaml.yml | 4 ---- composer.json | 2 +- tests/UsePHPParser4Test.php | 21 --------------------- 3 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 tests/UsePHPParser4Test.php diff --git a/.github/workflows/compat_tests.yaml.yml b/.github/workflows/compat_tests.yaml.yml index 59a4ff2..6a74a46 100644 --- a/.github/workflows/compat_tests.yaml.yml +++ b/.github/workflows/compat_tests.yaml.yml @@ -12,10 +12,6 @@ jobs: fail-fast: false matrix: actions: - - - name: 'Rector dev + PHPUnit 10' - run: composer require "phpunit/phpunit:10.*" "nikic/php-parser:4.*" -W - php: 8.2 - name: 'Rector dev + PHPUnit 11' run: composer require "phpunit/phpunit:11.*" -W diff --git a/composer.json b/composer.json index 1aa3e32..234082d 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Tests for compatibility with PHPStand and PHPUnit preload magic", "require-dev": { "php": "^8.2", - "phpunit/phpunit": "10.*|11.*|12.*", + "phpunit/phpunit": "11.*|12.*", "rector/rector": "dev-main", "phpstan/phpstan": "^2.1" }, diff --git a/tests/UsePHPParser4Test.php b/tests/UsePHPParser4Test.php deleted file mode 100644 index 52a230b..0000000 --- a/tests/UsePHPParser4Test.php +++ /dev/null @@ -1,21 +0,0 @@ -= 11) { - $this->markTestSkipped('Only for PHPUnit 11+'); - } - - // this uses nikic/php-parser v4 parser - (new \PhpParser\ParserFactory())->create(\PhpParser\ParserFactory::PREFER_PHP7); - - $this->assertTrue(true); - } -} \ No newline at end of file