@@ -65,12 +65,9 @@ public function setUp(): void
6565 ContainerSingleton::setContainer (new MockContainer ());
6666 }
6767
68- /**
69- * @test
70- * @group http
71- *
72- * @dataProvider nonGetMethodProvider
73- */
68+ #[\PHPUnit \Framework \Attributes \Test]
69+ #[\PHPUnit \Framework \Attributes \DataProvider('nonGetMethodProvider ' )]
70+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
7471 public function a_signed_authn_request_cannot_be_received_from_a_request_that_is_not_a_get_request (string $ nonGetMethod ): void
7572 {
7673 $ this ->expectException (BadRequestHttpException::class);
@@ -87,10 +84,8 @@ public function a_signed_authn_request_cannot_be_received_from_a_request_that_is
8784 $ redirectBinding ->receiveSignedAuthnRequestFrom ($ request );
8885 }
8986
90- /**
91- * @test
92- * @group http
93- */
87+ #[\PHPUnit \Framework \Attributes \Test]
88+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
9489 public function a_signed_authn_request_cannot_be_received_from_a_request_that_has_no_signed_saml_request (): void
9590 {
9691 $ this ->expectException (UnsignedRequestException::class);
@@ -107,10 +102,8 @@ public function a_signed_authn_request_cannot_be_received_from_a_request_that_ha
107102 $ redirectBinding ->receiveSignedAuthnRequestFrom ($ request );
108103 }
109104
110- /**
111- * @test
112- * @group http
113- */
105+ #[\PHPUnit \Framework \Attributes \Test]
106+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
114107 public function a_signed_authn_request_cannot_be_received_if_the_service_provider_in_the_authn_request_is_unknown (): void
115108 {
116109 $ this ->expectException (UnknownServiceProviderException::class);
@@ -142,9 +135,9 @@ public function a_signed_authn_request_cannot_be_received_if_the_service_provide
142135
143136 /**
144137 * Signed AuthNRequests destination MUST match the request URI
145- * @test
146- * @group http
147138 */
139+ #[\PHPUnit \Framework \Attributes \Test]
140+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
148141 public function a_signed_authn_requests_destination_must_match_request_uri (): void
149142 {
150143 $ this ->expectException (BadRequestHttpException::class);
@@ -171,9 +164,9 @@ public function a_signed_authn_requests_destination_must_match_request_uri(): vo
171164
172165 /**
173166 * Signed AuthNRequests destination have a destination
174- * @test
175- * @group http
176167 */
168+ #[\PHPUnit \Framework \Attributes \Test]
169+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
177170 public function a_signed_authn_requests_must_carry_a_destination (): void
178171 {
179172 $ this ->expectException (BadRequestHttpException::class);
@@ -198,10 +191,8 @@ public function a_signed_authn_requests_must_carry_a_destination(): void
198191 $ redirectBinding ->receiveSignedAuthnRequestFrom ($ request );
199192 }
200193
201- /**
202- * @test
203- * @group http
204- */
194+ #[\PHPUnit \Framework \Attributes \Test]
195+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
205196 public function a_signed_authn_request_cannot_be_received_if_the_signature_is_invalid (): void
206197 {
207198 $ this ->expectException (SignatureValidationFailedException::class);
@@ -239,12 +230,9 @@ public function a_signed_authn_request_cannot_be_received_if_the_signature_is_in
239230 $ redirectBinding = new RedirectBinding ($ mockSignatureVerifier , $ mockEntityRepository );
240231 $ redirectBinding ->receiveSignedAuthnRequestFrom ($ request );
241232 }
242- /**
243- * @test
244- * @group http
245- *
246- * @dataProvider nonGetMethodProvider
247- */
233+ #[\PHPUnit \Framework \Attributes \Test]
234+ #[\PHPUnit \Framework \Attributes \DataProvider('nonGetMethodProvider ' )]
235+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
248236 public function a_unsigned_authn_request_cannot_be_received_from_a_request_that_is_not_a_get_request (string $ nonGetMethod ): void
249237 {
250238 $ this ->expectException (BadRequestHttpException::class);
@@ -260,10 +248,8 @@ public function a_unsigned_authn_request_cannot_be_received_from_a_request_that_
260248 $ redirectBinding ->receiveUnsignedAuthnRequestFrom ($ request );
261249 }
262250
263- /**
264- * @test
265- * @group http
266- */
251+ #[\PHPUnit \Framework \Attributes \Test]
252+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
267253 public function a_unsigned_authn_request_cannot_be_received_if_the_service_provider_in_the_authn_request_is_unknown (): void
268254 {
269255 $ this ->expectException (UnknownServiceProviderException::class);
@@ -290,10 +276,8 @@ public function a_unsigned_authn_request_cannot_be_received_if_the_service_provi
290276 $ redirectBinding ->receiveUnsignedAuthnRequestFrom ($ request );
291277 }
292278
293- /**
294- * @test
295- * @group http
296- */
279+ #[\PHPUnit \Framework \Attributes \Test]
280+ #[\PHPUnit \Framework \Attributes \Group('http ' )]
297281 public function a_unsigned_authn_request_cannot_be_received_if_the_service_provider_in_the_authn_request_is_unknown_with_destination (): void
298282 {
299283 $ this ->expectException (UnknownServiceProviderException::class);
@@ -320,7 +304,7 @@ public function a_unsigned_authn_request_cannot_be_received_if_the_service_provi
320304 $ redirectBinding ->receiveUnsignedAuthnRequestFrom ($ request );
321305 }
322306
323- public function nonGetMethodProvider (): array
307+ public static function nonGetMethodProvider (): array
324308 {
325309 return [
326310 [Request::METHOD_POST ],
0 commit comments