summaryrefslogtreecommitdiff
path: root/ext/mhash/tests/001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mhash/tests/001.phpt')
-rw-r--r--ext/mhash/tests/001.phpt74
1 files changed, 0 insertions, 74 deletions
diff --git a/ext/mhash/tests/001.phpt b/ext/mhash/tests/001.phpt
deleted file mode 100644
index 13c16a2263..0000000000
--- a/ext/mhash/tests/001.phpt
+++ /dev/null
@@ -1,74 +0,0 @@
---TEST--
-mhash() test
---INI--
-magic_quotes_runtime=0
---SKIPIF--
-<?php
- include "skip.inc";
-?>
---FILE--
-<?php
-
-$supported_hash_al = array(
-"MHASH_MD5" => "-ۑNS*̓j",
-"MHASH_SHA1" => "/AZI{;ہ*}",
-"MHASH_HAVAL256" => "Ud'5ǐƕ; u",
-"MHASH_HAVAL192" => "L7H0 *pɈ",
-"MHASH_HAVAL224" => "SbхgR,r^&&K",
-"MHASH_HAVAL160" => "Ƴou Wi\"q{",
-"MHASH_RIPEMD160" => "lGCZYķƯF4\x0C>XX=",
-"MHASH_GOST" => "\x0A%Rν|QGUC)5,-",
-"MHASH_TIGER" => "y:g~
- 0T\9",
-"MHASH_CRC32" => "",
-"MHASH_CRC32B" => "Z"
-);
-
-$data = "This is the test of the mhash extension...";
-
-foreach ($supported_hash_al as $hash=>$wanted) {
- $result = mhash(constant($hash), $data);
- if ($result==$wanted) {
- echo "$hash\nok\n";
- } else {
- echo "$hash: ";
- var_dump($wanted);
- echo "$hash: ";
- var_dump($result);
- }
- echo "\n";
-}
-?>
---EXPECT--
-MHASH_MD5
-ok
-
-MHASH_SHA1
-ok
-
-MHASH_HAVAL256
-ok
-
-MHASH_HAVAL192
-ok
-
-MHASH_HAVAL224
-ok
-
-MHASH_HAVAL160
-ok
-
-MHASH_RIPEMD160
-ok
-
-MHASH_GOST
-ok
-
-MHASH_TIGER
-ok
-
-MHASH_CRC32
-ok
-
-MHASH_CRC32B
-ok