Annotation of embedaddon/php/ext/standard/tests/strings/hebrev_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test hebrev() function : basic functionality
3: --FILE--
4: <?php
5:
6: /* Prototype : string hebrev ( string $hebrew_text [, int $max_chars_per_line ] )
7: * Description: Convert logical Hebrew text to visual text
8: * Source code: ext/standard/string.c
9: */
10:
11: echo "*** Testing hebrev() : basic functionality ***\n";
12:
13: $hebrew_text = "The hebrev function converts logical Hebrew text to visual text.\nThe function tries to avoid breaking words.\n";
14:
15: var_dump(hebrev($hebrew_text));
16: var_dump(hebrev($hebrew_text, 15));
17:
18: ?>
19: ===DONE===
20: --EXPECTF--
21: *** Testing hebrev() : basic functionality ***
22: string(109) ".The hebrev function converts logical Hebrew text to visual text
23: .The function tries to avoid breaking words
24: "
25: string(109) "to visual text
26: Hebrew text
27: logical
28: converts
29: hebrev function
30: .The
31: breaking words
32: tries to avoid
33: .The function
34: "
35: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>