Source

						public function testAutomaticContentDecoding() {
		$stream = fopen('php://temp', 'r+');
		fwrite($stream, '{ "foo": "bar" }');
		rewind($stream);
		$request = new Request(compact('stream') + array('env' => array(
			'CONTENT_TYPE' => 'application/json; charset=UTF-8',
			'REQUEST_METHOD' => 'POST'
		)));
		$this->assertEqual(array('foo' => 'bar'), $request->data);
	}