public function NamespacedAttributeBagTest::testAll

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php, line 109

Class

NamespacedAttributeBagTest
Tests NamespacedAttributeBag

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testAll() {
  $this
    ->assertEquals($this->array, $this->bag
    ->all());
  $this->bag
    ->set('hello', 'fabien');
  $array = $this->array;
  $array['hello'] = 'fabien';
  $this
    ->assertEquals($array, $this->bag
    ->all());
}