public function NamespacedAttributeBagTest::testReplace in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php \Symfony\Component\HttpFoundation\Tests\Session\Attribute\NamespacedAttributeBagTest::testReplace()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Attribute/ NamespacedAttributeBagTest.php, line 119
Class
- NamespacedAttributeBagTest
- Tests NamespacedAttributeBag.
Namespace
Symfony\Component\HttpFoundation\Tests\Session\AttributeCode
public function testReplace() {
$array = array();
$array['name'] = 'jack';
$array['foo.bar'] = 'beep';
$this->bag
->replace($array);
$this
->assertEquals($array, $this->bag
->all());
$this
->assertNull($this->bag
->get('hello'));
$this
->assertNull($this->bag
->get('always'));
$this
->assertNull($this->bag
->get('user.login'));
}