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 ab1a434

Browse filesBrowse files
committed
merged branch eventhorizonpl/100ptc_component_httpfundation_p12 (PR symfony#5773)
This PR was merged into the master branch. Commits ------- 5b3ed82 MetadataBag test Discussion ---------- MetadataBag test Hi, This patch adds MetadataBag test. Best regards, Michal
2 parents 388cbff + 5b3ed82 commit ab1a434
Copy full SHA for ab1a434

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.