You are here

protected function NamespacedAttributeBagTest::setUp in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php, line 33

Class

NamespacedAttributeBagTest
Tests NamespacedAttributeBag.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Attribute

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);
}