File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1212 fail-fast : false
1313 matrix :
1414 actions :
15+ -
16+ name : ' Rector dev + PHPUnit 10'
17+ run : composer require "phpunit/phpunit:10.*" -W
18+ php : 8.2
1519 -
1620 name : ' Rector dev + PHPUnit 11'
1721 run : composer require "phpunit/phpunit:11.*" -W
Original file line number Diff line number Diff line change 33 "description" : " Tests for compatibility with PHPStand and PHPUnit preload magic" ,
44 "require-dev" : {
55 "php" : " ^8.2" ,
6- "phpunit/phpunit" : " 11.*|12.*" ,
6+ "phpunit/phpunit" : " 10.*| 11.*|12.*" ,
77 "rector/rector" : " dev-main" ,
88 "phpstan/phpstan" : " ^2.1"
99 },
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Rector \RectorCompatTests \Tests \Rector \MakeClassFinalRector ;
4+
5+ use PHPUnit \Framework \TestCase ;
6+ use PHPUnit \Runner \Version ;
7+
8+ final class UsePHPParser4Test extends TestCase
9+ {
10+ public function test (): void
11+ {
12+ if ((int ) Version::id () >= 11 ) {
13+ $ this ->markTestSkipped ('Only for PHPUnit 11+ ' );
14+ }
15+
16+ // this uses nikic/php-parser v4 parser
17+ (new \PhpParser \ParserFactory ())->create (\PhpParser \ParserFactory::PREFER_PHP7 );
18+
19+ $ this ->assertTrue (true );
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments