public function OutputFormatterStyleStackTest::testPush in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Formatter/OutputFormatterStyleStackTest.php \Symfony\Component\Console\Tests\Formatter\OutputFormatterStyleStackTest::testPush()
File
- vendor/
symfony/ console/ Tests/ Formatter/ OutputFormatterStyleStackTest.php, line 19
Class
Namespace
Symfony\Component\Console\Tests\FormatterCode
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());
}