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