8000 Add test to ensure the lifetime is an int after initialization · symfony/symfony@bc9ec63 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc9ec63

Browse files
committed
Add test to ensure the lifetime is an int after initialization
1 parent fc8a2de commit bc9ec63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,14 @@ public function testDoesNotSkipLastUsedUpdate()
136136

137137
$this->assertEquals($timeStamp, $sessionMetadata[MetadataBag::UPDATED]);
138138
}
139+
140+
public function testLifetimeIsInt()
141+
{
142+
$sessionMetadata = [];
143+
144+
$bag = new MetadataBag();
145+
$bag->initialize($sessionMetadata);
146+
147+
$this->assertIsInt($bag->getLifetime());
148+
}
139149
}

0 commit comments

Comments
 (0)
0