File tree Expand file tree Collapse file tree
tests/src/VerifiableCredentials/VcDataModel2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99use SimpleSAML \OpenID \VerifiableCredentials \VcDataModel2 \Claims \VcRefreshServiceClaimBag ;
1010use SimpleSAML \OpenID \VerifiableCredentials \VcDataModel2 \Claims \VcRefreshServiceClaimValue ;
1111
12- /**
13- * @covers \SimpleSAML\OpenID\VerifiableCredentials\VcDataModel2\Claims\VcRefreshServiceClaimBag
14- */
12+ #[\PHPUnit \Framework \Attributes \CoversClass(VcRefreshServiceClaimBag::class)]
1513final class VcRefreshServiceClaimBagTest extends TestCase
1614{
1715 protected MockObject $ vcRefreshServiceClaimValueMock ;
Original file line number Diff line number Diff line change 77use DateTimeImmutable ;
88use Jose \Component \Signature \JWS ;
99use Jose \Component \Signature \Signature ;
10+ use PHPUnit \Framework \Attributes \DataProvider ;
1011use PHPUnit \Framework \Attributes \UsesClass ;
1112use PHPUnit \Framework \MockObject \MockObject ;
1213use PHPUnit \Framework \TestCase ;
@@ -756,9 +757,7 @@ public function testGetVcIdCaching(): void
756757 }
757758
758759
759- /**
760- * @dataProvider invalidBagProvider
761- */
760+ #[DataProvider('invalidBagProvider ' )]
762761 public function testBagsThrowOnInvalidType (string $ claim , string $ method ): void
763762 {
764763 $ this ->signatureMock ->method ('getProtectedHeader ' )->willReturn ($ this ->sampleHeader );
You can’t perform that action at this time.
0 commit comments