Annotation of embedaddon/php/ext/openssl/tests/002.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: openssl_seal() tests
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded("openssl")) print "skip"; ?>
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: $a = 1;
        !             9: $b = array(1);
        !            10: $c = array(1);
        !            11: $d = array(1);
        !            12: 
        !            13: var_dump(openssl_seal($a, $b, $c, $d));
        !            14: var_dump(openssl_seal($a, $a, $a, array()));
        !            15: var_dump(openssl_seal($c, $c, $c, 1));
        !            16: var_dump(openssl_seal($b, $b, $b, ""));
        !            17: 
        !            18: echo "Done\n";
        !            19: ?>
        !            20: --EXPECTF--    
        !            21: Warning: openssl_seal(): not a public key (1th member of pubkeys) in %s on line %d
        !            22: bool(false)
        !            23: 
        !            24: Warning: openssl_seal(): Fourth argument to openssl_seal() must be a non-empty array in %s on line %d
        !            25: bool(false)
        !            26: 
        !            27: Warning: openssl_seal() expects parameter 1 to be string, array given in %s on line %d
        !            28: NULL
        !            29: 
        !            30: Warning: openssl_seal() expects parameter 1 to be string, array given in %s on line %d
        !            31: NULL
        !            32: Done

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