protected function NamespacedAttributeBagTest::setUp

File

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

Class

NamespacedAttributeBagTest
Tests NamespacedAttributeBag

Namespace

Symfony\Component\HttpFoundation\Tests

Code

protected function setUp() {
  $this->array = array(
    'hello' => 'world',
    'always' => 'be happy',
    'user.login' => 'drak',
    'csrf.token' => array(
      'a' => '1234',
      'b' => '4321',
    ),
    'category' => array(
      'fishing' => array(
        'first' => 'cod',
        'second' => 'sole',
      ),
    ),
  );
  $this->bag = new NamespacedAttributeBag('_sf2', '/');
  $this->bag
    ->initialize($this->array);
}