Annotation of embedaddon/php/ext/openssl/tests/openssl_digest_basic.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: openssl_digest() basic test
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("openssl")) print "skip"; ?>
                      5: --FILE--
                      6: <?php
                      7: $data = "openssl_digest() basic test";
                      8: $method = "md5";
                      9: $method2 = "sha1";
                     10: 
                     11: var_dump(openssl_digest($data, $method));
                     12: var_dump(openssl_digest($data, $method2));
                     13: ?>
                     14: --EXPECT--
                     15: string(32) "f0045b6c41d9ec835cb8948c7fec4955"
                     16: string(40) "aa6e750fef05c2414c18860ad31f2c35e79bf3dc"

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