On Wed, Aug 16, 2017 at 4:02 PM, Ryan Jentzsch <ryan.jentz...@gmail.com> wrote: > As an example I want to use PHPUnit mocking feature to create a mock of a > class. However in the constructor of this class is the following line to > get the expected JSON string: > > $result = file_get_contents('php://input'); > > I can not override the file_get_contents() function. > Short answer: No. There's no current, viable RFC for this purpose. Personally, I don't expect one would pass.
-Sara -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php