11<?php
22
3- /*
4- * This file is part of the olvlvl/symfony-dependency-injection-proxy package.
5- *
6- * (c) Olivier Laviale <[email protected] > 7- *
8- * For the full copyright and license information, please view the LICENSE
9- * file that was distributed with this source code.
10- */
11-
123namespace tests \olvlvl \SymfonyDependencyInjectionProxy ;
134
145use ArrayAccess ;
189use olvlvl \SymfonyDependencyInjectionProxy \FactoryRenderer ;
1910use olvlvl \SymfonyDependencyInjectionProxy \InterfaceResolver ;
2011use olvlvl \SymfonyDependencyInjectionProxy \ProxyDumper ;
12+ use PHPUnit \Framework \Attributes \DataProvider ;
13+ use PHPUnit \Framework \Attributes \Group ;
14+ use PHPUnit \Framework \Attributes \Test ;
2115use PHPUnit \Framework \TestCase ;
2216use Symfony \Component \DependencyInjection \Definition ;
2317use Throwable ;
2418
25- /**
26- * @group unit
27- */
19+ #[Group('unit ' )]
2820final class ProxyDumperTest extends TestCase
2921{
30- /**
31- * @dataProvider provideIsProxyCandidate
32- */
22+ #[DataProvider('provideIsProxyCandidate ' )]
3323 public function testIsProxyCandidate (Definition $ definition , bool $ expected ): void
3424 {
3525 $ stu = new ProxyDumper (
@@ -64,9 +54,9 @@ public static function provideIsProxyCandidate(): array
6454 }
6555
6656 /**
67- * @test
6857 * @throws Throwable
6958 */
59+ #[Test]
7060 public function shouldFailIfFactoryCodeIsEmpty (): void
7161 {
7262 $ stu = new ProxyDumper (
@@ -81,8 +71,8 @@ public function shouldFailIfFactoryCodeIsEmpty(): void
8171
8272 /**
8373 * @throws Throwable
84- * @dataProvider provideGetProxyFactoryCode
8574 */
75+ #[DataProvider('provideGetProxyFactoryCode ' )]
8676 public function testGetProxyFactoryCode (string $ id , bool $ private , bool $ shared , string $ expectedStore ): void
8777 {
8878 $ definition = (new Definition ())
@@ -132,7 +122,7 @@ public static function provideGetProxyFactoryCode(): array
132122 }
133123
134124 /**
135- * @see https://github.com/symfony/symfony/issues/28852
125+ * @link https://github.com/symfony/symfony/issues/28852
136126 */
137127 public function testGetProxyCode (): void
138128 {
0 commit comments