From: Christoph M. Becker Date: Tue, 18 Oct 2016 12:56:20 +0000 (+0200) Subject: Make this test meaningful X-Git-Tag: php-7.2.0alpha1~1089 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35b19cd2d936fb8caa081496fb610e79c4bab003;p=php Make this test meaningful We're not only checking that hash_update_file() succeeds, but rather that it properly works. Furthermore, we fix the SKIPIF section – we don't need mhash to run the test, and we don't need to check for unsupported PHP versions. We also shorten the test name to avoid cluttering the test reports with unnecessary detail. --- diff --git a/ext/hash/tests/hash_update_file.phpt b/ext/hash/tests/hash_update_file.phpt index 32ce962bd0..488be47411 100644 --- a/ext/hash/tests/hash_update_file.phpt +++ b/ext/hash/tests/hash_update_file.phpt @@ -1,21 +1,24 @@ --TEST-- -bool hash_update_file ( resource $hcontext , string $filename [, resource $scontext = NULL ] ); +hash_update_file() function - basic test --CREDITS-- marcosptf - - @phpsp - sao paulo - br --SKIPIF-- +if (!extension_loaded('hash')) die('skip hash extension not available'); ?> --FILE-- --EXPECT-- bool(true) +5c6ffbdd40d9556b73a21e63c3e0e904 +--CLEAN-- +