You are here

public function MetadataBagTest::testGetSetName in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/Session/Storage/MetadataBagTest.php, line 68

Class

MetadataBagTest
Test class for MetadataBag.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

public function testGetSetName() {
  $this
    ->assertEquals('__metadata', $this->bag
    ->getName());
  $this->bag
    ->setName('foo');
  $this
    ->assertEquals('foo', $this->bag
    ->getName());
}