- drop mhash support
[m6w6/ext-http] / tests / etag_mode_crc.phpt
diff --git a/tests/etag_mode_crc.phpt b/tests/etag_mode_crc.phpt
deleted file mode 100644 (file)
index 62fbb3f..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-sane crc etags
---SKIPIF--
-<?php
-include 'skip.inc';
-checkmin(5.1);
-skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
-skipif(!defined('HTTP_ETAG_MHASH_CRC32'), 'need CRC32 mhash support');
-skipif(!defined('HTTP_ETAG_MHASH_CRC32B'), 'need CRC32B mhash support');
-?>
---FILE--
-<?php
-echo "-TEST\n";
-
-ini_set('http.etag_mode', HTTP_ETAG_CRC32);
-HttpResponse::setData("abc");
-$php = HttpResponse::getEtag();
-
-ini_set('http.etag_mode', HTTP_ETAG_MHASH_CRC32);
-HttpResponse::setData("abc");
-$crc = HttpResponse::getEtag();
-
-ini_set('http.etag_mode', HTTP_ETAG_MHASH_CRC32B);
-HttpResponse::setData("abc");
-$equ = HttpResponse::getEtag();
-
-echo $php,"\n", $equ,"\n", $crc,"\n";
-
-var_dump($equ === $php);
-var_dump($equ !== $crc);
-
-echo "Done\n";
---EXPECTF--
-%sTEST
-c2412435
-c2412435
-73bb8c64
-bool(true)
-bool(true)
-Done