Skip to content

Commit af7ab25

Browse files
committed
Migrate phpunit metadata to attributes
1 parent 6b31893 commit af7ab25

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/src/Controller/ConsentControllerTest.php

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

55
namespace SimpleSAML\Test\Module\consent\Controller;
66

7+
use PHPUnit\Framework\Attributes\DataProvider;
78
use PHPUnit\Framework\TestCase;
89
use SimpleSAML\Auth\State;
910
use 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;

0 commit comments

Comments
 (0)