Annotation of embedaddon/php/ext/standard/tests/strings/htmlentities17.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: htmlentities() / html_entity_decode() #8592 - #9002 table test
        !             3: --FILE--
        !             4: <?php
        !             5: $tests = array(
        !             6:        array(8853, '&oplus;',  "e28a95"),
        !             7:        array(8855, '&otimes;', "e28a97"),
        !             8:        array(8869, '&perp;',   "e28aa5"),
        !             9:        array(8901, '&sdot;',   "e28b85"),
        !            10:        array(8968, '&lceil;',  "e28c88"),
        !            11:        array(8969, '&rceil;',  "e28c89"),
        !            12:        array(8970, '&lfloor;', "e28c8a"),
        !            13:        array(8971, '&rfloor;', "e28c8b"),
        !            14:        array(9001, '&lang;',   "e28ca9"),
        !            15:        array(9002, '&rang;',   "e28caa")
        !            16: );
        !            17: 
        !            18: foreach ($tests as $test) {
        !            19:        var_dump(htmlentities(pack('H*', $test[2]), ENT_QUOTES, 'UTF-8'));
        !            20: }
        !            21: 
        !            22: foreach ($tests as $test) {
        !            23:        list(,$result) = unpack('H6', html_entity_decode($test[1], ENT_QUOTES, 'UTF-8'));
        !            24:        var_dump($result);
        !            25: }
        !            26: ?>
        !            27: --EXPECT--
        !            28: string(7) "&oplus;"
        !            29: string(8) "&otimes;"
        !            30: string(6) "&perp;"
        !            31: string(6) "&sdot;"
        !            32: string(7) "&lceil;"
        !            33: string(7) "&rceil;"
        !            34: string(8) "&lfloor;"
        !            35: string(8) "&rfloor;"
        !            36: string(6) "&lang;"
        !            37: string(6) "&rang;"
        !            38: string(6) "e28a95"
        !            39: string(6) "e28a97"
        !            40: string(6) "e28aa5"
        !            41: string(6) "e28b85"
        !            42: string(6) "e28c88"
        !            43: string(6) "e28c89"
        !            44: string(6) "e28c8a"
        !            45: string(6) "e28c8b"
        !            46: string(6) "e28ca9"
        !            47: string(6) "e28caa"

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