Annotation of embedaddon/php/ext/ctype/tests/ctype_punct_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test ctype_punct() function : basic functionality
3: --SKIPIF--
4: <?php require_once('skipif.inc'); ?>
5: --FILE--
6: <?php
7: /* Prototype : bool ctype_punct(mixed $c)
8: * Description: Checks for any printable character which is not whitespace
9: * or an alphanumeric character
10: * Source code: ext/ctype/ctype.c
11: */
12:
13: echo "*** Testing ctype_punct() : basic functionality ***\n";
14:
15: $orig = setlocale(LC_CTYPE, "C");
16:
17: $c1 = '@!$*';
18: $c2 = 'hello, world!';
19:
20: var_dump(ctype_punct($c1));
21: var_dump(ctype_punct($c2));
22:
23: setlocale(LC_CTYPE, $orig);
24: ?>
25: ===DONE===
26: --EXPECTF--
27: *** Testing ctype_punct() : basic functionality ***
28: bool(true)
29: bool(false)
30: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>