Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": "^8.1",
"ext-simplexml": "*",
"ext-xmlreader": "*",
"phpunit/phpunit": "^10.3||^11.0||^12.0",
"phpunit/phpunit": "^10.3||^11.0||^12.0||^13.0",
"symfony/console": "^5.4||^6.2||^7.0||^8.0"
},
"autoload": {
Expand Down
24 changes: 24 additions & 0 deletions tests/Subscriber/Application/ApplicationFinishedSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,10 @@ public function testNotifyWithInvalidRuleInstances(): void

public function testFromConfigurationAndParameters(): void
{
$this->exitter
->expects($this->never())
->method('exit');

$this->assertEquals(
new ApplicationFinishedSubscriber(
pathToCloverXml: 'tests/clover.xml',
Expand All @@ -514,6 +518,10 @@ public function testFromConfigurationAndParameters(): void

public function testFromConfigurationAndParameters2(): void
{
$this->exitter
->expects($this->never())
->method('exit');

$this->assertEquals(
new ApplicationFinishedSubscriber(
pathToCloverXml: 'tests/clover.xml',
Expand All @@ -537,6 +545,10 @@ public function testFromConfigurationAndParameters2(): void

public function testFromConfigurationAndParametersFromFile(): void
{
$this->exitter
->expects($this->never())
->method('exit');

$this->assertEquals(
expected: new ApplicationFinishedSubscriber(
pathToCloverXml: 'tests/clover.xml',
Expand All @@ -558,6 +570,10 @@ public function testFromConfigurationAndParametersFromFile(): void

public function testFromConfigurationAndParametersWhenInvalidMinCoverage(): void
{
$this->exitter
->expects($this->never())
->method('exit');

$this->assertNull(
actual: ApplicationFinishedSubscriber::fromConfigurationAndParameters(
configuration: (new Builder())->build([
Expand All @@ -571,6 +587,10 @@ public function testFromConfigurationAndParametersWhenInvalidMinCoverage(): void

public function testFromConfigurationAndParametersWhenCoverageTooHigh(): void
{
$this->exitter
->expects($this->never())
->method('exit');

$this->assertNull(
actual: ApplicationFinishedSubscriber::fromConfigurationAndParameters(
configuration: (new Builder())->build([
Expand All @@ -584,6 +604,10 @@ public function testFromConfigurationAndParametersWhenCoverageTooHigh(): void

public function testFromConfigurationAndParametersWhenRulesAreEmpty(): void
{
$this->exitter
->expects($this->never())
->method('exit');

$this->assertNull(
ApplicationFinishedSubscriber::fromConfigurationAndParameters(
configuration: (new Builder())->build([
Expand Down
Loading