From: Kalle Sommer Nielsen Date: Wed, 3 Oct 2018 06:48:11 +0000 (+0200) Subject: Update hash tests for consistency in their titles and remove the skipif sections... X-Git-Tag: php-7.4.0alpha1~1789 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f73c0102d6c33c00aaf01cf84fa076f5171a94a1;p=php Update hash tests for consistency in their titles and remove the skipif sections (except for the mhash related tests) --- diff --git a/ext/hash/tests/adler32.phpt b/ext/hash/tests/adler32.phpt index eab2a3f1fd..5b822b63a6 100644 --- a/ext/hash/tests/adler32.phpt +++ b/ext/hash/tests/adler32.phpt @@ -1,7 +1,5 @@ --TEST-- -ADLER32 ---SKIPIF-- - +Hash: ADLER32 algorithm --FILE-- --FILE-- +Bug #64745 (hash_pbkdf2() truncates data when using default length and hex output) --FILE-- +Bug #70312 (HAVAL gives wrong hashes in specific cases) --FILE-- --FILE-- +Hash: CRC32 algorithm --FILE-- +Hash: FNV132 algorithm --FILE-- +Hash: FNV164 algorithm --FILE-- +Hash: FNV1a32 algorithm --FILE-- +Hash: FNV1a64 algorithm --FILE-- +Hash: gost algorithm --FILE-- +Hash: hash_copy() via clone --FILE-- +Hash: hash_algos() function : basic functionality --FILE-- +Hash: hash_copy() basic tests --FILE-- +Hash: hash_copy() errors --FILE-- +Hash: hash_equals() test --FILE-- +Hash: hash() function : error conditions --FILE-- +Hash: hash_file() function : basic functionality --CREDITS-- Felix De Vliegher --FILE-- diff --git a/ext/hash/tests/hash_file_basic1.phpt b/ext/hash/tests/hash_file_basic1.phpt index 2e088cebe6..474410c782 100644 --- a/ext/hash/tests/hash_file_basic1.phpt +++ b/ext/hash/tests/hash_file_basic1.phpt @@ -1,7 +1,5 @@ --TEST-- -Test hash_file() function : basic functionality ---SKIPIF-- - +Hash: hash_file() function : basic functionality --FILE-- +Hash: hash_file() function : error conditions --CREDITS-- Felix De Vliegher --FILE-- diff --git a/ext/hash/tests/hash_hkdf_basic.phpt b/ext/hash/tests/hash_hkdf_basic.phpt index 06b5dac2cd..7cd5f7e22e 100644 --- a/ext/hash/tests/hash_hkdf_basic.phpt +++ b/ext/hash/tests/hash_hkdf_basic.phpt @@ -1,7 +1,5 @@ --TEST-- -Test hash_hkdf() function: basic functionality ---SKIPIF-- - +Hash: hash_hkdf() function: basic functionality --FILE-- +Hash: hash_hkdf() function: edge cases --FILE-- +Hash: hash_hkdf() function: error conditions --FILE-- +Hash: hash_hkdf() function: RFC 5869 test vectors --FILE-- +Hash: hash_hmac_algos() function : basic functionality --FILE-- +Hash: hash_file() function : basic functionality --FILE-- +Hash: hash_hmac() function : basic functionality --FILE-- +Hash: hash_hmac_file() function : basic functionality --FILE-- +Hash: hash_hmac_file() function : basic functionality --FILE-- +Hash: hash_init() function - errors test --FILE-- +Hash: hash_pbkdf2() function : basic functionality --FILE-- +Hash: Test hash_pbkdf2() function : error functionality --FILE-- - @phpsp - sao paulo - br ---SKIPIF-- - --FILE-- - @phpsp - sao paulo - br ---SKIPIF-- - --FILE-- +Hash: haval algorithm (multi-vector, multi-pass, multi-width) --FILE-- +Hash: hmac-md5 algorithm --FILE-- +Hash: Jenkins's one-at-a-time --FILE-- +Hash: md2 algorithm --FILE-- +Hash: md4 algorithm --FILE-- +Hash: md5 algorithm --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- +Hash: ripemd128 algorithm --FILE-- +Hash: ripemd160 algorithm --FILE-- +Hash: ripemd256 algorithm --FILE-- +Hash: ripemd320 algorithm --FILE-- getMessage()}\n"; } --EXPECT-- -Exception: Serialization of 'HashContext' is not allowed \ No newline at end of file +Exception: Serialization of 'HashContext' is not allowed diff --git a/ext/hash/tests/sha1.phpt b/ext/hash/tests/sha1.phpt index b193781653..82a9703734 100644 --- a/ext/hash/tests/sha1.phpt +++ b/ext/hash/tests/sha1.phpt @@ -1,7 +1,5 @@ --TEST-- -sha1 algorithm ---SKIPIF-- - +Hash: sha1 algorithm --FILE-- +Hash: sha224 algorithm --FILE-- +Hash: sha256 algorithm --FILE-- +Hash: sha3 algorithm --FILE-- +Hash: sha384 algorithm --FILE-- +Hash: sha512/224 algorithm --FILE-- +Hash: sha512/256 algorithm --FILE-- +Hash: sha512 algorithm --FILE-- diff --git a/ext/hash/tests/snefru.phpt b/ext/hash/tests/snefru.phpt index 1b0dfa70fe..3d4694e6ba 100644 --- a/ext/hash/tests/snefru.phpt +++ b/ext/hash/tests/snefru.phpt @@ -1,7 +1,5 @@ --TEST-- -snefru ---SKIPIF-- - +Hash: snefru algorithm --FILE-- +Hash: tiger algorithm --FILE-- +Hash: whirlpool algorithm --FILE--