Annotation of embedaddon/php/ext/ctype/tests/ctype_xdigit_basic.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test ctype_xdigit() function : basic functionality 
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: /* Prototype  : bool ctype_xdigit(mixed $c)
                      8:  * Description: Checks for character(s) representing a hexadecimal digit 
                      9:  * Source code: ext/ctype/ctype.c
                     10:  */
                     11: 
                     12: echo "*** Testing ctype_xdigit() : basic functionality ***\n";
                     13: $orig = setlocale(LC_CTYPE, "C"); 
                     14: 
                     15: $c1 = 'abcdefABCDEF0123456789';
                     16: $c2 = 'face 034';
                     17: 
                     18: var_dump(ctype_xdigit($c1));
                     19: var_dump(ctype_xdigit($c2));
                     20: 
                     21: setlocale(LC_CTYPE, $orig); 
                     22: ?>
                     23: ===DONE===
                     24: --EXPECTF--
                     25: *** Testing ctype_xdigit() : basic functionality ***
                     26: bool(true)
                     27: bool(false)
                     28: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>