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
Fabien Potencier 347053c363 Moved most of the logic from ResponseListener to the Response::prepare() method
That allows projects that only use HttpFoundation and not HttpKernel to be able to
enforce the HTTP specification "rules".

$request = Request::createFromGlobals();
$response = new Response();

// do whatever you want with the Respons

// enforce HTTP spec
$response->prepare($request);

$response->send();

Within Symfony2, the prepare method is automatically called by the ResponseListener.
2011-10-18 09:04:20 +02:00
..
File merged 2.0 2011-10-17 02:33:13 +02:00
SessionStorage Increase code coverage for: YamlParser, Validators, PhpEngine + Helpers, HttpFoundation 2011-06-16 11:43:27 +02:00
ApacheRequestTest.php [HttpFoundation] fixed ApacheRequest, added tests 2011-03-16 06:13:01 -07:00
CookieTest.php [HttpFoundation] standardized cookie paths (an empty path is equivalent to /) 2011-09-28 10:49:50 +02:00
FileBagTest.php merged branch stloyd/tests_fix (PR #1860) 2011-08-27 08:01:17 +02:00
HeaderBagTest.php [Tests] Use proper phpunit assertion functions: "assertTrue", "assertFalse", "assertNull" 2011-08-25 15:41:15 +02:00
ParameterBagTest.php Updates according to suggestions. 2011-09-27 20:14:32 +05:45
RequestMatcherTest.php moved management of the locale from the Session class to the Request class 2011-10-08 18:34:49 +02:00
RequestTest.php merged 2.0 2011-09-28 16:08:31 +02:00
ResponseHeaderBagTest.php merged 2.0 2011-09-28 16:08:31 +02:00
ResponseTest.php Moved most of the logic from ResponseListener to the Response::prepare() method 2011-10-18 09:04:20 +02:00
ServerBagTest.php [HttpFoundation] made PHP_AUTH_PW optional 2011-07-26 09:32:45 +02:00
SessionTest.php moved management of the locale from the Session class to the Request class 2011-10-08 18:34:49 +02:00