symfony/symfony — pull request #5131 by taylorotwell (2012-08-01 01:34:34+00:00)
Title: added new createRequest method to BrowserKit Client

This provides a new `createRequest` method on the BrowserKit Client class, allowing users of the component to override the Request creation process and, for example, inject an extension of the HttpFoundation Request class instead of being forced to use the base class.

Use case for me was when working on a framework that I wanted to provide functional testing for using the BrowserKit and HttpKernel components; however, because my framework extends the base HttpFoundation Request class, I am unable to integrate with this component.