You are here

public function NamespacedAttributeBagTest::testGetDefaults 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::testGetDefaults()

File

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

Class

NamespacedAttributeBagTest
Tests NamespacedAttributeBag.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Attribute

Code

public function testGetDefaults() {
  $this
    ->assertNull($this->bag
    ->get('user2.login'));
  $this
    ->assertEquals('default', $this->bag
    ->get('user2.login', 'default'));
}