hebrev_basic.phpt 637 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Test hebrev() function : basic functionality
  3. --FILE--
  4. <?php
  5. echo "*** Testing hebrev() : basic functionality ***\n";
  6. $hebrew_text = "The hebrev function converts logical Hebrew text to visual text.\nThe function tries to avoid breaking words.\n";
  7. var_dump(hebrev($hebrew_text));
  8. var_dump(hebrev($hebrew_text, 15));
  9. ?>
  10. --EXPECT--
  11. *** Testing hebrev() : basic functionality ***
  12. string(109) ".The hebrev function converts logical Hebrew text to visual text
  13. .The function tries to avoid breaking words
  14. "
  15. string(109) "to visual text
  16. Hebrew text
  17. logical
  18. converts
  19. hebrev function
  20. .The
  21. breaking words
  22. tries to avoid
  23. .The function
  24. "