You are here

public function MetadataBagTest::testGetLifetime in Zircon Profile 8.0

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

File

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

Class

MetadataBagTest
Test class for MetadataBag.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

public function testGetLifetime() {
  $bag = new MetadataBag();
  $array = array(
    MetadataBag::CREATED => 1234567,
    MetadataBag::UPDATED => 12345678,
    MetadataBag::LIFETIME => 1000,
  );
  $bag
    ->initialize($array);
  $this
    ->assertEquals(1000, $bag
    ->getLifetime());
}