You are here

public function FlashBagTest::testSet in Zircon Profile 8.0

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

File

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

Class

FlashBagTest
FlashBagTest.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Flash

Code

public function testSet() {
  $this->bag
    ->set('notice', 'Foo');
  $this->bag
    ->set('notice', 'Bar');
  $this
    ->assertEquals(array(
    'Bar',
  ), $this->bag
    ->peek('notice'));
}