Virtual Browser for Functional Testing
I'd like a virtual "Browser" class which allows me to simulate arbitrary HTTP requests without actually sending them over the network. This would be great for testing controllers and any other component which is accessed through the HTTP stack.
[FEATURE] HTTP Client for Functional Testing
This adds a virtual HTTP client which supports pluggable request engines
for different purposes. The first scenario in which we'll use this new
"Browser" is for seamless functional testing of controllers and other
features which should be tested through the whole request / response
The FunctionalTestCase now provides a new class property called
"testableHttpEnabled" which, if set to TRUE, initializes a new browser
for each test and provides it as $this->browser.
Also adds a bunch of functional tests for the MVC ActionController using
this new feature.