File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ public function testParseEmpty()
5858 self ::assertCount (0 , $ provider ->getLinks ());
5959 }
6060
61- /** @dataProvider provideHeaderParsingCases */
6261 #[DataProvider('provideHeaderParsingCases ' )]
6362 public function testParseVariousAttributes (string $ header , array $ expectedRels , array $ expectedAttributes )
6463 {
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \WebLink \Tests ;
1313
14+ use PHPUnit \Framework \Attributes \DataProvider ;
1415use PHPUnit \Framework \TestCase ;
1516use Symfony \Component \WebLink \Link ;
1617
@@ -69,9 +70,7 @@ public function testConstructor()
6970 $ this ->assertContains ('next ' , $ link ->getRels ());
7071 }
7172
72- /**
73- * @dataProvider templatedHrefProvider
74- */
73+ #[DataProvider('templatedHrefProvider ' )]
7574 public function testTemplated (string $ href )
7675 {
7776 $ link = (new Link ())
@@ -80,9 +79,7 @@ public function testTemplated(string $href)
8079 $ this ->assertTrue ($ link ->isTemplated ());
8180 }
8281
83- /**
84- * @dataProvider notTemplatedHrefProvider
85- */
82+ #[DataProvider('notTemplatedHrefProvider ' )]
8683 public function testNotTemplated (string $ href )
8784 {
8885 $ link = (new Link ())
You can’t perform that action at this time.
0 commit comments