Skip to content

Commit a7d0b08

Browse files
Merge branch '7.4' into 8.0
* 7.4: replace PHPUnit annotations with attributes
2 parents 309f6f3 + bb68af7 commit a7d0b08

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Tests/SmsboxOptionsTest.php

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

1212
namespace Symfony\Component\Notifier\Bridge\Smsbox\Tests;
1313

14+
use PHPUnit\Framework\Attributes\TestWith;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Intl\Countries;
1617
use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Charset;
@@ -130,10 +131,8 @@ public function testDateTimeIsInPast()
130131
->dateTime(new \DateTimeImmutable('-1 day'));
131132
}
132133

133-
/**
134-
* @testWith [0]
135-
* [9]
136-
*/
134+
#[TestWith([0])]
135+
#[TestWith([9])]
137136
public function testMaxPartIsInvalid(int $maxPart)
138137
{
139138
$this->expectException(InvalidArgumentException::class);
@@ -143,10 +142,8 @@ public function testMaxPartIsInvalid(int $maxPart)
143142
->maxParts($maxPart);
144143
}
145144

146-
/**
147-
* @testWith [4]
148-
* [1441]
149-
*/
145+
#[TestWith([4])]
146+
#[TestWith([1441])]
150147
public function testValidityIsInvalid(int $validity)
151148
{
152149
$this->expectException(InvalidArgumentException::class);

0 commit comments

Comments
 (0)