namespace Symfony\Component\Console\Tests\Formatter;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Symfony\Component\Console\Formatter\OutputFormatterStyleStack;
class OutputFormatterStyleStackTest extends TestCase
{ public function testPush() { $stack =
new OutputFormatterStyleStack();
$stack->
push($s1 =
new OutputFormatterStyle('white', 'black'
));
$stack->
push($s2 =
new OutputFormatterStyle('yellow', 'blue'
));
$this->
assertEquals($s2,
$stack->
getCurrent());
$stack->
push($s3 =
new OutputFormatterStyle('green', 'red'
));
$this->
assertEquals($s3,
$stack->
getCurrent());
} public function testPop() {