public function OutputFormatterStyleStackTest::testPop 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::testPop()
File
- vendor/
symfony/ console/ Tests/ Formatter/ OutputFormatterStyleStackTest.php, line 32
Class
Namespace
Symfony\Component\Console\Tests\FormatterCode
public function testPop() {
$stack = new OutputFormatterStyleStack();
$stack
->push($s1 = new OutputFormatterStyle('white', 'black'));
$stack
->push($s2 = new OutputFormatterStyle('yellow', 'blue'));
$this
->assertEquals($s2, $stack
->pop());
$this
->assertEquals($s1, $stack
->pop());
}