ZF-7555: testIsExpired(Zend_Http_CookieTest) unit tests failure
Description
{panel} 2) testIsExpired(Zend_Http_CookieTest) with data set #0 ('cookie=foo;domain=example.com;expires=Monday, 10-Aug-09 19:08:16 UTC', false) Failed asserting that matches expected value . {panel}
Comments
Posted by Alexander Veremyev (alexander) on 2009-08-11T06:43:42.000+0000
Problem doesn't appear if Zend_Http_Cookie tests runs separately. So the problem is caused by some other test.
Posted by Shahar Evron (shahar) on 2009-08-11T07:16:00.000+0000
This happens because (surprisingly) phpUnit runs the static dataProvider method before running the actual test method - probably at the beginning of the test case.
The code there tests a cookie which is 15 seconds in the future - if running the tests is very slow, and it takes more than 15 seconds between running the dataProvider function and running the test, the test will fail.
I will increase this to 12 hours in the future instead of 15 seconds - I assume this should be enough.
Posted by Shahar Evron (shahar) on 2009-08-11T08:05:46.000+0000
Fixed in trunk rev. 17555 - still need to merge to release branch
Posted by Shahar Evron (shahar) on 2009-08-11T09:20:39.000+0000
Merged to 1.9 branch in rev. 17556