Skip to content
Permalink
Browse files

Revert "Change default red to use the high intensity code"

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 f199059b52113e8aa91dee23742da9d9e065408d
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/Console/ConsoleOutput.php
  2. +3 −3 tests/TestCase/Console/ConsoleOutputTest.php
@@ -95,7 +95,7 @@ class ConsoleOutput
*/
protected static $_foregroundColors = [
'black' => 30,
'red' => 91,
'red' => 31,
'green' => 32,
'yellow' => 33,
'blue' => 34,
@@ -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);
}
@@ -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);
}
@@ -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);
}

0 comments on commit f199059

Please sign in to comment.
You can’t perform that action at this time.