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 @@ -1483,6 +1483,26 @@ public function testDoNotFailOnPhpunitDeprecationMayNotBeConfigured(): void
1483
1483
$ configuration ->doNotFailOnPhpunitDeprecation ();
1484
1484
}
1485
1485
1486
+ #[TestDox('--do-not-fail-on-phpunit-warning ' )]
1487
+ public function testDoNotFailOnPhpunitWarning (): void
1488
+ {
1489
+ $ configuration = (new Builder )->fromParameters (['--do-not-fail-on-phpunit-warning ' ]);
1490
+
1491
+ $ this ->assertTrue ($ configuration ->hasDoNotFailOnPhpunitWarning ());
1492
+ $ this ->assertTrue ($ configuration ->doNotFailOnPhpunitWarning ());
1493
+ }
1494
+
1495
+ public function testDoNotFailOnPhpunitWarningMayNotBeConfigured (): void
1496
+ {
1497
+ $ configuration = (new Builder )->fromParameters ([]);
1498
+
1499
+ $ this ->assertFalse ($ configuration ->hasDoNotFailOnPhpunitWarning ());
1500
+
1501
+ $ this ->expectException (Exception::class);
1502
+
1503
+ $ configuration ->doNotFailOnPhpunitWarning ();
1504
+ }
1505
+
1486
1506
#[TestDox('--do-not-fail-on-empty-test-suite ' )]
1487
1507
public function testDoNotFailOnEmptyTestSuite (): void
1488
1508
{
You can’t perform that action at this time.
0 commit comments