You are here

public function StackTest::testPop in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/_files/StackTest.php \StackTest::testPop()

@depends testPush

File

vendor/phpunit/phpunit/tests/_files/StackTest.php, line 19

Class

StackTest

Code

public function testPop(array $stack) {
  $this
    ->assertEquals('foo', array_pop($stack));
  $this
    ->assertEquals(0, count($stack));
}