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
14831483 $ configuration ->doNotFailOnPhpunitDeprecation ();
14841484 }
14851485
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+
14861506 #[TestDox('--do-not-fail-on-empty-test-suite ' )]
14871507 public function testDoNotFailOnEmptyTestSuite (): void
14881508 {
You can’t perform that action at this time.
0 commit comments