File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \Module \consent \Controller ;
66
7+ use PHPUnit \Framework \Attributes \DataProvider ;
78use PHPUnit \Framework \TestCase ;
89use SimpleSAML \Auth \State ;
910use SimpleSAML \Configuration ;
@@ -224,10 +225,9 @@ public function testLogoutcompleted(): void
224225
225226
226227 /**
227- * @dataProvider stateTestsProvider
228- *
229228 * @param string $controller The name of the controller to test
230229 */
230+ #[DataProvider('stateTestsProvider ' )]
231231 public function testMissingStateId (string $ controller ): void
232232 {
233233 $ _SERVER ['REQUEST_URI ' ] = '/module.php/consent/ ' . $ controller ;
@@ -247,10 +247,9 @@ public function testMissingStateId(string $controller): void
247247
248248
249249 /**
250- * @dataProvider stateTestsProvider
251- *
252250 * @param string $controller The name of the controller to test
253251 */
252+ #[DataProvider('stateTestsProvider ' )]
254253 public function testNoState (string $ controller ): void
255254 {
256255 $ _SERVER ['REQUEST_URI ' ] = '/module.php/consent/ ' . $ controller ;
You can’t perform that action at this time.
0 commit comments