Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b3ed82

Browse filesBrowse files
author
Michal Piotrowski
committed
MetadataBag test
1 parent 6b12fc0 commit 5b3ed82
Copy full SHA for 5b3ed82

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ public function testGetStorageKey()
8282
$this->assertEquals('_sf2_meta', $this->bag->getStorageKey());
8383
}
8484

85+
public function testGetLifetime()
86+
{
87+
$bag = new MetadataBag();
88+
$array = array(MetadataBag::CREATED => 1234567, MetadataBag::UPDATED => 12345678, MetadataBag::LIFETIME => 1000);
89+
$bag->initialize($array);
90+
$this->assertEquals(1000, $bag->getLifetime());
91+
}
92+
8593
public function testGetCreated()
8694
{
8795
$this->assertEquals(1234567, $this->bag->getCreated());

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.