diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-19 17:11:00 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-11 11:32:20 +0100 |
| commit | 852485d8ecd784153e41e565a0a87abf99cf4e0d (patch) | |
| tree | 3c8be88c2c98b5f1b2f9ea51e5d3a20c10baf3ff /ext/standard/tests/array/count_recursive.phpt | |
| parent | 6bfb119e18e5241b6719a4ad69223d91c465a58e (diff) | |
| download | php-git-852485d8ecd784153e41e565a0a87abf99cf4e0d.tar.gz | |
Adjust tests for zpp TypeError change
Diffstat (limited to 'ext/standard/tests/array/count_recursive.phpt')
| -rw-r--r-- | ext/standard/tests/array/count_recursive.phpt | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ext/standard/tests/array/count_recursive.phpt b/ext/standard/tests/array/count_recursive.phpt index 6d81c16621..1fd2e8e6ca 100644 --- a/ext/standard/tests/array/count_recursive.phpt +++ b/ext/standard/tests/array/count_recursive.phpt @@ -111,16 +111,6 @@ for( $i =0; $i < count( $mode_arr ); $i++) { var_dump(count($arr, $mode_arr[$i])); } - -echo "\n-- Testing error conditions --"; -var_dump( count() ); // No. of args = 0 -var_dump( count(array(), COUNT_NORMAL, 100) ); // No. of args > expected - -/* Testing Invalid type arguments */ -var_dump( count("string", "ABCD") ); -var_dump( count(100, "string") ); -var_dump( count(array(), "") ); - echo "\nDone"; /* closing the resource handles */ @@ -230,20 +220,4 @@ For mode '1' count is => int(9) For mode '' count is => int(3) For mode '' count is => int(3) --- Testing error conditions -- -Warning: count() expects at least 1 parameter, 0 given in %s on line %d -NULL - -Warning: count() expects at most 2 parameters, 3 given in %s on line %d -NULL - -Warning: count() expects parameter 2 to be int, %s given in %s on line %d -NULL - -Warning: count() expects parameter 2 to be int, %s given in %s on line %d -NULL - -Warning: count() expects parameter 2 to be int, %s given in %s on line %d -NULL - Done |
