2323
2424namespace Codappix \Typo3PhpDatasets \Tests \Functional ;
2525
26+ use Codappix \Typo3PhpDatasets \PhpDataSet ;
27+ use Codappix \Typo3PhpDatasets \TestingFramework ;
2628use InvalidArgumentException ;
2729use PHPUnit \Framework \AssertionFailedError ;
30+ use PHPUnit \Framework \Attributes \CoversClass ;
31+ use PHPUnit \Framework \Attributes \Test ;
32+ use PHPUnit \Framework \Attributes \TestDox ;
2833
29- /**
30- * @covers \Codappix\Typo3PhpDatasets\PhpDataSet
31- * @covers \Codappix\Typo3PhpDatasets\TestingFramework
32- * @testdox The Testing Framework trait
33- */
34+ #[CoversClass(PhpDataSet::class)]
35+ #[CoversClass(TestingFramework::class)]
36+ #[TestDox('The Testing Framework trait ' )]
3437class AssertTest extends AbstractFunctionalTestCase
3538{
36- /**
37- * @test
38- */
39+ #[Test]
3940 public function canAssertAgainstSimpleSet (): void
4041 {
4142 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/SimpleSet.php ' );
4243 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/SimpleSet.php ' );
4344 }
4445
45- /**
46- * @test
47- */
46+ #[Test]
4847 public function canAssertAgainstNullValue (): void
4948 {
5049 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/WithNull.php ' );
5150 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/WithNull.php ' );
5251 }
5352
54- /**
55- * @test
56- */
53+ #[Test]
5754 public function canAssertAgainstDifferentSetOfColumns (): void
5855 {
5956 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/WithDifferentColumns.php ' );
6057 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/WithDifferentColumns.php ' );
6158 }
6259
63- /**
64- * @test
65- */
60+ #[Test]
6661 public function canAssertMmRelation (): void
6762 {
6863 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/MmRelation.php ' );
6964 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/MmRelation.php ' );
7065 }
7166
72- /**
73- * @test
74- */
67+ #[Test]
7568 public function failsForMissingAssertionWithUid (): void
7669 {
7770 $ this ->expectException (AssertionFailedError::class);
7871 $ this ->expectExceptionMessage ('Record "pages:1" not found in database ' );
7972 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/AssertSimpleMissingUidSet.php ' );
8073 }
8174
82- /**
83- * @test
84- */
75+ #[Test]
8576 public function failsForDifferingAssertionWithUid (): void
8677 {
8778 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/SimpleSet.php ' );
@@ -95,9 +86,7 @@ public function failsForDifferingAssertionWithUid(): void
9586 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/AssertDifferingWithUid.php ' );
9687 }
9788
98- /**
99- * @test
100- */
89+ #[Test]
10190 public function failsForAssertionWithoutUid (): void
10291 {
10392 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/SimpleSet.php ' );
@@ -114,9 +103,7 @@ public function failsForAssertionWithoutUid(): void
114103 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/AssertDifferingWithoutUid.php ' );
115104 }
116105
117- /**
118- * @test
119- */
106+ #[Test]
120107 public function failsForAssertionForMmRelation (): void
121108 {
122109 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/MmRelation.php ' );
@@ -138,9 +125,7 @@ public function failsForAssertionForMmRelation(): void
138125 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/MmRelationBroken.php ' );
139126 }
140127
141- /**
142- * @test
143- */
128+ #[Test]
144129 public function failsForAdditionalNoneAssertedRecords (): void
145130 {
146131 $ this ->importPHPDataSet (__DIR__ . '/Fixtures/WithDifferentColumns.php ' );
@@ -150,9 +135,7 @@ public function failsForAdditionalNoneAssertedRecords(): void
150135 $ this ->assertPHPDataSet (__DIR__ . '/Fixtures/AssertAdditionalRecords.php ' );
151136 }
152137
153- /**
154- * @test
155- */
138+ #[Test]
156139 public function throwsExceptionIfFileDoesNotExist (): void
157140 {
158141 $ this ->expectException (InvalidArgumentException::class);
0 commit comments