diff --git a/.github/workflows/compat_tests.yaml.yml b/.github/workflows/compat_tests.yaml.yml index 6a74a46..f629470 100644 --- a/.github/workflows/compat_tests.yaml.yml +++ b/.github/workflows/compat_tests.yaml.yml @@ -12,6 +12,10 @@ jobs: fail-fast: false matrix: actions: + - + name: 'Rector dev + PHPUnit 10' + run: composer require "phpunit/phpunit:10.*" -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 234082d..1aa3e32 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": "11.*|12.*", + "phpunit/phpunit": "10.*|11.*|12.*", "rector/rector": "dev-main", "phpstan/phpstan": "^2.1" }, diff --git a/tests/ConflictingPhpParserLibraryTest.php b/tests/ConflictingPhpParserLibraryTest.php new file mode 100644 index 0000000..d2eca54 --- /dev/null +++ b/tests/ConflictingPhpParserLibraryTest.php @@ -0,0 +1,20 @@ += 12) { + $this->markTestSkipped('This test requires PHPUnit < 12'); + } + + include_once dirname(__DIR__, 1) . '/vendor/nikic/php-parser/lib/PhpParser/Parser.php'; + + $this->assertTrue(true); + } +} \ No newline at end of file