You are here

public function AutoExpireFlashBagTest::testAll in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/Session/Flash/AutoExpireFlashBagTest.php \Symfony\Component\HttpFoundation\Tests\Session\Flash\AutoExpireFlashBagTest::testAll()

File

vendor/symfony/http-foundation/Tests/Session/Flash/AutoExpireFlashBagTest.php, line 139

Class

AutoExpireFlashBagTest
AutoExpireFlashBagTest.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Flash

Code

public function testAll() {
  $this->bag
    ->set('notice', 'Foo');
  $this->bag
    ->set('error', 'Bar');
  $this
    ->assertEquals(array(
    'notice' => array(
      'A previous flash message',
    ),
  ), $this->bag
    ->all());
  $this
    ->assertEquals(array(), $this->bag
    ->all());
}