Skip to content

Commit fcac58e

Browse files
committed
final cleanup
1 parent 6d00b98 commit fcac58e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/ResultPrinter71.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ protected function setMessageColor(string $type, $msg): string
164164
$marker = "fail";
165165
}
166166

167+
// if user turned off colors, reset to white
168+
if(!$this->colors) {
169+
$color = "37";
170+
}
167171
$testMarker = $this->markers[$marker];
168172
return "\033[01;{$color}m{$testMarker}{$msg}\033[0m";
169173
}

tests/Unit/PrinterTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,21 @@ public function should_fail_again()
6666

6767
}
6868

69-
70-
/** @test */
69+
/** @skip */
7170
public function should_skip()
7271
{
7372
$this->markTestSkipped();
7473

7574
}
7675

77-
/** @test */
76+
/** @skip */
7877
public function should_skip_another()
7978
{
8079
$this->markTestSkipped();
8180

8281
}
8382

84-
/** @test */
83+
/** @skip */
8584
public function should_be_incomplete()
8685
{
8786
$this->markTestIncomplete();
@@ -95,5 +94,4 @@ public function should_be_risky()
9594

9695
}
9796

98-
9997
}

0 commit comments

Comments
 (0)