Skip to content

Commit b132164

Browse files
committed
chore: release 0.27 -- phpunit 9 support
1 parent 953a82f commit b132164

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codedungeon/phpunit-result-printer",
3-
"version": "0.26.2",
3+
"version": "0.27.0",
44
"description": "PHPUnit Pretty Result Printer",
55
"keywords": [
66
"phpunit",
@@ -25,7 +25,7 @@
2525
"symfony/yaml": "^2.7|^3.0|^4.0",
2626
"codedungeon/php-cli-colors": "^1.10.2",
2727
"2bj/phanybar": "^1.0",
28-
"phpunit/phpunit": "^8.0"
28+
"phpunit/phpunit": "^8.0|^9.0"
2929
},
3030
"require-dev": {
3131
"spatie/phpunit-watcher": "^1.6"

phpunit-printer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ markers:
99
cd-pass: ""
1010
cd-fail: ""
1111
cd-error: ""
12-
cd-skipped: "=> "
12+
cd-skipped: " "
1313
cd-incomplete: ""
1414
cd-risky: ""

src/ResultPrinter80.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
use PHPUnit\Framework\TestFailure;
1212

1313
$low = version_compare(Version::series(), '8.0', '>=');
14-
<<<<<<< HEAD
15-
$high = true; // version_compare(Version::series(),'7.1.99','<=');
16-
=======
1714
$high = version_compare(Version::series(),'8.99.99','<=');
18-
>>>>>>> php74-phpunit9
1915

2016
if ($low && $high) {
2117
class ResultPrinter80 extends ResultPrinter
@@ -87,7 +83,7 @@ protected function formatExceptionMsg($exceptionMessage): string
8783
return "$exceptionMessage";
8884
}
8985

90-
protected function printDefectTrace(TestFailure $defect): void
86+
protected function printDefectTrace(TestFailure $defect):void
9187
{
9288
$this->write($this->formatExceptionMsg($defect->getExceptionAsString()));
9389
$trace = Filter::getFilteredStacktrace(
@@ -100,8 +96,8 @@ protected function printDefectTrace(TestFailure $defect): void
10096
while ($exception) {
10197
$this->write(
10298
"\nCaused by\n" .
103-
TestFailure::exceptionToString($exception) . "\n" .
104-
Filter::getFilteredStacktrace($exception)
99+
TestFailure::exceptionToString($exception) . "\n" .
100+
Filter::getFilteredStacktrace($exception)
105101
);
106102
$exception = $exception->getPrevious();
107103
}

src/phpunit-printer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ markers:
99
cd-pass: ""
1010
cd-fail: ""
1111
cd-error: ""
12-
cd-skipped: "=> "
12+
cd-skipped: " "
1313
cd-incomplete: ""
14-
cd-risky: ""
14+
cd-risky: ""

0 commit comments

Comments
 (0)