Skip to content

Commit c62edd6

Browse files
committed
replace PHPUnit annotations with attributes
1 parent bcf2916 commit c62edd6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Tests/HttpHeaderParserTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
{

Tests/LinkTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\WebLink\Tests;
1313

14+
use PHPUnit\Framework\Attributes\DataProvider;
1415
use PHPUnit\Framework\TestCase;
1516
use 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())

0 commit comments

Comments
 (0)