You are here

public function FlashBagTest::testAll in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/Session/Flash/FlashBagTest.php, line 87

Class

FlashBagTest
FlashBagTest.

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(
      'Foo',
    ),
    'error' => array(
      'Bar',
    ),
  ), $this->bag
    ->all());
  $this
    ->assertEquals(array(), $this->bag
    ->all());
}