Skip to content

Commit 4dff2ec

Browse files
committed
Update to phpunit v12
1 parent 0633a58 commit 4dff2ec

File tree

5 files changed

+804
-602
lines changed

5 files changed

+804
-602
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
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": {

tests/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Nucleos\SonataAutoConfigureBundle\Tests\Fixtures\Admin\DisableAutowireEntityAdmin;
2020
use Nucleos\SonataAutoConfigureBundle\Tests\Fixtures\Admin\NoEntityAdmin;
2121
use Nucleos\SonataAutoConfigureBundle\Tests\Fixtures\Entity\Category;
22+
use PHPUnit\Framework\Attributes\DataProvider;
2223
use PHPUnit\Framework\TestCase;
2324
use Symfony\Component\DependencyInjection\ContainerBuilder;
2425
use 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,

tests/DependencyInjection/Compiler/AutoConfigureExtensionsCompilerPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Nucleos\SonataAutoConfigureBundle\Tests\Fixtures\Admin\Extension\GlobalExtension;
1818
use Nucleos\SonataAutoConfigureBundle\Tests\Fixtures\Admin\Extension\MultipleTargetedExtension;
1919
use Nucleos\SonataAutoConfigureBundle\Tests\Fixtures\Admin\Extension\TargetedWithPriorityExtension;
20+
use PHPUnit\Framework\Attributes\DataProvider;
2021
use PHPUnit\Framework\TestCase;
2122
use Symfony\Component\DependencyInjection\ContainerBuilder;
2223
use 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();

vendor-bin/tools/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
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": {

0 commit comments

Comments
 (0)