File tree Expand file tree Collapse file tree 5 files changed +804
-602
lines changed
tests/DependencyInjection/Compiler Expand file tree Collapse file tree 5 files changed +804
-602
lines changed Original file line number Diff line number Diff line change 5252 "ergebnis/composer-normalize" : " ^2.0.1" ,
5353 "matthiasnoback/symfony-dependency-injection-test" : " ^5.0" ,
5454 "sonata-project/doctrine-orm-admin-bundle" : " ^4.2" ,
55- "symfony/phpunit-bridge" : " ^7.0 "
55+ "symfony/phpunit-bridge" : " ^7.3 "
5656 },
5757 "autoload" : {
5858 "psr-4" : {
Original file line number Diff line number Diff line change 1919use Nucleos \SonataAutoConfigureBundle \Tests \Fixtures \Admin \DisableAutowireEntityAdmin ;
2020use Nucleos \SonataAutoConfigureBundle \Tests \Fixtures \Admin \NoEntityAdmin ;
2121use Nucleos \SonataAutoConfigureBundle \Tests \Fixtures \Entity \Category ;
22+ use PHPUnit \Framework \Attributes \DataProvider ;
2223use PHPUnit \Framework \TestCase ;
2324use Symfony \Component \DependencyInjection \ContainerBuilder ;
2425use Symfony \Component \DependencyInjection \Definition ;
@@ -39,11 +40,10 @@ protected function setUp(): void
3940 }
4041
4142 /**
42- * @dataProvider provideProcessCases
43- *
4443 * @param array<string, mixed> $tagOptions
4544 * @param string[] $methodCalls
4645 */
46+ #[DataProvider('provideProcessCases ' )]
4747 public function testProcess (
4848 string $ admin ,
4949 ?string $ entity ,
Original file line number Diff line number Diff line change 1717use Nucleos \SonataAutoConfigureBundle \Tests \Fixtures \Admin \Extension \GlobalExtension ;
1818use Nucleos \SonataAutoConfigureBundle \Tests \Fixtures \Admin \Extension \MultipleTargetedExtension ;
1919use Nucleos \SonataAutoConfigureBundle \Tests \Fixtures \Admin \Extension \TargetedWithPriorityExtension ;
20+ use PHPUnit \Framework \Attributes \DataProvider ;
2021use PHPUnit \Framework \TestCase ;
2122use Symfony \Component \DependencyInjection \ContainerBuilder ;
2223use Symfony \Component \DependencyInjection \Definition ;
@@ -36,10 +37,9 @@ protected function setUp(): void
3637 }
3738
3839 /**
39- * @dataProvider provideProcessCases
40- *
4140 * @param string[] $expectedTags
4241 */
42+ #[DataProvider('provideProcessCases ' )]
4343 public function testProcess (string $ extensionServiceId , array $ expectedTags = []): void
4444 {
4545 $ this ->loadConfig ();
Original file line number Diff line number Diff line change 55 "require-dev" : {
66 "friendsofphp/php-cs-fixer" : " ^3.16" ,
77 "maglnet/composer-require-checker" : " ^4.6" ,
8- "matthiasnoback/symfony-dependency-injection-test" : " ^5 .0" ,
8+ "matthiasnoback/symfony-dependency-injection-test" : " ^6 .0" ,
99 "phpmd/phpmd" : " ^2.13" ,
1010 "phpstan/extension-installer" : " ^1.3" ,
1111 "phpstan/phpstan" : " ^2.0.0" ,
1212 "phpstan/phpstan-doctrine" : " ^2.0.0" ,
1313 "phpstan/phpstan-phpunit" : " ^2.0.0" ,
1414 "phpstan/phpstan-strict-rules" : " ^2.0.0" ,
1515 "phpstan/phpstan-symfony" : " ^2.0.0" ,
16- "phpunit/phpunit" : " ^10.1.2 " ,
16+ "phpunit/phpunit" : " ^12.0.0 " ,
1717 "symfony/phpunit-bridge" : " ^7.0.0"
1818 },
1919 "config" : {
You can’t perform that action at this time.
0 commit comments