Skip to content

Commit 0964a73

Browse files
committed
Migrate phpunit metadata to attributes
1 parent 92031f9 commit 0964a73

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/src/Controller/ExpiryCheckTest.php

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

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

7+
use PHPUnit\Framework\Attributes\CoversClass;
8+
use PHPUnit\Framework\Attributes\DataProvider;
79
use PHPUnit\Framework\TestCase;
810
use SimpleSAML\Auth;
911
use SimpleSAML\Configuration;
@@ -16,9 +18,8 @@
1618

1719
/**
1820
* Set of tests for the controllers in the "expirycheck" module.
19-
*
20-
* @covers \SimpleSAML\Module\expirycheck\Controller\ExpiryCheck
2121
*/
22+
#[CoversClass(Controller\ExpiryCheck::class)]
2223
class ExpiryCheckTest extends TestCase
2324
{
2425
/** @var \SimpleSAML\Configuration */
@@ -52,10 +53,10 @@ protected function setUp(): void
5253
/**
5354
* Test that a missing SourceID results in an error-response
5455
*
55-
* @dataProvider endpoints
5656
* @param string $endpoint
5757
* @return void
5858
*/
59+
#[DataProvider('endpoints')]
5960
public function testMissingSourceId(string $endpoint): void
6061
{
6162
$request = Request::create(

0 commit comments

Comments
 (0)