Hello all,
I'm parsing a PUT query this way :
$raw = file_get_contents('php://input'); $params = array(); parse_str($raw, $params); and I'd like to inject some test content into php://input to test it (and for some non-unit tests too).
I tried to google a bit the matter, but 'put' is a short keyword and I didn't get anything relevant.
I'm ready to change a bit my parsing code to help testing or remove it if PHP 5.3 already has infrastructure for that (I couldn't find anything in the release notes).
Thanks,
Nico