hebrev_basic.phpt 848 B

1234567891011121314151617181920212223242526272829303132333435
  1. --TEST--
  2. Test hebrev() function : basic functionality
  3. --FILE--
  4. <?php
  5. /* Prototype : string hebrev ( string $hebrew_text [, int $max_chars_per_line ] )
  6. * Description: Convert logical Hebrew text to visual text
  7. * Source code: ext/standard/string.c
  8. */
  9. echo "*** Testing hebrev() : basic functionality ***\n";
  10. $hebrew_text = "The hebrev function converts logical Hebrew text to visual text.\nThe function tries to avoid breaking words.\n";
  11. var_dump(hebrev($hebrew_text));
  12. var_dump(hebrev($hebrew_text, 15));
  13. ?>
  14. ===DONE===
  15. --EXPECTF--
  16. *** Testing hebrev() : basic functionality ***
  17. string(109) ".The hebrev function converts logical Hebrew text to visual text
  18. .The function tries to avoid breaking words
  19. "
  20. string(109) "to visual text
  21. Hebrew text
  22. logical
  23. converts
  24. hebrev function
  25. .The
  26. breaking words
  27. tries to avoid
  28. .The function
  29. "
  30. ===DONE===