Skip to content

Commit

Permalink
Revert "Change default red to use the high intensity code"
Browse files Browse the repository at this point in the history
This reverts commit 38ed099.
Non-standard SGR code should not be used, as it doesn't work depending
on environment.
  • Loading branch information
chinpei215 committed Oct 8, 2017
1 parent 6a06aec commit f199059
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Console/ConsoleOutput.php
Expand Up @@ -95,7 +95,7 @@ class ConsoleOutput
*/
protected static $_foregroundColors = [
'black' => 30,
'red' => 91,
'red' => 31,
'green' => 32,
'yellow' => 33,
'blue' => 34,
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/Console/ConsoleOutputTest.php
Expand Up @@ -144,7 +144,7 @@ public function testStylesAdding()
public function testFormattingSimple()
{
$this->output->expects($this->once())->method('_write')
->with("\033[91mError:\033[0m Something bad");
->with("\033[31mError:\033[0m Something bad");

$this->output->write('<error>Error:</error> Something bad', false);
}
Expand Down Expand Up @@ -203,7 +203,7 @@ public function testFormattingMissingStyleName()
public function testFormattingMultipleStylesName()
{
$this->output->expects($this->once())->method('_write')
->with("\033[91mBad\033[0m \033[33mWarning\033[0m Regular");
->with("\033[31mBad\033[0m \033[33mWarning\033[0m Regular");

$this->output->write('<error>Bad</error> <warning>Warning</warning> Regular', false);
}
Expand All @@ -216,7 +216,7 @@ public function testFormattingMultipleStylesName()
public function testFormattingMultipleSameTags()
{
$this->output->expects($this->once())->method('_write')
->with("\033[91mBad\033[0m \033[91mWarning\033[0m Regular");
->with("\033[31mBad\033[0m \033[31mWarning\033[0m Regular");

$this->output->write('<error>Bad</error> <error>Warning</error> Regular', false);
}
Expand Down

0 comments on commit f199059

Please sign in to comment.