Annotation of embedaddon/php/ext/ctype/tests/ctype_lower_variation2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test ctype_lower() function : usage variations - different integers
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: /*
13: * Pass different integers to ctype_lower() to test which character codes are considered
14: * valid lowercase characters
15: */
16:
17: echo "*** Testing ctype_lower() : usage variations ***\n";
18:
19: $orig = setlocale(LC_CTYPE, "C");
20:
21: for ($i = 0; $i < 256; $i++) {
22: if (ctype_lower($i)) {
23: echo "character code $i is a lower case character\n";
24: }
25: }
26:
27: setlocale(LC_CTYPE, $orig);
28: ?>
29: ===DONE===
30: --EXPECTF--
31: *** Testing ctype_lower() : usage variations ***
32: character code 97 is a lower case character
33: character code 98 is a lower case character
34: character code 99 is a lower case character
35: character code 100 is a lower case character
36: character code 101 is a lower case character
37: character code 102 is a lower case character
38: character code 103 is a lower case character
39: character code 104 is a lower case character
40: character code 105 is a lower case character
41: character code 106 is a lower case character
42: character code 107 is a lower case character
43: character code 108 is a lower case character
44: character code 109 is a lower case character
45: character code 110 is a lower case character
46: character code 111 is a lower case character
47: character code 112 is a lower case character
48: character code 113 is a lower case character
49: character code 114 is a lower case character
50: character code 115 is a lower case character
51: character code 116 is a lower case character
52: character code 117 is a lower case character
53: character code 118 is a lower case character
54: character code 119 is a lower case character
55: character code 120 is a lower case character
56: character code 121 is a lower case character
57: character code 122 is a lower case character
58: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>