Skip to content

Commit

Permalink
Merge branch '10.5' into 11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 4, 2024
2 parents 34fecf1 + af9a805 commit 444f41d
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 10 deletions.
16 changes: 14 additions & 2 deletions src/Runner/TestResult/TestResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,24 @@ public function hasDeprecations(): bool

public function hasPhpOrUserDeprecations(): bool
{
return count($this->phpDeprecations) > 0 || count($this->deprecations) > 0;
return $this->numberOfPhpOrUserDeprecations() > 0;
}

public function numberOfPhpOrUserDeprecations(): int
{
return count($this->deprecations) +
count($this->phpDeprecations);
}

public function hasPhpunitDeprecations(): bool
{
return count($this->testTriggeredPhpunitDeprecationEvents) > 0 || count($this->testRunnerTriggeredDeprecationEvents) > 0;
return $this->numberOfPhpunitDeprecations() > 0;
}

public function numberOfPhpunitDeprecations(): int
{
return count($this->testTriggeredPhpunitDeprecationEvents) +
count($this->testRunnerTriggeredDeprecationEvents);
}

public function numberOfDeprecations(): int
Expand Down
3 changes: 2 additions & 1 deletion src/TextUI/Output/SummaryPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public function print(TestResult $result): void
$this->printCountString($result->numberOfErrors(), 'Errors', $color);
$this->printCountString($result->numberOfTestFailedEvents(), 'Failures', $color);
$this->printCountString($result->numberOfWarnings(), 'Warnings', $color);
$this->printCountString($result->numberOfDeprecations(), 'Deprecations', $color);
$this->printCountString($result->numberOfPhpOrUserDeprecations(), 'Deprecations', $color);
$this->printCountString($result->numberOfPhpunitDeprecations(), 'PHPUnit Deprecations', $color);
$this->printCountString($result->numberOfNotices(), 'Notices', $color);
$this->printCountString($result->numberOfTestSuiteSkippedEvents() + $result->numberOfTestSkippedEvents(), 'Skipped', $color);
$this->printCountString($result->numberOfTestMarkedIncompleteEvents(), 'Incomplete', $color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ Triggered by:
%sDeprecationTest.php:%d

OK, but there were issues!
Tests: 3, Assertions: 3, Deprecations: 2.
Tests: 3, Assertions: 3, Deprecations: 1, PHPUnit Deprecations: 1.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ There was 1 PHPUnit test runner deprecation:
1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!

OK, but there were issues!
Tests: 1, Assertions: 1, Deprecations: 1.
Tests: 1, Assertions: 1, PHPUnit Deprecations: 1.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ There was 1 PHPUnit test runner deprecation:
1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!

OK, but there were issues!
Tests: 1, Assertions: 1, Deprecations: 1.
Tests: 1, Assertions: 1, PHPUnit Deprecations: 1.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ There was 1 PHPUnit test runner deprecation:
1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!

OK, but there were issues!
Tests: 1, Assertions: 1, Deprecations: 1.
Tests: 1, Assertions: 1, PHPUnit Deprecations: 1.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ There was 1 PHPUnit test runner deprecation:
1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!

OK, but there were issues!
Tests: 1, Assertions: 1, Deprecations: 1.
Tests: 1, Assertions: 1, PHPUnit Deprecations: 1.
2 changes: 1 addition & 1 deletion tests/end-to-end/regression/5172.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ There was 1 PHPUnit test runner deprecation:
1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!

OK, but there were issues!
Tests: 1, Assertions: 1, Deprecations: 1.
Tests: 1, Assertions: 1, PHPUnit Deprecations: 1.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ message
%s:%i

OK, but there were issues!
Tests: 1, Assertions: 1, Deprecations: 2.
Tests: 1, Assertions: 1, PHPUnit Deprecations: 2.

0 comments on commit 444f41d

Please sign in to comment.