Skip to content

Commit

Permalink
Change default red to use the high intensity code
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Apr 23, 2015
1 parent b297279 commit 38ed099
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 @@ -94,7 +94,7 @@ class ConsoleOutput
*/
protected static $_foregroundColors = [
'black' => 30,
'red' => 31,
'red' => 91,
'green' => 32,
'yellow' => 33,
'blue' => 34,
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/Console/ConsoleOutputTest.php
Expand Up @@ -143,7 +143,7 @@ public function testStylesAdding()
public function testFormattingSimple()
{
$this->output->expects($this->once())->method('_write')
->with("\033[31mError:\033[0m Something bad");
->with("\033[91mError:\033[0m Something bad");

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

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

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

0 comments on commit 38ed099

Please sign in to comment.