You are here

public function CookieTest::testGetExpiresTimeWithStringValue in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testGetExpiresTimeWithStringValue()

File

vendor/symfony/http-foundation/Tests/CookieTest.php, line 102

Class

CookieTest
CookieTest.

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetExpiresTimeWithStringValue() {
  $value = '+1 day';
  $cookie = new Cookie('foo', 'bar', $value);
  $expire = strtotime($value);
  $this
    ->assertEquals($expire, $cookie
    ->getExpiresTime(), '->getExpiresTime() returns the expire date');
}