This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/HttpFoundation
hhamon f985da5a9c [HttpFoundation] fix Cache-Control header when forcing the Response to have an Expires header field. The RFC2616 Bis indicates that if the Response has both max-age (or s-maxage) and Expires header field, the Cache-Control maxage wins over Expires. The previous code in ResponseHeaderBag always returned "private, max-age=0, must-revalidate" even if the Expires header field was forced.
This commit breaks functional tests in Symfony\Component\HttpKernel\HttpCache\HttpCacheTest.php. I tried to fix functional tests but I didn\'t manage to. For your information, the "try { } catch" block in the HttpKernel\HttpCache::lookup() method seems strange because I suspect line 274 to never leverage any exception...
2011-02-18 12:34:33 +01:00
..
File [HttpFoundation] fixed test cleanup 2011-02-08 04:14:39 +01:00
CookieTest.php [HttpFoundation] Add tests for Cookie 2011-02-06 16:16:05 +01:00
FileBagTest.php [HttpFoundation] added test for processed array in sub-requests 2011-01-24 18:22:48 +01:00
HeaderBagTest.php changed Cache-Control default value behavior 2010-11-18 17:05:05 +01:00
ParameterBagTest.php renamed Symfony\Components to Symfony\Component 2010-08-20 23:09:55 +02:00
RequestMatcherTest.php [HttpFoundation] changed RequestMatcher pattern syntax 2010-10-07 19:12:53 +02:00
RequestTest.php [HttpFoundation] Request coverage 2011-02-07 02:49:14 +01:00
ResponseHeaderBagTest.php [HttpFoundation] fix Cache-Control header when forcing the Response to have an Expires header field. The RFC2616 Bis indicates that if the Response has both max-age (or s-maxage) and Expires header field, the Cache-Control maxage wins over Expires. The previous code in ResponseHeaderBag always returned "private, max-age=0, must-revalidate" even if the Expires header field was forced. 2011-02-18 12:34:33 +01:00
ResponseTest.php normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
ServerBagTest.php [HttFoundation] extracted FileBag, ServerBag, fixed HeaderBag::add(), updated Request test 2011-01-23 07:40:31 +01:00