<?php
+ini_set("date.timezone", "Europe/Vienna");
+
class CookieTest extends PHPUnit_Framework_TestCase {
function testEmpty() {
$c = new http\Cookie;
$this->assertEquals(
sprintf(
"this=expires; expires=%s; ",
- date_create("@$t")->format("D, d M Y H:i:s \\G\\M\\T")
+ date_create("@$t")
+ ->setTimezone(new DateTimezone("UTC"))
+ ->format("D, d M Y H:i:s \\G\\M\\T")
),
$o->toString()
);