Skip to content

Commit

Permalink
Fix one testcase apparently broken by automatic formatting tools
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Feb 21, 2015
1 parent 0a32caf commit e070014
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/LocalhostTest.php
Expand Up @@ -525,7 +525,8 @@ public function testGetCookies()
unset($rcookies[$c]);
}
}
foreach ($cookies as $c => $v) {// format for date string in cookies: 'Mon, 31 Oct 2005 13:50:56 GMT'
foreach ($cookies as $c => $v) {
// format for date string in cookies: 'Mon, 31 Oct 2005 13:50:56 GMT'
// but PHP versions differ on that, some use 'Mon, 31-Oct-2005 13:50:56 GMT'...
if (isset($v['expires'])) {
if (isset($rcookies[$c]['expires']) && strpos($rcookies[$c]['expires'], '-')) {
Expand All @@ -534,8 +535,9 @@ public function testGetCookies()
$cookies[$c]['expires'] = gmdate('D, d M Y H:i:s \G\M\T', $cookies[$c]['expires']);
}
}
$this->assertEquals($cookies, $rcookies);
}

$this->assertEquals($cookies, $rcookies);
}
}

Expand Down

0 comments on commit e070014

Please sign in to comment.