Skip to content

Commit f8342e4

Browse files
Merge branch '10.5' into 11.5
2 parents e5872c6 + 9fff2de commit f8342e4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/unit/TextUI/Configuration/Cli/BuilderTest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)