Annotation of embedaddon/php/ext/standard/tests/strings/hebrevc_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test hebrevc() function : basic functionality
3: --FILE--
4: <?php
5:
6: /* Prototype : string hebrevc ( 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 hebrevc() : basic functionality ***\n";
12:
13: $hebrew_text = "The hebrevc function converts logical Hebrew text to visual text.\nThis function is similar to hebrev() with the difference that it converts newlines (\n) to '<br>\n'.\nThe function tries to avoid breaking words.\n";
14:
15: var_dump(hebrevc($hebrew_text));
16: var_dump(hebrevc($hebrew_text, 15));
17:
18: ?>
19: ===DONE===
20: --EXPECTF--
21: *** Testing hebrevc() : basic functionality ***
22: string(239) ".The hebrevc function converts logical Hebrew text to visual text<br />
23: ) This function is similar to hebrev() with the difference that it converts newlines<br />
24: <to '<br (<br />
25: .'<br />
26: .The function tries to avoid breaking words<br />
27: "
28: string(317) "to visual text<br />
29: Hebrew text<br />
30: logical<br />
31: converts<br />
32: function<br />
33: .The hebrevc<br />
34: newlines<br />
35: it converts<br />
36: difference that<br />
37: with the<br />
38: to hebrev()<br />
39: is similar<br />
40: ) This function<br />
41: <to '<br (<br />
42: .'<br />
43: breaking words<br />
44: tries to avoid<br />
45: .The function<br />
46: "
47: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>