StdinGlobalMock.php 487 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace League\CLImate\Util\Reader;
  3. use League\CLImate\Tests\TestBase;
  4. function fopen($resource, $mode)
  5. {
  6. return TestBase::$functions->fopen($resource, $mode);
  7. }
  8. function fgets($resource, $length)
  9. {
  10. return TestBase::$functions->fgets($resource, $length);
  11. }
  12. function fread($resource, $length)
  13. {
  14. return TestBase::$functions->fread($resource, $length);
  15. }
  16. function stream_get_contents($resource)
  17. {
  18. return TestBase::$functions->stream_get_contents($resource);
  19. }