Hi everybody,
I am writing PHPUnit test cases for a web application. As the tests are run within a command line environment, I am mocking a number of predefined variables such as $_POST, $_GET,$_SERVER, etc.. My test has to make sure that my controller class parses properly JSON input (which is sent as raw POST and red through php://input). The question is, how can I manipulate the value of php://input without running a web server?