fixed tests

This commit is contained in:
Fabien Potencier 2015-07-13 11:09:47 +02:00
parent 0a2ac57b08
commit c57c3f5479
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class OutputFormatterStyleTest extends \PHPUnit_Framework_TestCase
$this->assertEquals("\033[34mfoo\033[39m", $style->apply('foo'));
$style->setForeground('default');
$this->assertEquals("\033[39mfoo\033[0m", $style->apply('foo'));
$this->assertEquals("\033[39mfoo\033[39m", $style->apply('foo'));
$this->setExpectedException('InvalidArgumentException');
$style->setForeground('undefined-color');
@ -55,7 +55,7 @@ class OutputFormatterStyleTest extends \PHPUnit_Framework_TestCase
$this->assertEquals("\033[43mfoo\033[49m", $style->apply('foo'));
$style->setBackground('default');
$this->assertEquals("\033[49mfoo\033[0m", $style->apply('foo'));
$this->assertEquals("\033[49mfoo\033[49m", $style->apply('foo'));
$this->setExpectedException('InvalidArgumentException');
$style->setBackground('undefined-color');