public function MetadataBagTest::testDoesNotSkipLastUsedUpdate in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/Session/Storage/MetadataBagTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\MetadataBagTest::testDoesNotSkipLastUsedUpdate()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ MetadataBagTest.php, line 119
Class
- MetadataBagTest
- Test class for MetadataBag.
Namespace
Symfony\Component\HttpFoundation\Tests\Session\StorageCode
public function testDoesNotSkipLastUsedUpdate() {
$bag = new MetadataBag('', 30);
$timeStamp = time();
$created = $timeStamp - 45;
$sessionMetadata = array(
MetadataBag::CREATED => $created,
MetadataBag::UPDATED => $created,
MetadataBag::LIFETIME => 1000,
);
$bag
->initialize($sessionMetadata);
$this
->assertEquals($timeStamp, $sessionMetadata[MetadataBag::UPDATED]);
}