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