X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Ftestsuite.php;h=19a4f0eb2d42a2aa99cd50154568a6e98b0030b8;hb=0c9070eabdf0710e722a5f080d11ff4f1cf7197c;hp=e5fb6d8d1dc1c4e430af51e0c35f0c7413993c2c;hpb=2e4d7e8aedf960a3b5c5d0eeb29f4a1175142011;p=plcapi.git diff --git a/test/testsuite.php b/test/testsuite.php index e5fb6d8..19a4f0e 100644 --- a/test/testsuite.php +++ b/test/testsuite.php @@ -573,8 +573,15 @@ And turned it into nylon'; $rcookies = $r->cookies(); // remove extra cookies which might have been set by proxies foreach($rcookies as $c => $v) + { if(!in_array($c, array('c2', 'c3', 'c4', 'c5'))) unset($rcookies[$c]); + // Seems like we get this when using php-fpm and php 5.5+ ... + if (isset($rcookies[$c]['Max-Age'])) + { + unset($rcookies[$c]['Max-Age']); + } + } 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'...