summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-foundation/Tests/CookieTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-foundation/Tests/CookieTest.php')
-rw-r--r--vendor/symfony/http-foundation/Tests/CookieTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/symfony/http-foundation/Tests/CookieTest.php b/vendor/symfony/http-foundation/Tests/CookieTest.php
index a47b71e1d4..14c45c9a6c 100644
--- a/vendor/symfony/http-foundation/Tests/CookieTest.php
+++ b/vendor/symfony/http-foundation/Tests/CookieTest.php
@@ -157,6 +157,18 @@ class CookieTest extends TestCase
$cookie = new Cookie('foo', 'bar', time() - 20);
$this->assertTrue($cookie->isCleared(), '->isCleared() returns true if the cookie has expired');
+
+ $cookie = new Cookie('foo', 'bar');
+
+ $this->assertFalse($cookie->isCleared());
+
+ $cookie = new Cookie('foo', 'bar', 0);
+
+ $this->assertFalse($cookie->isCleared());
+
+ $cookie = new Cookie('foo', 'bar', -1);
+
+ $this->assertFalse($cookie->isCleared());
}
public function testToString()