Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[4.0.0] Response headers and cookies are no longer prematurely sent #12378
The Application class is effectively responsible for turning HTTP requests into HTTP responses. It shouldn't assume that the response will actually be sent - which is particularly true in testing.
Application requests should be handled like this:
$response = $application->handle($uri); $response->send();