Skip to content

Commit

Permalink
Do not underscore in console output to minimize distraction
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Apr 23, 2015
1 parent bc35e7b commit b297279
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Console/ConsoleOutput.php
Expand Up @@ -138,10 +138,10 @@ class ConsoleOutput
* @var array
*/
protected static $_styles = [
'emergency' => ['text' => 'red', 'underline' => true],
'alert' => ['text' => 'red', 'underline' => true],
'critical' => ['text' => 'red', 'underline' => true],
'error' => ['text' => 'red', 'underline' => true],
'emergency' => ['text' => 'red'],
'alert' => ['text' => 'red'],
'critical' => ['text' => 'red'],
'error' => ['text' => 'red'],
'warning' => ['text' => 'yellow'],
'info' => ['text' => 'cyan'],
'debug' => ['text' => 'yellow'],
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase/Console/ConsoleOutputTest.php
Expand Up @@ -109,7 +109,7 @@ public function testWriteArray()
public function testStylesGet()
{
$result = $this->output->styles('error');
$expected = ['text' => 'red', 'underline' => true];
$expected = ['text' => 'red'];
$this->assertEquals($expected, $result);

$this->assertNull($this->output->styles('made_up_goop'));
Expand Down Expand Up @@ -143,7 +143,7 @@ public function testStylesAdding()
public function testFormattingSimple()
{
$this->output->expects($this->once())->method('_write')
->with("\033[31;4mError:\033[0m Something bad");
->with("\033[31mError:\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[31;4mBad\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 @@ -215,7 +215,7 @@ public function testFormattingMultipleStylesName()
public function testFormattingMultipleSameTags()
{
$this->output->expects($this->once())->method('_write')
->with("\033[31;4mBad\033[0m \033[31;4mWarning\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 b297279

Please sign in to comment.