From 35b19cd2d936fb8caa081496fb610e79c4bab003 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Tue, 18 Oct 2016 14:56:20 +0200 Subject: [PATCH] Make this test meaningful MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- ext/hash/tests/hash_update_file.phpt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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-- + -- 2.40.0