You are here

public function AttributeBagTest::testInitialize in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/Session/Attribute/AttributeBagTest.php, line 59

Class

AttributeBagTest
Tests AttributeBag.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Attribute

Code

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