Skip to content

Commit 4a689ac

Browse files
committed
fix: adjusted passing checkmark
1 parent ba2bdb9 commit 4a689ac

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
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.25.0",
3+
"version": "0.25.1",
44
"description": "PHPUnit Pretty Result Printer",
55
"keywords": [
66
"phpunit",
@@ -28,7 +28,7 @@
2828
},
2929
"require-dev": {
3030
"spatie/phpunit-watcher": "^1.6",
31-
"phpunit/phpunit": "7.4.*"
31+
"phpunit/phpunit": "7.5.*"
3232
},
3333
"autoload": {
3434
"psr-4": {

phpunit.ci.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGLobals="false"
3-
colors="false"
2+
<phpunit colors="false"
43
bootstrap="vendor/autoload.php"
54
failOnRisky="false"
65
processIsolation="false"

src/PrinterTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function __construct(
8888
$this->loadDefaultConfiguration();
8989
$this->loadUserConfiguration();
9090

91-
$this->maxNumberOfColumns = $this->getWidth();
91+
$this->maxNumberOfColumns = $this->getWidth()-5;
9292
$this->maxClassNameLength = min((int) ($this->maxNumberOfColumns / 2), $this->maxClassNameLength);
9393

9494
if ($this->hideNamespace) {
@@ -405,7 +405,7 @@ private function printTestCaseStatus($color, $buffer)
405405
}
406406
switch (strtoupper($buffer)) {
407407
case '.':
408-
$color = 'fg-green,bold';
408+
$color = 'fg-green';
409409
$buffer = $this->simpleOutput ? '.' : $this->markers['pass']; // mb_convert_encoding("\x27\x13", 'UTF-8', 'UTF-16BE');
410410
$buffer .= (!$this->debug) ? '' : ' Passed';
411411
break;

src/phpunit-printer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ options:
22
cd-printer-hide-class: false
33
cd-printer-simple-output: false
44
cd-printer-show-config: true
5-
cd-printer-hide-namespace: false
6-
cd-printer-anybar: false
5+
cd-printer-hide-namespace: true
6+
cd-printer-anybar: true
77
cd-printer-anybar-port: 1738
88
markers:
9-
cd-pass: " "
9+
cd-pass: "✔︎ "
1010
cd-fail: ""
1111
cd-error: ""
1212
cd-skipped: "=> "

0 commit comments

Comments
 (0)