Skip to content

Commit c7aed13

Browse files
committed
test(GroupsTest): convert @dataProvider docblock to PHPUnit attribute
PHPUnit 13 dropped support for the legacy `@dataProvider` docblock metadata in favour of PHP attributes. The `testEditRoundTripsHighBitFlagsAsPositiveIntegers` test was the only remaining survivor across the suite; converting to `#[DataProvider('highBitFlagProvider')]` keeps the round-trip coverage green under PHPUnit 13.x without changing test semantics. Pin for #1340 (Composer dependabot bump from 11.5.55 to 13.1.8).
1 parent 19ee055 commit c7aed13

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎web/tests/api/GroupsTest.php‎

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

33
namespace Sbpp\Tests\Api;
44

5+
use PHPUnit\Framework\Attributes\DataProvider;
56
use Sbpp\Tests\ApiTestCase;
67
use Sbpp\Tests\Fixture;
78

@@ -203,9 +204,7 @@ public static function highBitFlagProvider(): iterable
203204
yield 'high+low mix (bit 31 + bit 0)' => [2147483648 + 1];
204205
}
205206

206-
/**
207-
* @dataProvider highBitFlagProvider
208-
*/
207+
#[DataProvider('highBitFlagProvider')]
209208
public function testEditRoundTripsHighBitFlagsAsPositiveIntegers(int $flags): void
210209
{
211210
$this->loginAsAdmin();

0 commit comments

Comments
 (0)