readgzfile_variation9.phpt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --TEST--
  2. Test function readgzfile() by substituting argument 2 with boolean values.
  3. --EXTENSIONS--
  4. zlib
  5. --FILE--
  6. <?php
  7. $filename = __DIR__."/004.txt.gz";
  8. $variation = array(
  9. 'lowercase true' => true,
  10. 'lowercase false' =>false,
  11. 'uppercase TRUE' =>TRUE,
  12. 'uppercase FALSE' =>FALSE,
  13. );
  14. foreach ( $variation as $var ) {
  15. var_dump(readgzfile( $filename, $var ) );
  16. }
  17. ?>
  18. --EXPECT--
  19. When you're taught through feelings
  20. Destiny flying high above
  21. all I know is that you can realize it
  22. Destiny who cares
  23. as it turns around
  24. and I know that it descends down on me
  25. int(176)
  26. When you're taught through feelings
  27. Destiny flying high above
  28. all I know is that you can realize it
  29. Destiny who cares
  30. as it turns around
  31. and I know that it descends down on me
  32. int(176)
  33. When you're taught through feelings
  34. Destiny flying high above
  35. all I know is that you can realize it
  36. Destiny who cares
  37. as it turns around
  38. and I know that it descends down on me
  39. int(176)
  40. When you're taught through feelings
  41. Destiny flying high above
  42. all I know is that you can realize it
  43. Destiny who cares
  44. as it turns around
  45. and I know that it descends down on me
  46. int(176)