Annotation of embedaddon/php/ext/ctype/tests/ctype_print_variation2.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test ctype_print() function : usage variations - different integers
        !             3: --SKIPIF--
        !             4: <?php require_once('skipif.inc'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: /* Prototype  : bool ctype_print(mixed $c)
        !             8:  * Description: Checks for printable character(s) 
        !             9:  * Source code: ext/ctype/ctype.c
        !            10:  */
        !            11: 
        !            12: /*
        !            13:  * Pass different integers to ctype_print() to test which character codes are considered
        !            14:  * valid printable characters
        !            15:  */
        !            16: 
        !            17: echo "*** Testing ctype_print() : usage variations ***\n";
        !            18: 
        !            19: $orig = setlocale(LC_CTYPE, "C");
        !            20: 
        !            21: for ($i = 0; $i < 256; $i++) {
        !            22:        if (ctype_print($i)) {
        !            23:                echo "character code $i is a printable character\n";
        !            24:        }
        !            25: }
        !            26: 
        !            27: setlocale(LC_CTYPE, $orig);
        !            28: ?>
        !            29: ===DONE===
        !            30: --EXPECTF--
        !            31: *** Testing ctype_print() : usage variations ***
        !            32: character code 32 is a printable character
        !            33: character code 33 is a printable character
        !            34: character code 34 is a printable character
        !            35: character code 35 is a printable character
        !            36: character code 36 is a printable character
        !            37: character code 37 is a printable character
        !            38: character code 38 is a printable character
        !            39: character code 39 is a printable character
        !            40: character code 40 is a printable character
        !            41: character code 41 is a printable character
        !            42: character code 42 is a printable character
        !            43: character code 43 is a printable character
        !            44: character code 44 is a printable character
        !            45: character code 45 is a printable character
        !            46: character code 46 is a printable character
        !            47: character code 47 is a printable character
        !            48: character code 48 is a printable character
        !            49: character code 49 is a printable character
        !            50: character code 50 is a printable character
        !            51: character code 51 is a printable character
        !            52: character code 52 is a printable character
        !            53: character code 53 is a printable character
        !            54: character code 54 is a printable character
        !            55: character code 55 is a printable character
        !            56: character code 56 is a printable character
        !            57: character code 57 is a printable character
        !            58: character code 58 is a printable character
        !            59: character code 59 is a printable character
        !            60: character code 60 is a printable character
        !            61: character code 61 is a printable character
        !            62: character code 62 is a printable character
        !            63: character code 63 is a printable character
        !            64: character code 64 is a printable character
        !            65: character code 65 is a printable character
        !            66: character code 66 is a printable character
        !            67: character code 67 is a printable character
        !            68: character code 68 is a printable character
        !            69: character code 69 is a printable character
        !            70: character code 70 is a printable character
        !            71: character code 71 is a printable character
        !            72: character code 72 is a printable character
        !            73: character code 73 is a printable character
        !            74: character code 74 is a printable character
        !            75: character code 75 is a printable character
        !            76: character code 76 is a printable character
        !            77: character code 77 is a printable character
        !            78: character code 78 is a printable character
        !            79: character code 79 is a printable character
        !            80: character code 80 is a printable character
        !            81: character code 81 is a printable character
        !            82: character code 82 is a printable character
        !            83: character code 83 is a printable character
        !            84: character code 84 is a printable character
        !            85: character code 85 is a printable character
        !            86: character code 86 is a printable character
        !            87: character code 87 is a printable character
        !            88: character code 88 is a printable character
        !            89: character code 89 is a printable character
        !            90: character code 90 is a printable character
        !            91: character code 91 is a printable character
        !            92: character code 92 is a printable character
        !            93: character code 93 is a printable character
        !            94: character code 94 is a printable character
        !            95: character code 95 is a printable character
        !            96: character code 96 is a printable character
        !            97: character code 97 is a printable character
        !            98: character code 98 is a printable character
        !            99: character code 99 is a printable character
        !           100: character code 100 is a printable character
        !           101: character code 101 is a printable character
        !           102: character code 102 is a printable character
        !           103: character code 103 is a printable character
        !           104: character code 104 is a printable character
        !           105: character code 105 is a printable character
        !           106: character code 106 is a printable character
        !           107: character code 107 is a printable character
        !           108: character code 108 is a printable character
        !           109: character code 109 is a printable character
        !           110: character code 110 is a printable character
        !           111: character code 111 is a printable character
        !           112: character code 112 is a printable character
        !           113: character code 113 is a printable character
        !           114: character code 114 is a printable character
        !           115: character code 115 is a printable character
        !           116: character code 116 is a printable character
        !           117: character code 117 is a printable character
        !           118: character code 118 is a printable character
        !           119: character code 119 is a printable character
        !           120: character code 120 is a printable character
        !           121: character code 121 is a printable character
        !           122: character code 122 is a printable character
        !           123: character code 123 is a printable character
        !           124: character code 124 is a printable character
        !           125: character code 125 is a printable character
        !           126: character code 126 is a printable character
        !           127: ===DONE===

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