public function FlashBagTest::testAll

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php, line 88

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