44
55use  BabDev \ServerPushManager \PushManager ;
66use  Fig \Link \Link ;
7+ use  PHPUnit \Framework \Attributes \TestDox ;
78use  PHPUnit \Framework \TestCase ;
89
910final  class  PushManagerTest extends  TestCase
@@ -15,9 +16,7 @@ protected function setUp(): void
1516        $ this manager  = new  PushManager ();
1617    }
1718
18-     /** 
19-      * @testdox  A Link header for the specified relations as a string is added 
20-      */ 
19+     #[TestDox('A Link header for the specified relations as a string is added ' )]
2120    public  function  testLinkWithStringRelations (): void 
2221    {
2322        $ this manager ->link ('/foo.css ' , 'preload ' , ['as '  => 'style ' , 'crossorigin '  => true ]);
@@ -27,9 +26,7 @@ public function testLinkWithStringRelations(): void
2726        $ this assertEquals ([$ linkarray_values ($ this manager ->getLinkProvider ()->getLinks ()));
2827    }
2928
30-     /** 
31-      * @testdox  A Link header for the specified relations as an array is added 
32-      */ 
29+     #[TestDox('A Link header for the specified relations as an array is added ' )]
3330    public  function  testLinkWithArrayRelations (): void 
3431    {
3532        $ this manager ->link ('/foo.css ' , ['preload ' , 'prefetch ' ], ['as '  => 'style ' , 'crossorigin '  => true ]);
@@ -39,9 +36,7 @@ public function testLinkWithArrayRelations(): void
3936        $ this assertEquals ([$ linkarray_values ($ this manager ->getLinkProvider ()->getLinks ()));
4037    }
4138
42-     /** 
43-      * @testdox  A Link header for the preload relation is added 
44-      */ 
39+     #[TestDox('A Link header for the preload relation is added ' )]
4540    public  function  testPreload (): void 
4641    {
4742        $ this manager ->preload ('/foo.css ' , ['as '  => 'style ' , 'crossorigin '  => true ]);
@@ -51,9 +46,7 @@ public function testPreload(): void
5146        $ this assertEquals ([$ linkarray_values ($ this manager ->getLinkProvider ()->getLinks ()));
5247    }
5348
54-     /** 
55-      * @testdox  A Link header for the dns-prefetch relation is added 
56-      */ 
49+     #[TestDox('A Link header for the dns-prefetch relation is added ' )]
5750    public  function  testDnsPrefetch (): void 
5851    {
5952        $ this manager ->dnsPrefetch ('/foo.css ' , ['as '  => 'style ' , 'crossorigin '  => true ]);
@@ -63,9 +56,7 @@ public function testDnsPrefetch(): void
6356        $ this assertEquals ([$ linkarray_values ($ this manager ->getLinkProvider ()->getLinks ()));
6457    }
6558
66-     /** 
67-      * @testdox  A Link header for the preconnect relation is added 
68-      */ 
59+     #[TestDox('A Link header for the preconnect relation is added ' )]
6960    public  function  testPreconnect (): void 
7061    {
7162        $ this manager ->preconnect ('/foo.css ' , ['as '  => 'style ' , 'crossorigin '  => true ]);
@@ -75,9 +66,7 @@ public function testPreconnect(): void
7566        $ this assertEquals ([$ linkarray_values ($ this manager ->getLinkProvider ()->getLinks ()));
7667    }
7768
78-     /** 
79-      * @testdox  A Link header for the prefetch relation is added 
80-      */ 
69+     #[TestDox('A Link header for the prefetch relation is added ' )]
8170    public  function  testPrefetch (): void 
8271    {
8372        $ this manager ->prefetch ('/foo.css ' , ['as '  => 'style ' , 'crossorigin '  => true ]);
@@ -87,9 +76,7 @@ public function testPrefetch(): void
8776        $ this assertEquals ([$ linkarray_values ($ this manager ->getLinkProvider ()->getLinks ()));
8877    }
8978
90-     /** 
91-      * @testdox  A Link header for the prerender relation is added 
92-      */ 
79+     #[TestDox('A Link header for the prerender relation is added ' )]
9380    public  function  testPrerender (): void 
9481    {
9582        $ this manager ->prerender ('/foo.css ' , ['as '  => 'style ' , 'crossorigin '  => true ]);
0 commit comments