public function AttributeBagTest::testInitialize

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/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());
}