diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-07 10:38:11 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-07 15:54:31 +0100 |
commit | c8e10c6119081a7af98bf2103e30fdd6dc791666 (patch) | |
tree | 2963696a3a1f08e118d1c45896376136f36fbb4d /ext/standard/tests/array/array_search_errors.phpt | |
parent | 372248d5c22e5caddff9f6401f5b50b5f1a6f86a (diff) | |
download | php-git-c8e10c6119081a7af98bf2103e30fdd6dc791666.tar.gz |
More zpp error/variation test removals
Diffstat (limited to 'ext/standard/tests/array/array_search_errors.phpt')
-rw-r--r-- | ext/standard/tests/array/array_search_errors.phpt | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/ext/standard/tests/array/array_search_errors.phpt b/ext/standard/tests/array/array_search_errors.phpt deleted file mode 100644 index 90502b2f53..0000000000 --- a/ext/standard/tests/array/array_search_errors.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -Test array_search() function - error conditions ---FILE-- -<?php -/* - * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] ) - * Description: Searches haystack for needle and returns the key if it is found in the array, FALSE otherwise - * Source Code: ext/standard/array.c -*/ - -echo "*** Testing error conditions of array_search() ***\n"; -/* zero argument */ -var_dump( array_search() ); - -/* unexpected no.of arguments in array_search() */ -$var = array("mon", "tues", "wed", "thurs"); -var_dump( array_search(1, $var, 0, "test") ); -var_dump( array_search("test") ); - -/* unexpected second argument in array_search() */ -$var="test"; -var_dump( array_search("test", $var) ); -var_dump( array_search(1, 123) ); - -echo "Done\n"; -?> ---EXPECTF-- -*** Testing error conditions of array_search() *** - -Warning: array_search() expects at least 2 parameters, 0 given in %s on line %d -NULL - -Warning: array_search() expects at most 3 parameters, 4 given in %s on line %d -NULL - -Warning: array_search() expects at least 2 parameters, 1 given in %s on line %d -NULL - -Warning: array_search() expects parameter 2 to be array, string given in %s on line %d -NULL - -Warning: array_search() expects parameter 2 to be array, int given in %s on line %d -NULL -Done |