From: SVN Migration Date: Wed, 20 Nov 2002 06:48:59 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.0RC2~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00beb9dbceb37df5fb24a73579217d7d22ec357b;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/mhash/tests/001.phpt b/ext/mhash/tests/001.phpt new file mode 100644 index 0000000000..57f50c0deb --- /dev/null +++ b/ext/mhash/tests/001.phpt @@ -0,0 +1,67 @@ +--TEST-- +mhash() test +--SKIPIF-- + +--FILE-- + +--EXPECT-- +MHASH_MD5 +string(16) "-›Û‘ùN–ÙÄâ®S*̓j" + +MHASH_SHA1 +string(20) "/“AåZƒíõI{ø;£Û*}à£" + +MHASH_HAVAL256 +string(32) "²Uþÿ­d'5Ç›Æ•¡ü¥;Ýýúñ ²u’‡“¯" + +MHASH_HAVAL192 +string(24) "Lè7ÞH0 *²Æp”Ɉß×ÛÍ" + +MHASH_HAVAL224 +string(28) "SbхgR¿,›²Öý×r¹ÅÈÎ^È&•&K…á" + +MHASH_HAVAL160 +string(20) "Ƴo‡u Wi¼´ò"q”{ùË" + +MHASH_RIPEMD160 +string(20) "lGCZ¡ÓYķƯF4Ÿ >XX=" + +MHASH_GOST +string(32) " +%Rνõ|­ñQGòU¶C)5»œ,Ç⍋-ž" + +MHASH_TIGER +string(24) "•:Ãyš¹ý둮«— ~g9\»T0 à +" + +MHASH_CRC32 +string(4) "ƒ¸" + +MHASH_CRC32B +string(4) "¤·Zß" + diff --git a/ext/mhash/tests/002.phpt b/ext/mhash/tests/002.phpt new file mode 100644 index 0000000000..3dcdab2d91 --- /dev/null +++ b/ext/mhash/tests/002.phpt @@ -0,0 +1,28 @@ +--TEST-- +mhash_get_block_size() & mhash_get_hash_name() test +--SKIPIF-- + +--FILE-- +\t" . mhash_get_block_size($i) . "\n"; + } + } +?> +--EXPECT-- +CRC32 -> 4 +MD5 -> 16 +SHA1 -> 20 +HAVAL256 -> 32 +RIPEMD160 -> 20 +TIGER -> 24 +GOST -> 32 +CRC32B -> 4 +HAVAL224 -> 28 +HAVAL192 -> 24 +HAVAL160 -> 20 diff --git a/ext/mhash/tests/003.phpt b/ext/mhash/tests/003.phpt new file mode 100644 index 0000000000..677142e4c3 Binary files /dev/null and b/ext/mhash/tests/003.phpt differ diff --git a/ext/mhash/tests/skip.inc b/ext/mhash/tests/skip.inc new file mode 100644 index 0000000000..81912d21c8 --- /dev/null +++ b/ext/mhash/tests/skip.inc @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/ext/standard/tests/general_functions/009.phpt b/ext/standard/tests/general_functions/009.phpt new file mode 100644 index 0000000000..68c1f4d87b --- /dev/null +++ b/ext/standard/tests/general_functions/009.phpt @@ -0,0 +1,26 @@ +--TEST-- +SHA1 +--POST-- +--GET-- +--FILE-- + +--EXPECT-- +da39a3ee5e6b4b0d3255bfef95601890afd80709 +86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 +a9993e364706816aba3e25717850c26c9cd0d89d +c12252ceda8be8994d5fa0290a47231c1d16aae3 +32d10c7b8cf96570ca04ce37f2a19d84240d3a89 +761c457bf73b14d27e9e9265c46f4b4dda11f940 +50abf5706a150990a08b2c5ea40fa0e585554732