77use DigitalRevolution \CodeCoverageInspection \Lib \Config \ConfigViolation ;
88use DigitalRevolution \CodeCoverageInspection \Lib \Config \InspectConfig ;
99use org \bovigo \vfs \vfsStream ;
10+ use PHPUnit \Framework \Attributes \CoversClass ;
1011use PHPUnit \Framework \TestCase ;
1112use Symfony \Component \Console \Input \InputInterface ;
1213
13- /**
14- * @coversDefaultClass \DigitalRevolution\CodeCoverageInspection\Lib\Config\ConfigFactory
15- * @covers ::getReport
16- */
14+ #[CoversClass(ConfigFactory::class)]
1715class ConfigFactoryTest extends TestCase
1816{
1917 private ConfigFactory $ factory ;
@@ -25,9 +23,6 @@ protected function setUp(): void
2523 $ this ->factory = new ConfigFactory ();
2624 }
2725
28- /**
29- * @covers ::createInspectConfig
30- */
3126 public function testCreateInspectConfigMinimal (): void
3227 {
3328 $ configPath = $ this ->filepath . 'config.xml ' ;
@@ -50,9 +45,6 @@ public function testCreateInspectConfigMinimal(): void
5045 static ::assertTrue ($ config ->isExitCodeOnFailure ());
5146 }
5247
53- /**
54- * @covers ::createInspectConfig
55- */
5648 public function testCreateInspectConfigMultiReport (): void
5749 {
5850 $ configPath = $ this ->filepath . 'config.xml ' ;
@@ -75,9 +67,6 @@ public function testCreateInspectConfigMultiReport(): void
7567 static ::assertFalse ($ config ->isExitCodeOnFailure ());
7668 }
7769
78- /**
79- * @covers ::createInspectConfig
80- */
8170 public function testCreateInspectConfigInvalidCoverage (): void
8271 {
8372 $ configPath = $ this ->filepath . 'config.xml ' ;
@@ -93,9 +82,6 @@ public function testCreateInspectConfigInvalidCoverage(): void
9382 static ::assertEquals (new ConfigViolation ('Coverage argument should be an array ' ), $ config );
9483 }
9584
96- /**
97- * @covers ::createInspectConfig
98- */
9985 public function testCreateInspectConfigInvalidBaseDir (): void
10086 {
10187 $ configPath = $ this ->filepath . 'config.xml ' ;
@@ -111,9 +97,6 @@ public function testCreateInspectConfigInvalidBaseDir(): void
11197 static ::assertEquals (new ConfigViolation ('--base-dir expecting a value string as argument ' ), $ config );
11298 }
11399
114- /**
115- * @covers ::createInspectConfig
116- */
117100 public function testCreateInspectConfigInvalidGitlabReport (): void
118101 {
119102 $ configPath = $ this ->filepath . 'config.xml ' ;
@@ -129,9 +112,6 @@ public function testCreateInspectConfigInvalidGitlabReport(): void
129112 static ::assertEquals (new ConfigViolation ('--reportGitlab expecting the value to absent or string argument ' ), $ config );
130113 }
131114
132- /**
133- * @covers ::createInspectConfig
134- */
135115 public function testCreateInspectConfigInvalidCheckstyleReport (): void
136116 {
137117 $ configPath = $ this ->filepath . 'config.xml ' ;
@@ -147,9 +127,6 @@ public function testCreateInspectConfigInvalidCheckstyleReport(): void
147127 static ::assertEquals (new ConfigViolation ('--reportCheckstyle expecting the value to absent or string argument ' ), $ config );
148128 }
149129
150- /**
151- * @covers ::createInspectConfig
152- */
153130 public function testCreateInspectConfigInvalidTextReport (): void
154131 {
155132 $ configPath = $ this ->filepath . 'config.xml ' ;
@@ -165,9 +142,6 @@ public function testCreateInspectConfigInvalidTextReport(): void
165142 static ::assertEquals (new ConfigViolation ('--reportText expecting the value to absent or string argument ' ), $ config );
166143 }
167144
168- /**
169- * @covers ::createInspectConfig
170- */
171145 public function testCreateInspectConfigDuplicateOutputReport (): void
172146 {
173147 $ configPath = $ this ->filepath . 'config.xml ' ;
0 commit comments