fixed tests
This commit is contained in:
parent
0a2ac57b08
commit
c57c3f5479
|
@ -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');
|
||||
|
|
Reference in New Issue