Skip to content

Commit

Permalink
final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeerickson committed Oct 5, 2018
1 parent 6d00b98 commit fcac58e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/ResultPrinter71.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ protected function setMessageColor(string $type, $msg): string
$marker = "fail";
}

// if user turned off colors, reset to white
if(!$this->colors) {
$color = "37";
}
$testMarker = $this->markers[$marker];
return "\033[01;{$color}m{$testMarker}{$msg}\033[0m";
}
Expand Down
8 changes: 3 additions & 5 deletions tests/Unit/PrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,21 @@ public function should_fail_again()

}


/** @test */
/** @skip */
public function should_skip()
{
$this->markTestSkipped();

}

/** @test */
/** @skip */
public function should_skip_another()
{
$this->markTestSkipped();

}

/** @test */
/** @skip */
public function should_be_incomplete()
{
$this->markTestIncomplete();
Expand All @@ -95,5 +94,4 @@ public function should_be_risky()

}


}

0 comments on commit fcac58e

Please sign in to comment.