+
+ /**
+ * Returns the current PHP input stream
+ * Mainly used for test doubling
+ *
+ * @return false|resource
+ */
+ protected function getPhpInputStream()
+ {
+ return fopen('php://input', 'rb');
+ }
+
+ /**
+ * Returns the content of the current PHP input
+ * Mainly used for test doubling
+ *
+ * @return false|string
+ */
+ protected function getPhpInputContent()
+ {
+ return file_get_contents('php://input');
+ }