public function AttributeBagTest::testInitialize in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\AttributeCode
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());
}