readgzfile_variation12.phpt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --TEST--
  2. Test function readgzfile() by substituting argument 2 with int values.
  3. --EXTENSIONS--
  4. zlib
  5. --FILE--
  6. <?php
  7. $filename = __DIR__."/004.txt.gz";
  8. $variation = array (
  9. 'int 0' => 0,
  10. 'int 1' => 1,
  11. 'int 12345' => 12345,
  12. 'int -12345' => -2345,
  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)