protected function registerBag(SymfonySession $session) { $bag = new AttributeBag('_' . self::BAG_NAME); $bag->setName(self::BAG_NAME); $session->registerBag($bag); $this->sessionBag = $session->getBag(self::BAG_NAME); }
public function testGetSetName() { $this->assertEquals('attributes', $this->bag->getName()); $this->bag->setName('foo'); $this->assertEquals('foo', $this->bag->getName()); }