You are here

public function FlashBagTest::testInitialize 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::testInitialize()

File

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

Class

FlashBagTest
FlashBagTest.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Flash

Code

public function testInitialize() {
  $bag = new FlashBag();
  $bag
    ->initialize($this->array);
  $this
    ->assertEquals($this->array, $bag
    ->peekAll());
  $array = array(
    'should' => array(
      'change',
    ),
  );
  $bag
    ->initialize($array);
  $this
    ->assertEquals($array, $bag
    ->peekAll());
}