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

1.1     ! misho       1: --TEST--
        !             2: uuencode family tests
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: var_dump(convert_uuencode(array()));
        !             7: var_dump(convert_uudecode(array()));
        !             8: 
        !             9: var_dump(convert_uuencode(""));
        !            10: var_dump(convert_uudecode(""));
        !            11: var_dump($enc = convert_uuencode("~!@#$%^&*()_}{POIUYTREWQQSDFGHJKL:<MNBVCXZ"));
        !            12: var_dump(convert_uudecode("!@#$%^YUGFDFGHJKLUYTFBNMLOYT"));
        !            13: var_dump(convert_uudecode($enc));
        !            14: var_dump($enc = convert_uuencode("not very sophisticated"));
        !            15: var_dump(convert_uudecode($enc));
        !            16: var_dump(convert_uudecode(substr($enc, 0, -10)));
        !            17: 
        !            18: echo "Done\n";
        !            19: ?>
        !            20: --EXPECTF--    
        !            21: Warning: convert_uuencode() expects parameter 1 to be string, array given in %s on line %d
        !            22: bool(false)
        !            23: 
        !            24: Warning: convert_uudecode() expects parameter 1 to be string, array given in %s on line %d
        !            25: bool(false)
        !            26: bool(false)
        !            27: bool(false)
        !            28: string(60) "J?B%`(R0E7B8J*"E??7M03TE5651215=145-$1D=(2DM,.CQ-3D)60UA:
        !            29: `
        !            30: "
        !            31: string(1) "%s"
        !            32: string(42) "~!@#$%^&*()_}{POIUYTREWQQSDFGHJKL:<MNBVCXZ"
        !            33: string(36) "6;F]T('9E<GD@<V]P:&ES=&EC871E9```
        !            34: `
        !            35: "
        !            36: string(22) "not very sophisticated"
        !            37: 
        !            38: Warning: convert_uudecode(): The given parameter is not a valid uuencoded string in %s on line %d
        !            39: bool(false)
        !            40: Done

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