Skip to content

Commit

Permalink
Merge pull request #11301 from chinpei215/revert-console-color
Browse files Browse the repository at this point in the history
Revert "Change default red to use the high intensity code"
  • Loading branch information
markstory committed Oct 8, 2017
2 parents d33acff + f199059 commit 8827866
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 8827866

Please sign in to comment.