You are here

public function OutputFormatterStyleStackTest::testPop in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

OutputFormatterStyleStackTest

Namespace

Symfony\Component\Console\Tests\Formatter

Code

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());
}