File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
tests/unit/TextUI/Configuration/Cli Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1467,6 +1467,26 @@ public function testDoNotFailOnPhpunitDeprecationMayNotBeConfigured(): void
1467
1467
$ configuration ->doNotFailOnPhpunitDeprecation ();
1468
1468
}
1469
1469
1470
+ #[TestDox('--do-not-fail-on-phpunit-warning ' )]
1471
+ public function testDoNotFailOnPhpunitWarning (): void
1472
+ {
1473
+ $ configuration = (new Builder )->fromParameters (['--do-not-fail-on-phpunit-warning ' ]);
1474
+
1475
+ $ this ->assertTrue ($ configuration ->hasDoNotFailOnPhpunitWarning ());
1476
+ $ this ->assertTrue ($ configuration ->doNotFailOnPhpunitWarning ());
1477
+ }
1478
+
1479
+ public function testDoNotFailOnPhpunitWarningMayNotBeConfigured (): void
1480
+ {
1481
+ $ configuration = (new Builder )->fromParameters ([]);
1482
+
1483
+ $ this ->assertFalse ($ configuration ->hasDoNotFailOnPhpunitWarning ());
1484
+
1485
+ $ this ->expectException (Exception::class);
1486
+
1487
+ $ configuration ->doNotFailOnPhpunitWarning ();
1488
+ }
1489
+
1470
1490
#[TestDox('--do-not-fail-on-empty-test-suite ' )]
1471
1491
public function testDoNotFailOnEmptyTestSuite (): void
1472
1492
{
You can’t perform that action at this time.
0 commit comments