summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-06 11:23:38 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-06 13:40:22 +0100
commit8c62c69265817bfd736ac77745cf7686a48d280c (patch)
tree7776624d2cf5bce5093afe82886fae1bc398c0a4
parentdb777e9199a94f95416ea16baf82a7d10a0bbe51 (diff)
downloadphp-git-8c62c69265817bfd736ac77745cf7686a48d280c.tar.gz
More zpp error/variation test removals
Some of these tests also check non-zpp conditions -- however, there is always some other test that also checks those error conditions.
-rw-r--r--ext/reflection/tests/ReflectionClass_getConstants_error.phpt24
-rw-r--r--ext/reflection/tests/ReflectionObject_constructor_error.phpt49
-rw-r--r--ext/reflection/tests/ReflectionObject_getConstant_error.phpt34
-rw-r--r--ext/reflection/tests/ReflectionParameter_export_error.phpt20
-rw-r--r--ext/reflection/tests/ReflectionProperty_getDocComment_error.phpt28
-rw-r--r--ext/sockets/tests/socket_accept-wrongparams.phpt16
-rw-r--r--ext/sockets/tests/socket_bind_params.phpt28
-rw-r--r--ext/sockets/tests/socket_close_params.phpt20
-rw-r--r--ext/sockets/tests/socket_connect_error.phpt32
-rw-r--r--ext/sockets/tests/socket_create_listen-wrongparams.phpt18
-rw-r--r--ext/sockets/tests/socket_create_listen_params.phpt23
-rw-r--r--ext/sockets/tests/socket_create_params.phpt23
-rw-r--r--ext/sockets/tests/socket_listen_params.phpt20
-rw-r--r--ext/sockets/tests/socket_set_block-wrongparams.phpt17
-rw-r--r--ext/sockets/tests/socket_set_nonblock-wrongparams.phpt13
-rw-r--r--ext/sockets/tests/socket_write_params.phpt28
-rw-r--r--ext/spl/tests/DirectoryIterator_getBasename_pass_array.phpt23
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_add_missing_parameter1.phpt10
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_add_missing_parameter2.phpt10
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_bottom_pass_float.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_bottom_pass_integer.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_bottom_pass_null.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_count.phpt12
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt11
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_getIteratorMode_error.phpt11
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_isEmpty_not-empty-with-parameter.phpt20
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_offsetExists_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_offsetGet_empty.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_offsetGet_missing_param.phpt15
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_offsetSet_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_offsetSet_one_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_pop_noParams.phpt15
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_pop_params.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_push_missing_parameter.phpt12
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_setIteratorMode_param_SplDoublyLinkedList.phpt11
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_top_pass_array.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_top_pass_float.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_top_pass_integer.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_top_pass_null.phpt14
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt12
-rw-r--r--ext/spl/tests/SplFileObject_current_error001.phpt19
-rw-r--r--ext/spl/tests/SplFileObject_fputcsv_error.phpt36
-rw-r--r--ext/spl/tests/SplFileObject_fseek_error_001.phpt12
-rw-r--r--ext/spl/tests/SplFileObject_fwrite_error_001.phpt12
-rw-r--r--ext/spl/tests/SplFileObject_getchildren_error001.phpt12
-rw-r--r--ext/spl/tests/SplFileObject_getflags_error002.phpt21
-rw-r--r--ext/spl/tests/SplFileObject_haschildren_error001.phpt12
-rw-r--r--ext/spl/tests/SplFileObject_key_error003.phpt15
-rw-r--r--ext/spl/tests/SplFileObject_rewind_error001.phpt22
-rw-r--r--ext/spl/tests/SplFixedArray_count_checkParams.phpt15
-rw-r--r--ext/spl/tests/SplFixedArray_count_param_int.phpt11
-rw-r--r--ext/spl/tests/SplFixedArray_current_param.phpt24
-rw-r--r--ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_001.phpt10
-rw-r--r--ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_002.phpt10
-rw-r--r--ext/spl/tests/SplFixedArray_fromarray_param_boolean.phpt10
-rw-r--r--ext/spl/tests/SplFixedArray_getSize_pass_param.phpt12
-rw-r--r--ext/spl/tests/SplFixedArray_key_param.phpt24
-rw-r--r--ext/spl/tests/SplFixedArray_next_param.phpt18
-rw-r--r--ext/spl/tests/SplFixedArray_offsetExists_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplFixedArray_offsetGet_invalid_parameter.phpt16
-rw-r--r--ext/spl/tests/SplFixedArray_offsetSet_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplFixedArray_offsetSet_one_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplFixedArray_offsetUnset_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplFixedArray_rewind_param.phpt18
-rw-r--r--ext/spl/tests/SplFixedArray_setSize_param_array.phpt18
-rw-r--r--ext/spl/tests/SplFixedArray_toArray_with-params.phpt19
-rw-r--r--ext/spl/tests/SplHeap_count_invalid_parameter.phpt46
-rw-r--r--ext/spl/tests/SplHeap_extract_invalid_parameter.phpt46
-rw-r--r--ext/spl/tests/SplHeap_insert_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplHeap_isEmpty_invalid_parameter.phpt46
-rw-r--r--ext/spl/tests/SplObjectStorage_addAll_invalid_parameter.phpt42
-rw-r--r--ext/spl/tests/SplObjectStorage_attach_invalid_parameter.phpt19
-rw-r--r--ext/spl/tests/SplObjectStorage_contains_invalid_parameter.phpt42
-rw-r--r--ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt42
-rw-r--r--ext/spl/tests/SplObjectStorage_offsetGet_invalid_parameter.phpt44
-rw-r--r--ext/spl/tests/SplObjectStorage_removeAllExcept_invalid_parameter.phpt43
-rw-r--r--ext/spl/tests/SplObjectStorage_removeAll_invalid_parameter.phpt42
-rw-r--r--ext/spl/tests/SplObjectStorage_setInfo_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter1.phpt26
-rw-r--r--ext/spl/tests/SplPriorityQueue_extract_invalid_parameter.phpt46
-rw-r--r--ext/spl/tests/SplPriorityQueue_insert_invalid_parameter.phpt15
-rw-r--r--ext/spl/tests/fileobject_getmaxlinelen_error001.phpt14
-rw-r--r--ext/spl/tests/fileobject_setmaxlinelen_error002.phpt12
-rw-r--r--ext/spl/tests/fileobject_setmaxlinelen_error003.phpt12
-rw-r--r--ext/spl/tests/heap_isempty_variation_001.phpt16
-rw-r--r--ext/spl/tests/heap_top_variation_001.phpt14
-rw-r--r--ext/spl/tests/limititerator_seek.phpt16
-rw-r--r--ext/spl/tests/pqueue_compare_error.phpt18
-rw-r--r--ext/spl/tests/recursive_tree_iterator_setprefixpart.phpt32
-rw-r--r--ext/spl/tests/recursiveiteratoriterator_getsubiterator_error.phpt14
-rw-r--r--ext/spl/tests/regexiterator_setflags_exception.phpt35
-rw-r--r--ext/spl/tests/regexiterator_setpregflags_exception.phpt36
-rw-r--r--ext/spl/tests/splDoublyLinkedList_shift_noParams.phpt15
-rw-r--r--ext/spl/tests/spl_005.phpt21
-rw-r--r--ext/spl/tests/spl_cachingiterator_setFlags_basic.phpt16
-rw-r--r--ext/spl/tests/spl_heap_count_error.phpt12
-rw-r--r--ext/spl/tests/spl_heap_extract_parameter_error.phpt27
-rw-r--r--ext/spl/tests/spl_heap_insert_basic.phpt20
-rw-r--r--ext/spl/tests/spl_heap_recoverfromcorruption_arguments.phpt13
-rw-r--r--ext/spl/tests/spl_iterator_to_array_basic.phpt13
-rw-r--r--ext/spl/tests/spl_maxheap_compare_basic.phpt22
-rw-r--r--ext/spl/tests/spl_minheap_compare_error.phpt30
-rw-r--r--ext/spl/tests/spl_pq_top_error_args.phpt12
-rw-r--r--ext/spl/tests/spl_priorityqeue_insert_two_params_error.phpt31
-rw-r--r--ext/spl/tests/spl_recursiveIteratorIterator_setMaxDepth_parameter_count.phpt28
-rw-r--r--ext/spl/tests/splpriorityqueue_extract.phpt17
-rw-r--r--ext/spl/tests/splpriorityqueue_setextractflags.phpt15
-rw-r--r--ext/standard/tests/array/array_change_key_case_errors.phpt28
-rw-r--r--ext/standard/tests/array/array_chunk_error.phpt46
-rw-r--r--ext/standard/tests/array/array_combine_error1.phpt48
-rw-r--r--ext/standard/tests/array/array_count_values_error.phpt50
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_variation14.phpt39
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_variation3.phpt263
-rw-r--r--ext/standard/tests/array/array_diff_ukey_error.phpt55
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation11.phpt44
-rw-r--r--ext/standard/tests/array/array_diff_ukey_variation4.phpt254
-rw-r--r--ext/standard/tests/array/array_fill_keys_error.phpt45
-rw-r--r--ext/standard/tests/array/array_flip_error.phpt34
-rw-r--r--ext/standard/tests/array/array_intersect_uassoc_error.phpt60
-rw-r--r--ext/standard/tests/array/array_intersect_uassoc_variation11.phpt42
-rw-r--r--ext/standard/tests/array/array_intersect_uassoc_variation4.phpt257
-rw-r--r--ext/standard/tests/array/array_intersect_uassoc_variation9.phpt39
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_error.phpt56
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation10.phpt43
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation3.phpt290
-rw-r--r--ext/standard/tests/array/array_key_exists_error.phpt43
-rw-r--r--ext/standard/tests/array/array_key_first_errors.phpt52
-rw-r--r--ext/standard/tests/array/array_key_last_errors.phpt52
-rw-r--r--ext/standard/tests/array/array_merge_error.phpt30
-rw-r--r--ext/standard/tests/array/array_pop_errors.phpt64
-rw-r--r--ext/standard/tests/array/array_product_error.phpt45
-rw-r--r--ext/standard/tests/array/array_push_error1.phpt29
-rw-r--r--ext/standard/tests/array/array_rand_error.phpt37
-rw-r--r--ext/standard/tests/array/array_reduce_error.phpt41
-rw-r--r--ext/standard/tests/array/array_reduce_variation2.phpt35
-rw-r--r--ext/standard/tests/array/array_reverse_error.phpt40
-rw-r--r--ext/standard/tests/array/array_shift_error.phpt40
-rw-r--r--ext/standard/tests/array/array_slice_error.phpt43
-rw-r--r--ext/standard/tests/array/array_slice_variation11.phpt226
-rw-r--r--ext/standard/tests/array/array_slice_variation3.phpt212
-rw-r--r--ext/standard/tests/array/array_splice_errors.phpt40
-rw-r--r--ext/standard/tests/array/array_splice_variation2.phpt26
-rw-r--r--ext/standard/tests/array/array_sum_error.phpt34
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_error.phpt42
-rw-r--r--ext/standard/tests/array/array_udiff_assoc_variation3.phpt251
-rw-r--r--ext/standard/tests/array/array_udiff_error.phpt42
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_error.phpt44
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation3.phpt254
-rw-r--r--ext/standard/tests/array/array_udiff_uassoc_variation4.phpt254
-rw-r--r--ext/standard/tests/array/array_udiff_variation3.phpt251
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_error.phpt43
-rw-r--r--ext/standard/tests/array/array_uintersect_assoc_variation3.phpt251
-rw-r--r--ext/standard/tests/array/array_uintersect_error.phpt45
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_error.phpt45
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt254
-rw-r--r--ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt254
-rw-r--r--ext/standard/tests/array/array_uintersect_variation3.phpt251
-rw-r--r--ext/standard/tests/array/array_unique_error.phpt36
-rw-r--r--ext/standard/tests/array/array_values_error.phpt40
-rw-r--r--ext/standard/tests/array/array_values_errors.phpt36
-rw-r--r--ext/standard/tests/array/array_walk_error1.phpt48
-rw-r--r--ext/standard/tests/array/array_walk_recursive_error1.phpt49
-rw-r--r--ext/standard/tests/array/arsort_error.phpt79
-rw-r--r--ext/standard/tests/array/asort_error.phpt79
-rw-r--r--ext/standard/tests/array/compact_error.phpt31
-rw-r--r--ext/standard/tests/array/count_error.phpt41
-rw-r--r--ext/standard/tests/array/current_error.phpt40
-rw-r--r--ext/standard/tests/array/end_error.phpt39
-rw-r--r--ext/standard/tests/array/in_array_errors.phpt45
-rw-r--r--ext/standard/tests/array/key_error.phpt39
-rw-r--r--ext/standard/tests/array/key_exists_error.phpt23
-rw-r--r--ext/standard/tests/array/krsort_error.phpt78
-rw-r--r--ext/standard/tests/array/ksort_error.phpt78
-rw-r--r--ext/standard/tests/array/max_error.phpt32
-rw-r--r--ext/standard/tests/array/min_error.phpt32
-rw-r--r--ext/standard/tests/array/natcasesort_error.phpt40
-rw-r--r--ext/standard/tests/array/next_error.phpt39
-rw-r--r--ext/standard/tests/array/prev_error1.phpt39
-rw-r--r--ext/standard/tests/array/reset_error.phpt39
-rw-r--r--ext/standard/tests/array/rsort_error.phpt50
-rw-r--r--ext/standard/tests/array/shuffle_error.phpt53
-rw-r--r--ext/standard/tests/array/sizeof_error.phpt41
-rw-r--r--ext/standard/tests/array/sizeof_variation5.phpt132
-rw-r--r--ext/standard/tests/array/sort_error.phpt79
-rw-r--r--ext/standard/tests/array/uasort_error.phpt81
-rw-r--r--ext/standard/tests/array/uksort_error.phpt45
-rw-r--r--ext/standard/tests/array/usort_error1.phpt41
-rw-r--r--ext/standard/tests/array/usort_error2.phpt56
190 files changed, 0 insertions, 8863 deletions
diff --git a/ext/reflection/tests/ReflectionClass_getConstants_error.phpt b/ext/reflection/tests/ReflectionClass_getConstants_error.phpt
deleted file mode 100644
index 1784d712a4..0000000000
--- a/ext/reflection/tests/ReflectionClass_getConstants_error.phpt
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-ReflectionClass::getConstants()
---FILE--
-<?php
-class X {
-}
-
-$rc = new reflectionClass('X');
-
-//Test invalid arguments
-$rc->getConstants('X');
-$rc->getConstants(true);
-$rc->getConstants(null);
-$rc->getConstants('A', 'B');
-
-?>
---EXPECTF--
-Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
-
-Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
-
-Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
-
-Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 2 given in %s on line %d
diff --git a/ext/reflection/tests/ReflectionObject_constructor_error.phpt b/ext/reflection/tests/ReflectionObject_constructor_error.phpt
deleted file mode 100644
index 71a1166b13..0000000000
--- a/ext/reflection/tests/ReflectionObject_constructor_error.phpt
+++ /dev/null
@@ -1,49 +0,0 @@
---TEST--
-ReflectionObject::__construct - invalid arguments
---FILE--
-<?php
-
-var_dump(new ReflectionObject());
-var_dump(new ReflectionObject('stdClass'));
-$myInstance = new stdClass;
-var_dump(new ReflectionObject($myInstance, $myInstance));
-var_dump(new ReflectionObject(0));
-var_dump(new ReflectionObject(null));
-var_dump(new ReflectionObject(array(1,2)));
-?>
---EXPECTF--
-Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 3
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, string given in %s on line 4
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects exactly 1 parameter, 2 given in %s on line 6
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, int given in %s on line 7
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, null given in %s on line 8
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, array given in %s on line 9
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
diff --git a/ext/reflection/tests/ReflectionObject_getConstant_error.phpt b/ext/reflection/tests/ReflectionObject_getConstant_error.phpt
deleted file mode 100644
index 3f12f3a1ea..0000000000
--- a/ext/reflection/tests/ReflectionObject_getConstant_error.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-ReflectionObject::getConstant() - invalid params
---FILE--
-<?php
-class C {
- const myConst = 1;
-}
-
-$rc = new ReflectionObject(new C);
-var_dump($rc->getConstant());
-var_dump($rc->getConstant("myConst", "myConst"));
-var_dump($rc->getConstant(null));
-var_dump($rc->getConstant(1));
-var_dump($rc->getConstant(1.5));
-var_dump($rc->getConstant(true));
-var_dump($rc->getConstant(array(1,2,3)));
-var_dump($rc->getConstant(new C));
-?>
---EXPECTF--
-Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 0 given in %s on line 7
-NULL
-
-Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 2 given in %s on line 8
-NULL
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-
-Warning: ReflectionClass::getConstant() expects parameter 1 to be string, array given in %s on line 13
-NULL
-
-Warning: ReflectionClass::getConstant() expects parameter 1 to be string, object given in %s on line 14
-NULL
diff --git a/ext/reflection/tests/ReflectionParameter_export_error.phpt b/ext/reflection/tests/ReflectionParameter_export_error.phpt
deleted file mode 100644
index e3d2bac0fc..0000000000
--- a/ext/reflection/tests/ReflectionParameter_export_error.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-ReflectionParameter::export() without parameters
---CREDITS--
-Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
---FILE--
-<?php
-function ReflectionParameterTest($test, $test2 = null) {
- echo $test;
-}
-$reflect = new ReflectionFunction('ReflectionParameterTest');
-foreach($reflect->getParameters() as $key => $value) {
- ReflectionParameter::export();
-}
-?>
-==DONE==
---EXPECTF--
-Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d
-
-Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d
-==DONE==
diff --git a/ext/reflection/tests/ReflectionProperty_getDocComment_error.phpt b/ext/reflection/tests/ReflectionProperty_getDocComment_error.phpt
deleted file mode 100644
index dae7be2fb9..0000000000
--- a/ext/reflection/tests/ReflectionProperty_getDocComment_error.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-Test ReflectionProperty::getDocComment() errors.
---FILE--
-<?php
-
-class C {
- public $a;
-}
-
-$rc = new ReflectionProperty('C', 'a');
-var_dump($rc->getDocComment(null));
-var_dump($rc->getDocComment('X'));
-var_dump($rc->getDocComment(true));
-var_dump($rc->getDocComment(array(1, 2, 3)));
-
-?>
---EXPECTF--
-Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: ReflectionProperty::getDocComment() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/sockets/tests/socket_accept-wrongparams.phpt b/ext/sockets/tests/socket_accept-wrongparams.phpt
deleted file mode 100644
index 644690d61c..0000000000
--- a/ext/sockets/tests/socket_accept-wrongparams.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-Test parameter handling in socket_accept()
---SKIPIF--
-<?php
-if (!extension_loaded('sockets')) {
- die('SKIP The sockets extension is not loaded.');
-}
---FILE--
-<?php
-var_dump(socket_accept(null));
---CREDITS--
-Till Klampaeckel, till@php.net
-Berlin TestFest 2009
---EXPECTF--
-Warning: socket_accept() expects parameter 1 to be resource, null given in %s on line %d
-NULL
diff --git a/ext/sockets/tests/socket_bind_params.phpt b/ext/sockets/tests/socket_bind_params.phpt
deleted file mode 100644
index 23b8c58b0d..0000000000
--- a/ext/sockets/tests/socket_bind_params.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-ext/sockets - socket_bind - test with empty parameters
---CREDITS--
-Florian Anderiasch
-fa@php.net
---SKIPIF--
-<?php
- if (!extension_loaded('sockets')) {
- die('skip - sockets extension not available.');
- }
-?>
---FILE--
-<?php
- $rand = rand(1,999);
- $s_c = socket_create_listen(31330+$rand);
- $s_w = socket_bind();
- var_dump($s_w);
- $s_w = socket_bind($s_c);
- var_dump($s_w);
- socket_close($s_c);
-
-?>
---EXPECTF--
-Warning: socket_bind() expects at least 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: socket_bind() expects at least 2 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/sockets/tests/socket_close_params.phpt b/ext/sockets/tests/socket_close_params.phpt
deleted file mode 100644
index c15059907b..0000000000
--- a/ext/sockets/tests/socket_close_params.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-ext/sockets - socket_close - test with empty parameters
---CREDITS--
-Florian Anderiasch
-fa@php.net
---SKIPIF--
-<?php
- if (!extension_loaded('sockets')) {
- die('skip - sockets extension not available.');
- }
-?>
---FILE--
-<?php
- // wrong parameter count
- $s_c = socket_close();
- var_dump($s_c);
-?>
---EXPECTF--
-Warning: socket_close() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/sockets/tests/socket_connect_error.phpt b/ext/sockets/tests/socket_connect_error.phpt
deleted file mode 100644
index 675bc97d1c..0000000000
--- a/ext/sockets/tests/socket_connect_error.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Test error cases when creating a socket
---CREDITS--
-Russell Flynn <russ@redpill-linpro.com>
-#PHPTestFest2009 Norway 2009-06-09 \o/
---INI--
-error_reporting=E_ALL
-display_errors=1
---SKIPIF--
-<?php
- if (!extension_loaded('sockets')) {
- echo 'skip sockets extension not available.';
-}
-?>
---FILE--
-<?php
- // Test with no arguments
- $server = socket_create();
-
- // Test with less arguments than required
- $server = socket_create(SOCK_STREAM, getprotobyname('tcp'));
-
- // Test with non integer parameters
- $server = socket_create(array(), 1, 1);
-
-?>
---EXPECTF--
-Warning: socket_create() expects exactly 3 parameters, 0 given in %s on line %d
-
-Warning: socket_create() expects exactly 3 parameters, 2 given in %s on line %d
-
-Warning: socket_create() expects parameter 1 to be int, array given in %s on line %d
diff --git a/ext/sockets/tests/socket_create_listen-wrongparams.phpt b/ext/sockets/tests/socket_create_listen-wrongparams.phpt
deleted file mode 100644
index 4fc8ea7012..0000000000
--- a/ext/sockets/tests/socket_create_listen-wrongparams.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
---TEST--
-Test if socket_create_listen throws E_WARNING with wrong parameters.
---SKIPIF--
-<?php
-if (!extension_loaded('sockets')) {
- die('SKIP The sockets extension is not loaded.');
-}
---FILE--
-<?php
-$sock1 = socket_create_listen(array());
-$sock2 = socket_create_listen(31337, array());
---EXPECTF--
-Warning: socket_create_listen() expects parameter 1 to be int, array given in %s on line %d
-
-Warning: socket_create_listen() expects parameter 2 to be int, array given in %s on line %d
---CREDITS--
-Till Klampaeckel, till@php.net
-PHP Testfest Berlin 2009-05-09
diff --git a/ext/sockets/tests/socket_create_listen_params.phpt b/ext/sockets/tests/socket_create_listen_params.phpt
index 2d0e636a88..e69de29bb2 100644
--- a/ext/sockets/tests/socket_create_listen_params.phpt
+++ b/ext/sockets/tests/socket_create_listen_params.phpt
@@ -1,23 +0,0 @@
---TEST--
-ext/sockets - socket_create_listen - test for empty parameters
---CREDITS--
-Florian Anderiasch
-fa@php.net
---SKIPIF--
-<?php
- if (!extension_loaded('sockets')) {
- die('skip - sockets extension not available.');
- }
-?>
---FILE--
-<?php
- $rand = rand(1,999);
- $s_c_l = socket_create_listen();
- var_dump($s_c_l);
- if ($s_c_l !== false) {
- @socket_close($s_c_l);
- }
-?>
---EXPECTF--
-Warning: socket_create_listen() expects at least 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/sockets/tests/socket_create_params.phpt b/ext/sockets/tests/socket_create_params.phpt
deleted file mode 100644
index 2f121cdb53..0000000000
--- a/ext/sockets/tests/socket_create_params.phpt
+++ /dev/null
@@ -1,23 +0,0 @@
---TEST--
-ext/sockets - socket_create - test with empty parameters
---CREDITS--
-Florian Anderiasch
-fa@php.net
---SKIPIF--
-<?php
- if (!extension_loaded('sockets')) {
- die('skip sockets extension not available.');
- }
-?>
---FILE--
-<?php
- $s_w = socket_create();
- $s_w = socket_create(AF_INET);
- $s_w = socket_create(AF_INET, SOCK_STREAM);
-?>
---EXPECTF--
-Warning: socket_create() expects exactly 3 parameters, 0 given in %s on line %d
-
-Warning: socket_create() expects exactly 3 parameters, 1 given in %s on line %d
-
-Warning: socket_create() expects exactly 3 parameters, 2 given in %s on line %d
diff --git a/ext/sockets/tests/socket_listen_params.phpt b/ext/sockets/tests/socket_listen_params.phpt
deleted file mode 100644
index 0d5922c240..0000000000
--- a/ext/sockets/tests/socket_listen_params.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-ext/sockets - socket_listen - test with empty parameters
---CREDITS--
-Florian Anderiasch
-fa@php.net
---SKIPIF--
-<?php
- if (!extension_loaded('sockets')) {
- die('skip sockets extension not available.');
- }
-?>
---FILE--
-<?php
- // wrong parameter count
- $s_c = socket_listen();
- var_dump($s_c);
-?>
---EXPECTF--
-Warning: socket_listen() expects at least 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/sockets/tests/socket_set_block-wrongparams.phpt b/ext/sockets/tests/socket_set_block-wrongparams.phpt
deleted file mode 100644
index 80c7f164ec..0000000000
--- a/ext/sockets/tests/socket_set_block-wrongparams.phpt
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-Test if socket_set_block throws E_WARNING with wrong parameters.
---SKIPIF--
-<?php
-if (!extension_loaded('sockets')) {
- die('SKIP The sockets extension is not loaded.');
-}
-?>
---FILE--
-<?php
-socket_set_block(array());
-?>
---EXPECTF--
-Warning: socket_set_block() expects parameter 1 to be resource, array given in %s on line %d
---CREDITS--
-Robin Mehner, robin@coding-robin.de
-PHP Testfest Berlin 2009-05-09
diff --git a/ext/sockets/tests/socket_set_nonblock-wrongparams.phpt b/ext/sockets/tests/socket_set_nonblock-wrongparams.phpt
deleted file mode 100644
index 4b7e5beb18..0000000000
--- a/ext/sockets/tests/socket_set_nonblock-wrongparams.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-Test if socket_set_nonblock throws E_WARNING with wrong parameters.
---SKIPIF--
-<?php
-if (!extension_loaded('sockets')) {
- die('SKIP The sockets extension is not loaded.');
-}
---FILE--
-<?php
-$socket = socket_set_nonblock(array());
-?>
---EXPECTF--
-Warning: socket_set_nonblock() expects parameter 1 to be resource, array given in %s on line %d
diff --git a/ext/sockets/tests/socket_write_params.phpt b/ext/sockets/tests/socket_write_params.phpt
deleted file mode 100644
index 5c56c64915..0000000000
--- a/ext/sockets/tests/socket_write_params.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-ext/sockets - socket_write - test with empty parameters
---CREDITS--
-Florian Anderiasch
-fa@php.net
---SKIPIF--
-<?php
- if (!extension_loaded('sockets')) {
- die('skip sockets extension not available.');
- }
-?>
---FILE--
-<?php
- $rand = rand(1,999);
- // wrong parameter count
- $s_w = socket_write();
- $s_c = socket_create_listen(31330+$rand);
- $s_w = socket_write($s_c);
- $s_w = socket_write($s_c, "foo");
- $s_w = socket_write($s_c, "foo", -1);
- socket_close($s_c);
-?>
---EXPECTF--
-Warning: socket_write() expects at least 2 parameters, 0 given in %s on line %d
-
-Warning: socket_write() expects at least 2 parameters, 1 given in %s on line %d
-
-Warning: socket_write(): unable to write to socket [%i]: %a in %s on line %d
diff --git a/ext/spl/tests/DirectoryIterator_getBasename_pass_array.phpt b/ext/spl/tests/DirectoryIterator_getBasename_pass_array.phpt
deleted file mode 100644
index ce754d398d..0000000000
--- a/ext/spl/tests/DirectoryIterator_getBasename_pass_array.phpt
+++ /dev/null
@@ -1,23 +0,0 @@
---TEST--
-DirectoryIterator::getBasename() - Pass unexpected array
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
- $targetDir = __DIR__.DIRECTORY_SEPARATOR.md5('directoryIterator::getbasename2');
- mkdir($targetDir);
- touch($targetDir.DIRECTORY_SEPARATOR.'getBasename_test.txt');
- $dir = new DirectoryIterator($targetDir.DIRECTORY_SEPARATOR);
- while(!$dir->isFile()) {
- $dir->next();
- }
- echo $dir->getBasename(array());
-?>
---CLEAN--
-<?php
- $targetDir = __DIR__.DIRECTORY_SEPARATOR.md5('directoryIterator::getbasename2');
- unlink($targetDir.DIRECTORY_SEPARATOR.'getBasename_test.txt');
- rmdir($targetDir);
-?>
---EXPECTF--
-Warning: DirectoryIterator::getBasename() expects parameter 1 to be string, array given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_add_missing_parameter1.phpt b/ext/spl/tests/SplDoublyLinkedList_add_missing_parameter1.phpt
deleted file mode 100644
index 4af0d0b704..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_add_missing_parameter1.phpt
+++ /dev/null
@@ -1,10 +0,0 @@
---TEST--
-Check that SplDoublyLinkedList::add generate a warning and returns a NULL with missing arguments
---FILE--
-<?php
-$dll = new SplDoublyLinkedList();
-var_dump($dll->add());
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::add() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplDoublyLinkedList_add_missing_parameter2.phpt b/ext/spl/tests/SplDoublyLinkedList_add_missing_parameter2.phpt
deleted file mode 100644
index ac87bf1979..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_add_missing_parameter2.phpt
+++ /dev/null
@@ -1,10 +0,0 @@
---TEST--
-Check that SplDoublyLinkedList::add generate a warning and returns a NULL with a missing value argument
---FILE--
-<?php
-$dll = new SplDoublyLinkedList();
-var_dump($dll->add(2));
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::add() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt b/ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt
deleted file mode 100644
index 36b186d6b7..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::bottom() - pass in an unexpected array parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->bottom(array());
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::bottom() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_float.phpt b/ext/spl/tests/SplDoublyLinkedList_bottom_pass_float.phpt
deleted file mode 100644
index 94312a0f60..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_float.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::bottom() - pass in an unexpected float parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->bottom(3.14159);
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::bottom() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_integer.phpt b/ext/spl/tests/SplDoublyLinkedList_bottom_pass_integer.phpt
deleted file mode 100644
index 651f1e4382..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_integer.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::bottom() - pass in an unexpected integer parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->bottom(45);
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::bottom() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_null.phpt b/ext/spl/tests/SplDoublyLinkedList_bottom_pass_null.phpt
deleted file mode 100644
index efc6b8ae50..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_null.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::bottom() - pass in an unexpected null parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->bottom(null);
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::bottom() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_count.phpt b/ext/spl/tests/SplDoublyLinkedList_count.phpt
deleted file mode 100644
index 72b029cce4..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_count.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Check that SplDoublyLinkedList::count fails if parameter passed in
---CREDITS--
-Rob Knight <themanhimself@robknight.org.uk> PHPNW Test Fest 2009
---FILE--
-<?php
-$list = new SplDoublyLinkedList();
-
-$c = $list->count('foo');
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::count() expects exactly 0 parameters, 1 given in %s on line 4
diff --git a/ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt b/ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt
deleted file mode 100644
index 463f1a104d..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Create a SplDoublyLinkedList, call count() and pass a SplDoublyLinkedList object as the parameter.
---CREDITS--
-Philip Norton philipnorton42@gmail.com
---FILE--
-<?php
-$dll = new SplDoublyLinkedList(2);
-$dll->count(new SplDoublyLinkedList(2));
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::count() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_getIteratorMode_error.phpt b/ext/spl/tests/SplDoublyLinkedList_getIteratorMode_error.phpt
deleted file mode 100644
index b9810fc214..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_getIteratorMode_error.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-SplDoublyLinkedList getIteratorMode with an unexpected parameter
---CREDITS--
-PHPNW Testfest 2009 - Lorna Mitchell
---FILE--
-<?php
-$list = new SplDoublyLinkedList();
-$list->getIteratorMode(24);
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::getIteratorMode() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt
deleted file mode 100644
index 18456244bd..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-Check that SplDoublyLinkedList->isEmpty() returns an error message when a parameter is passed.
---CREDITS--
-PHPNW Testfest 2009 - Paul Court ( g@rgoyle.com )
---FILE--
-<?php
- // Create a new Doubly Linked List
- $dll = new SplDoublyLinkedList();
-
- var_dump($dll->isEmpty("test"));
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::isEmpty() expects exactly 0 parameters, %d given in %s
-NULL
diff --git a/ext/spl/tests/SplDoublyLinkedList_isEmpty_not-empty-with-parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_isEmpty_not-empty-with-parameter.phpt
deleted file mode 100644
index c88a72a25c..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_isEmpty_not-empty-with-parameter.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Check that SplDoublyLinkedList->isEmpty() returns an error message when a parameter is passed.
---CREDITS--
-PHPNW Testfest 2009 - Paul Court ( g@rgoyle.com )
---FILE--
-<?php
- // Create a new Doubly Linked List
- $dll = new SplDoublyLinkedList();
-
- // Add some items to the list
- $dll->push(1);
- $dll->push(2);
- $dll->push(3);
- //var_dump($dll);
-
- var_dump($dll->isEmpty("test"));
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::isEmpty() expects exactly 0 parameters, %d given in %s
-NULL
diff --git a/ext/spl/tests/SplDoublyLinkedList_offsetExists_invalid_parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_offsetExists_invalid_parameter.phpt
deleted file mode 100644
index f0e1b8ba14..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_offsetExists_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SPL SplDoublyLinkedList offsetExists displays warning and returns null on no parameters
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$list = new SplDoublyLinkedList();
-$a = $list->offsetExists();
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::offsetExists() expects exactly 1 parameter, 0 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplDoublyLinkedList_offsetGet_empty.phpt b/ext/spl/tests/SplDoublyLinkedList_offsetGet_empty.phpt
deleted file mode 100644
index d776d69223..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_offsetGet_empty.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::offsetGet() with no parameter passed.
---CREDITS--
-PHPNW Test Fest 2009 - Jordan Hatch
---FILE--
-<?php
-
-$array = new SplDoublyLinkedList( );
-
-$get = $array->offsetGet();
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::offsetGet() expects exactly 1 parameter, 0 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_offsetGet_missing_param.phpt b/ext/spl/tests/SplDoublyLinkedList_offsetGet_missing_param.phpt
deleted file mode 100644
index beffe7ad87..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_offsetGet_missing_param.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Tests that the offsetGet() method throws an error when no argument is sent
---CREDITS--
-PHPNW Test Fest 2009 - Rick Ogden
---FILE--
-<?php
-$dll = new SplDoublyLinkedList();
-$dll->push(1);
-$dll->push(2);
-
-var_dump($dll->offsetGet());
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::offsetGet() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplDoublyLinkedList_offsetSet_invalid_parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_offsetSet_invalid_parameter.phpt
deleted file mode 100644
index 2447e798a1..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_offsetSet_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SplDoublyLinkedList offsetSet throws error on no parameters
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$list = new SplDoublyLinkedList();
-$a = $list->offsetSet();
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::offsetSet() expects exactly 2 parameters, 0 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplDoublyLinkedList_offsetSet_one_invalid_parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_offsetSet_one_invalid_parameter.phpt
deleted file mode 100644
index 244dcd5b03..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_offsetSet_one_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SplDoublyLinkedList offsetSet throws error only one parameter
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$list = new SplDoublyLinkedList();
-$a = $list->offsetSet(2);
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::offsetSet() expects exactly 2 parameters, 1 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplDoublyLinkedList_pop_noParams.phpt b/ext/spl/tests/SplDoublyLinkedList_pop_noParams.phpt
deleted file mode 100644
index 64f3a48150..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_pop_noParams.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Checks that the pop() method of DoublyLinkedList does not accept args.
---CREDITS--
-PHPNW Test Fest 2009 - Rick Ogden
---FILE--
-<?php
-$ll = new SplDoublyLinkedList();
-$ll->push(1);
-$ll->push(2);
-
-var_dump($ll->pop(1));
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::pop() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplDoublyLinkedList_pop_params.phpt b/ext/spl/tests/SplDoublyLinkedList_pop_params.phpt
deleted file mode 100644
index a3df71bc71..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_pop_params.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::offsetGet() with no parameter passed.
---CREDITS--
-PHPNW Test Fest 2009 - Jordan Hatch
---FILE--
-<?php
-
-$array = new SplDoublyLinkedList( );
-
-$get = $array->pop( 'param' );
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::pop() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_push_missing_parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_push_missing_parameter.phpt
deleted file mode 100644
index 26fb3a9b8d..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_push_missing_parameter.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Check that SplDoublyLinkedList::push generate a warning and return NULL with missing param
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-$dll = new SplDoublyLinkedList();
-var_dump($dll->push());
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::push() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplDoublyLinkedList_setIteratorMode_param_SplDoublyLinkedList.phpt b/ext/spl/tests/SplDoublyLinkedList_setIteratorMode_param_SplDoublyLinkedList.phpt
deleted file mode 100644
index a990394334..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_setIteratorMode_param_SplDoublyLinkedList.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Create a SplDoublyLinkedList, call setIteratorMode() and pass a SplDoublyLinkedList object as the parameter.
---CREDITS--
-Philip Norton philipnorton42@gmail.com
---FILE--
-<?php
-$dll = new SplDoublyLinkedList(2);
-$dll->setIteratorMode(new SplDoublyLinkedList(2));
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::setIteratorMode() expects parameter 1 to be int, object given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_top_pass_array.phpt b/ext/spl/tests/SplDoublyLinkedList_top_pass_array.phpt
deleted file mode 100644
index 2e2632d39a..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_top_pass_array.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::top() - pass in an unexpected array
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->top(array());
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::top() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_top_pass_float.phpt b/ext/spl/tests/SplDoublyLinkedList_top_pass_float.phpt
deleted file mode 100644
index 0a481b85a0..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_top_pass_float.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::top() - pass in an unexpected float parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->top(3.14159);
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::top() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_top_pass_integer.phpt b/ext/spl/tests/SplDoublyLinkedList_top_pass_integer.phpt
deleted file mode 100644
index 72bdbabc3d..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_top_pass_integer.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::top() - pass in an unexpected integer parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->top(45);
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::top() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_top_pass_null.phpt b/ext/spl/tests/SplDoublyLinkedList_top_pass_null.phpt
deleted file mode 100644
index 6a92399739..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_top_pass_null.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SplDoublyLinkedList::top() - pass in an unexpected null parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-
-$list = new SplDoublyLinkedList();
-$list->push("top");
-$list->top(null);
-
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::top() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt
deleted file mode 100644
index adc631407c..0000000000
--- a/ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-Check that SplDoublyLinkedList::unshift generate a warning and return NULL with missing param
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-$dll = new SplDoublyLinkedList();
-var_dump($dll->unshift());
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::unshift() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplFileObject_current_error001.phpt b/ext/spl/tests/SplFileObject_current_error001.phpt
deleted file mode 100644
index 23c126648f..0000000000
--- a/ext/spl/tests/SplFileObject_current_error001.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-SPL: SplFileObject::current variation error
---CREDITS--
-Ricardo Oedietram <ricardo@odracir.nl>
-Erwin Poeze <erwin.poeze@gmail.com>
-#PFZ June PHP TestFest 2012
---FILE--
-<?php
-//line 2
-//line 3
-//line 4
-//line 5
-$s = new SplFileObject(__FILE__);
-$s->seek(2);
-
-echo $s->current('foo');
-?>
---EXPECTF--
-Warning: SplFileObject::current() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFileObject_fputcsv_error.phpt b/ext/spl/tests/SplFileObject_fputcsv_error.phpt
deleted file mode 100644
index 4763455907..0000000000
--- a/ext/spl/tests/SplFileObject_fputcsv_error.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-SplFileObject::fputcsv(): error conditions
---FILE--
-<?php
-$fo = new SplFileObject(__DIR__ . '/SplFileObject_fputcsv2.csv', 'w');
-
-echo "*** Testing error conditions ***\n";
-// zero argument
-echo "-- Testing fputcsv() with zero argument --\n";
-var_dump( $fo->fputcsv() );
-
-// more than expected no. of args
-echo "-- Testing fputcsv() with more than expected number of arguments --\n";
-$fields = array("fld1", "fld2");
-$delim = ";";
-$enclosure ="\"";
-$escape = "\\";
-var_dump( $fo->fputcsv($fields, $delim, $enclosure, $escape, $fo) );
-
-echo "Done\n";
---CLEAN--
-<?php
-$file = __DIR__ . '/SplFileObject_fputcsv2.csv';
-unlink($file);
-?>
---EXPECTF--
-*** Testing error conditions ***
--- Testing fputcsv() with zero argument --
-
-Warning: SplFileObject::fputcsv() expects at least 1 parameter, 0 given in %s on line %d
-NULL
--- Testing fputcsv() with more than expected number of arguments --
-
-Warning: SplFileObject::fputcsv() expects at most 4 parameters, 5 given in %s on line %d
-NULL
-Done
diff --git a/ext/spl/tests/SplFileObject_fseek_error_001.phpt b/ext/spl/tests/SplFileObject_fseek_error_001.phpt
deleted file mode 100644
index 0efeb98cb2..0000000000
--- a/ext/spl/tests/SplFileObject_fseek_error_001.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SplFileObject::fseek function - parameters test
---FILE--
-<?php
-$obj = New SplFileObject(__FILE__);
-$obj->fseek(1,2,3);
-$obj->fseek();
-?>
---EXPECTF--
-Warning: SplFileObject::fseek() expects at most 2 parameters, 3 given %s
-
-Warning: SplFileObject::fseek() expects at least 1 parameter, 0 given %s
diff --git a/ext/spl/tests/SplFileObject_fwrite_error_001.phpt b/ext/spl/tests/SplFileObject_fwrite_error_001.phpt
deleted file mode 100644
index 0418086e9e..0000000000
--- a/ext/spl/tests/SplFileObject_fwrite_error_001.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SplFileObject::fpassthru function - parameters test
---FILE--
-<?php
-$obj = New SplFileObject(dirname(__FILE__).'/SplFileObject_testinput.csv');
-$obj->fwrite();
-$obj->fwrite('6,6,6',25,null);
-?>
---EXPECTF--
-Warning: SplFileObject::fwrite() expects at least 1 parameter, 0 given in %s
-
-Warning: SplFileObject::fwrite() expects at most 2 parameters, 3 given in %s
diff --git a/ext/spl/tests/SplFileObject_getchildren_error001.phpt b/ext/spl/tests/SplFileObject_getchildren_error001.phpt
deleted file mode 100644
index 9c17a82977..0000000000
--- a/ext/spl/tests/SplFileObject_getchildren_error001.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SPL: SplFileObject::getchildren error 001
---CREDITS--
-Erwin Poeze <erwin.poeze at gmail.com>
---FILE--
-<?php
-$s = new SplFileObject( __FILE__ );
-$s->getChildren('string');
-
-?>
---EXPECTF--
-Warning: SplFileObject::getChildren() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFileObject_getflags_error002.phpt b/ext/spl/tests/SplFileObject_getflags_error002.phpt
deleted file mode 100644
index 00fd351db8..0000000000
--- a/ext/spl/tests/SplFileObject_getflags_error002.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-SPL: SplFileObject::getFlags error 001
---CREDITS--
-Erwin Poeze <erwin.poeze@gmail.com>
---FILE--
-<?php
-
-file_put_contents('SplFileObject_getflags_error002.csv', 'eerste;tweede;derde');
-
-$fo = new SplFileObject('SplFileObject_getflags_error002.csv');
-$fo->setFlags(SplFileObject::READ_CSV);
-
-$fo->getFlags('fake');
-
-?>
---CLEAN--
-<?php
-unlink('SplFileObject_getflags_error002.csv');
-?>
---EXPECTF--
-Warning: SplFileObject::getFlags() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFileObject_haschildren_error001.phpt b/ext/spl/tests/SplFileObject_haschildren_error001.phpt
deleted file mode 100644
index 0c4e1de3b7..0000000000
--- a/ext/spl/tests/SplFileObject_haschildren_error001.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SPL: SplFileObject::haschildren error 001
---CREDITS--
-Erwin Poeze <erwin.poeze at gmail.com>
---FILE--
-<?php
-$s = new SplFileObject( __FILE__ );
-$s->hasChildren('string');
-
-?>
---EXPECTF--
-Warning: SplFileObject::hasChildren() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFileObject_key_error003.phpt b/ext/spl/tests/SplFileObject_key_error003.phpt
deleted file mode 100644
index 7568cf55f4..0000000000
--- a/ext/spl/tests/SplFileObject_key_error003.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SPL: SplFileObject::key error
---CREDITS--
-Erwin Poeze <erwin.poeze AT gmail.com>
---FILE--
-<?php
-//line 2
-//line 3
-//line 4
-//line 5
-$s = new SplFileObject(__FILE__);
-$s->key(3);
-?>
---EXPECTF--
-Warning: SplFileObject::key() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFileObject_rewind_error001.phpt b/ext/spl/tests/SplFileObject_rewind_error001.phpt
deleted file mode 100644
index 2e4aefb7a7..0000000000
--- a/ext/spl/tests/SplFileObject_rewind_error001.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-SPL: SplFileObject::rewind() with a parameter.
---CREDITS--
-Ricardo Oedietram <ricardo@odracir.nl>
-Erwin Poeze <erwin.poeze@gmail.com>
-#PFZ June PHP TestFest 2012
---FILE--
-<?php
-
-file_put_contents('SplFileObject_rewind_error001.csv', 'eerste;tweede;derde');
-
-$fo = new SplFileObject('SplFileObject_rewind_error001.csv');
-
-$fo->rewind( "invalid" );
-
-?>
---CLEAN--
-<?php
-unlink('SplFileObject_rewind_error001.csv');
-?>
---EXPECTF--
-Warning: SplFileObject::rewind() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_count_checkParams.phpt b/ext/spl/tests/SplFixedArray_count_checkParams.phpt
deleted file mode 100644
index 5cb12feee7..0000000000
--- a/ext/spl/tests/SplFixedArray_count_checkParams.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Makes sure that an integer cannot be passed into the count() method of the splFixedArray.
---CREDITS--
-PHPNW Test Fest 2009 - Rick Ogden
---FILE--
-<?php
-$ar = new SplFixedArray(3);
-$ar[0] = 1;
-$ar[1] = 2;
-$ar[2] = 3;
-
-echo $ar->count(3);
-?>
---EXPECTF--
-Warning: SplFixedArray::count() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_count_param_int.phpt b/ext/spl/tests/SplFixedArray_count_param_int.phpt
deleted file mode 100644
index 0cb4d06fdd..0000000000
--- a/ext/spl/tests/SplFixedArray_count_param_int.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Creates array, uses the count function to get the size of the array, but passes a parameter.
---CREDITS--
-Philip Norton philipnorton42@gmail.com
---FILE--
-<?php
-$array = new SplFixedArray(5);
-echo $array->count(3);
-?>
---EXPECTF--
-Warning: SplFixedArray::count() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_current_param.phpt b/ext/spl/tests/SplFixedArray_current_param.phpt
deleted file mode 100644
index 71f5d3a524..0000000000
--- a/ext/spl/tests/SplFixedArray_current_param.phpt
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-SplFixedArray::current() with a parameter. *BUG*
---CREDITS--
-PHPNW Test Fest 2009 - Jordan Hatch
---FILE--
-<?php
-
-$array = new SplFixedArray( 3 );
-
-$array[0] = "Hello";
-$array[1] = "world";
-$array[2] = "elePHPant";
-
-foreach ( $array as $value ) {
- echo $array->current( array("this","should","not","execute") );
-}
-
-?>
---EXPECTF--
-Warning: SplFixedArray::current() expects exactly 0 parameters, 1 given in %s on line %d
-
-Warning: SplFixedArray::current() expects exactly 0 parameters, 1 given in %s on line %d
-
-Warning: SplFixedArray::current() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_001.phpt b/ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_001.phpt
deleted file mode 100644
index 3cecb8b79c..0000000000
--- a/ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_001.phpt
+++ /dev/null
@@ -1,10 +0,0 @@
---TEST--
-pass an integer into fromArray()
---CREDITS--
-PHPNW Testfest 2009 - Lorna Mitchell
---FILE--
-<?php
-echo SplFixedArray::fromArray(17954);
-?>
---EXPECTF--
-Warning: SplFixedArray::fromArray() expects parameter 1 to be array, int given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_002.phpt b/ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_002.phpt
deleted file mode 100644
index a0747451a0..0000000000
--- a/ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_002.phpt
+++ /dev/null
@@ -1,10 +0,0 @@
---TEST--
-pass a string into fromArray()
---CREDITS--
-PHPNW Testfest 2009 - Lorna Mitchell
---FILE--
-<?php
-echo SplFixedArray::fromArray('hello');
-?>
---EXPECTF--
-Warning: SplFixedArray::fromArray() expects parameter 1 to be array, string given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_fromarray_param_boolean.phpt b/ext/spl/tests/SplFixedArray_fromarray_param_boolean.phpt
deleted file mode 100644
index 5c8f526d66..0000000000
--- a/ext/spl/tests/SplFixedArray_fromarray_param_boolean.phpt
+++ /dev/null
@@ -1,10 +0,0 @@
---TEST--
-Tries to create a SplFixedArray using a boolean value.
---CREDITS--
-Philip Norton philipnorton42@gmail.com
---FILE--
-<?php
-$array = SplFixedArray::fromArray(true);
-?>
---EXPECTF--
-Warning: SplFixedArray::fromArray() expects parameter 1 to be array, bool given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_getSize_pass_param.phpt b/ext/spl/tests/SplFixedArray_getSize_pass_param.phpt
deleted file mode 100644
index ef4f40c32f..0000000000
--- a/ext/spl/tests/SplFixedArray_getSize_pass_param.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SplFixedArray::getSize() pass a parameter when none are expected
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-$fixed_array = new SplFixedArray(2);
-echo "*test* ".$fixed_array->getSize(3);
-?>
---EXPECTF--
-Warning: SplFixedArray::getSize() expects exactly 0 parameters, 1 given in %s on line %d
-*test*
diff --git a/ext/spl/tests/SplFixedArray_key_param.phpt b/ext/spl/tests/SplFixedArray_key_param.phpt
deleted file mode 100644
index 300e6df790..0000000000
--- a/ext/spl/tests/SplFixedArray_key_param.phpt
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-SplFixedArray::key() with a parameter passed. This is a bug and an error should be called.
---CREDITS--
-PHPNW Test Fest 2009 - Jordan Hatch
---FILE--
-<?php
-
-$array = new SplFixedArray( 3 );
-
-$array[0] = "Hello";
-$array[1] = "world";
-$array[2] = "elePHPant";
-
-foreach ( $array as $value ) {
- echo $array->key( array("this","should","not","execute") );
-}
-
-?>
---EXPECTF--
-Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
-
-Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
-
-Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_next_param.phpt b/ext/spl/tests/SplFixedArray_next_param.phpt
deleted file mode 100644
index 5e8cb633b9..0000000000
--- a/ext/spl/tests/SplFixedArray_next_param.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
---TEST--
-SplFixedArray::next() with a parameter. *BUG*
---CREDITS--
-PHPNW Test Fest 2009 - Jordan Hatch
---FILE--
-<?php
-
-$array = new SplFixedArray( 4 );
-
-$array[0] = "Hello";
-$array[1] = "world";
-$array[2] = "elePHPant";
-
-$array->next( "invalid" );
-
-?>
---EXPECTF--
-Warning: SplFixedArray::next() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_offsetExists_invalid_parameter.phpt b/ext/spl/tests/SplFixedArray_offsetExists_invalid_parameter.phpt
deleted file mode 100644
index 76ee2f58ad..0000000000
--- a/ext/spl/tests/SplFixedArray_offsetExists_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SPL FixedArray offsetExists throws error only one parameter
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$array = new SplFixedArray(5);
-$a = $array->offsetExists();
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplFixedArray::offsetExists() expects exactly 1 parameter, 0 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplFixedArray_offsetGet_invalid_parameter.phpt b/ext/spl/tests/SplFixedArray_offsetGet_invalid_parameter.phpt
deleted file mode 100644
index 71a1bf80f2..0000000000
--- a/ext/spl/tests/SplFixedArray_offsetGet_invalid_parameter.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-SPL FixedArray offsetGet throws error on no parameter
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$array = new SplFixedArray(5);
-$array[0] = 'a';
-$a = $array->offsetGet();
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplFixedArray::offsetGet() expects exactly 1 parameter, 0 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplFixedArray_offsetSet_invalid_parameter.phpt b/ext/spl/tests/SplFixedArray_offsetSet_invalid_parameter.phpt
deleted file mode 100644
index 4e43a525fc..0000000000
--- a/ext/spl/tests/SplFixedArray_offsetSet_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SPL FixedArray offsetSet throws error on no parameters
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$array = new SplFixedArray(5);
-$a = $array->offsetSet();
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplFixedArray::offsetSet() expects exactly 2 parameters, 0 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplFixedArray_offsetSet_one_invalid_parameter.phpt b/ext/spl/tests/SplFixedArray_offsetSet_one_invalid_parameter.phpt
deleted file mode 100644
index c19cd01763..0000000000
--- a/ext/spl/tests/SplFixedArray_offsetSet_one_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SPL FixedArray offsetSet throws error only one parameter
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$array = new SplFixedArray(5);
-$a = $array->offsetSet(2);
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplFixedArray::offsetSet() expects exactly 2 parameters, 1 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplFixedArray_offsetUnset_invalid_parameter.phpt b/ext/spl/tests/SplFixedArray_offsetUnset_invalid_parameter.phpt
deleted file mode 100644
index 40a372bd91..0000000000
--- a/ext/spl/tests/SplFixedArray_offsetUnset_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SPL FixedArray offsetUnset throws error on no parameter
---CREDITS--
-PHPNW TestFest 2009 - Ben Longden
---FILE--
-<?php
-$array = new SplFixedArray(5);
-$a = $array->offsetUnset();
-if(is_null($a)) {
- echo 'PASS';
-}
-?>
---EXPECTF--
-Warning: SplFixedArray::offsetUnset() expects exactly 1 parameter, 0 given in %s on line %d
-PASS
diff --git a/ext/spl/tests/SplFixedArray_rewind_param.phpt b/ext/spl/tests/SplFixedArray_rewind_param.phpt
deleted file mode 100644
index 7002efb313..0000000000
--- a/ext/spl/tests/SplFixedArray_rewind_param.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
---TEST--
-SplFixedArray::rewind() with a parameter. *BUG*
---CREDITS--
-PHPNW Test Fest 2009 - Jordan Hatch
---FILE--
-<?php
-
-$array = new SplFixedArray( 4 );
-
-$array[0] = "Hello";
-$array[1] = "world";
-$array[2] = "elePHPant";
-
-$array->rewind( "invalid" );
-
-?>
---EXPECTF--
-Warning: SplFixedArray::rewind() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/SplFixedArray_setSize_param_array.phpt b/ext/spl/tests/SplFixedArray_setSize_param_array.phpt
deleted file mode 100644
index a9e763ab83..0000000000
--- a/ext/spl/tests/SplFixedArray_setSize_param_array.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
---TEST--
-SplFixedArray::setSize() with an array parameter
---CREDITS--
-PHPNW Testfest 2009 - Adrian Hardy
---FILE--
-<?php
-$fixed_array = new SplFixedArray(2);
-$fixed_array->setSize(array());
-var_dump($fixed_array);
-?>
---EXPECTF--
-Warning: SplFixedArray::setSize() expects parameter 1 to be int, array given in %s on line %d
-object(SplFixedArray)#1 (2) {
- [0]=>
- NULL
- [1]=>
- NULL
-}
diff --git a/ext/spl/tests/SplFixedArray_toArray_with-params.phpt b/ext/spl/tests/SplFixedArray_toArray_with-params.phpt
deleted file mode 100644
index 4c72dca235..0000000000
--- a/ext/spl/tests/SplFixedArray_toArray_with-params.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-Check that passing a parameter to toArray() produces a correct error
---CREDITS--
-PHPNW Testfest 2009 - Paul Court ( g@rgoyle.com )
---FILE--
-<?php
- // Create a fixed array
- $fixedArray = new SplFixedArray(5);
-
- // Fill it up
- for ($i=0; $i < 5; $i++) {
- $fixedArray[$i] = "PHPNW Testfest";
- }
-
- // Test count() returns correct error when parameters are passed.
- $fixedArray->count(1);
-?>
---EXPECTF--
-Warning: SplFixedArray::count() expects exactly 0 parameters, %d given in %s on line %d
diff --git a/ext/spl/tests/SplHeap_count_invalid_parameter.phpt b/ext/spl/tests/SplHeap_count_invalid_parameter.phpt
deleted file mode 100644
index e8b122ec10..0000000000
--- a/ext/spl/tests/SplHeap_count_invalid_parameter.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-Check that SplHeap::count generate a warning and returns NULL when param passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- new stdClass,
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $h = new SplMaxHeap();
-
- var_dump($h->count($input));
-}
-
-?>
---EXPECTF--
-Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplHeap_extract_invalid_parameter.phpt b/ext/spl/tests/SplHeap_extract_invalid_parameter.phpt
deleted file mode 100644
index d3c9f76589..0000000000
--- a/ext/spl/tests/SplHeap_extract_invalid_parameter.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-Check that SplHeap::extract generate a warning and returns NULL when param passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- new stdClass,
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $h = new SplMaxHeap();
-
- var_dump($h->extract($input));
-}
-
-?>
---EXPECTF--
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplHeap_insert_invalid_parameter.phpt b/ext/spl/tests/SplHeap_insert_invalid_parameter.phpt
deleted file mode 100644
index f2bec5a66f..0000000000
--- a/ext/spl/tests/SplHeap_insert_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Check that SplHeap::insert generate a warning and returns NULL when $value is missing
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$h = new SplMaxHeap();
-
-var_dump($h->insert());
-
-?>
---EXPECTF--
-Warning: SplHeap::insert() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplHeap_isEmpty_invalid_parameter.phpt b/ext/spl/tests/SplHeap_isEmpty_invalid_parameter.phpt
deleted file mode 100644
index f98a69cadf..0000000000
--- a/ext/spl/tests/SplHeap_isEmpty_invalid_parameter.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-Check that SplHeap::isEmpty generate a warning and returns NULL when param passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- new stdClass,
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $h = new SplMaxHeap();
-
- var_dump($h->isEmpty($input));
-}
-
-?>
---EXPECTF--
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_addAll_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_addAll_invalid_parameter.phpt
deleted file mode 100644
index 3401439d97..0000000000
--- a/ext/spl/tests/SplObjectStorage_addAll_invalid_parameter.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Check that SplObjectStorage::addAll generate a warning and returns NULL when passed non-object param
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $s = new SplObjectStorage();
-
- var_dump($s->addAll($input));
-}
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, array given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, bool given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, string given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, int given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, float given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, null given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_attach_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_attach_invalid_parameter.phpt
deleted file mode 100644
index a6e68854da..0000000000
--- a/ext/spl/tests/SplObjectStorage_attach_invalid_parameter.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-Check that SplObjectStorage::attach generates a warning and returns NULL when bad params are passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$s = new SplObjectStorage();
-
-var_dump($s->attach(true));
-var_dump($s->attach(new stdClass, true, true));
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::attach() expects parameter 1 to be object, bool given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::attach() expects at most 2 parameters, 3 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_contains_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_contains_invalid_parameter.phpt
deleted file mode 100644
index 0f21923949..0000000000
--- a/ext/spl/tests/SplObjectStorage_contains_invalid_parameter.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Check that SplObjectStorage::contains generate a warning and returns NULL when passed non-object param
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $s = new SplObjectStorage();
-
- var_dump($s->contains($input));
-}
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::contains() expects parameter 1 to be object, array given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::contains() expects parameter 1 to be object, bool given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::contains() expects parameter 1 to be object, string given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::contains() expects parameter 1 to be object, int given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::contains() expects parameter 1 to be object, float given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::contains() expects parameter 1 to be object, null given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt
deleted file mode 100644
index 6b4a8f798f..0000000000
--- a/ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Check that SplObjectStorage::detach generate a warning and returns NULL when passed non-object param
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $s = new SplObjectStorage();
-
- var_dump($s->detach($input));
-}
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::detach() expects parameter 1 to be object, array given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::detach() expects parameter 1 to be object, bool given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::detach() expects parameter 1 to be object, string given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::detach() expects parameter 1 to be object, int given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::detach() expects parameter 1 to be object, float given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::detach() expects parameter 1 to be object, null given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_offsetGet_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_offsetGet_invalid_parameter.phpt
deleted file mode 100644
index 7561bc0765..0000000000
--- a/ext/spl/tests/SplObjectStorage_offsetGet_invalid_parameter.phpt
+++ /dev/null
@@ -1,44 +0,0 @@
---TEST--
-Check that SplObjectStorage::offsetGet generate a warning and return NULL when passed non-object param
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $s = new SplObjectStorage();
- $o1 = new stdClass();
- $s[$o1] = 'some_value';
-
- var_dump($s->offsetGet($input));
-}
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, array given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, bool given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, string given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, int given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, float given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, null given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_removeAllExcept_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_removeAllExcept_invalid_parameter.phpt
deleted file mode 100644
index fe5b63d07e..0000000000
--- a/ext/spl/tests/SplObjectStorage_removeAllExcept_invalid_parameter.phpt
+++ /dev/null
@@ -1,43 +0,0 @@
---TEST--
-Check that SplObjectStorage::removeAllExcept generate a warning and returns NULL when passed non-object param
---CREDITS--
-Matthew Turland (me@matthewturland.com)
-Based on work done at PHPNW Testfest 2009 by Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $s = new SplObjectStorage();
-
- var_dump($s->removeAllExcept($input));
-}
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::removeAllExcept() expects parameter 1 to be SplObjectStorage, array given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAllExcept() expects parameter 1 to be SplObjectStorage, bool given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAllExcept() expects parameter 1 to be SplObjectStorage, string given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAllExcept() expects parameter 1 to be SplObjectStorage, int given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAllExcept() expects parameter 1 to be SplObjectStorage, float given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAllExcept() expects parameter 1 to be SplObjectStorage, null given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_removeAll_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_removeAll_invalid_parameter.phpt
deleted file mode 100644
index a1c6f938b2..0000000000
--- a/ext/spl/tests/SplObjectStorage_removeAll_invalid_parameter.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Check that SplObjectStorage::removeAll generate a warning and returns NULL when passed non-object param
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $s = new SplObjectStorage();
-
- var_dump($s->removeAll($input));
-}
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::removeAll() expects parameter 1 to be SplObjectStorage, array given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAll() expects parameter 1 to be SplObjectStorage, bool given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAll() expects parameter 1 to be SplObjectStorage, string given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAll() expects parameter 1 to be SplObjectStorage, int given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAll() expects parameter 1 to be SplObjectStorage, float given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::removeAll() expects parameter 1 to be SplObjectStorage, null given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_setInfo_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_setInfo_invalid_parameter.phpt
deleted file mode 100644
index 939fd5d52d..0000000000
--- a/ext/spl/tests/SplObjectStorage_setInfo_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Check that SplObjectStorage::setInfo returns NULL when no param is passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$s = new SplObjectStorage();
-
-var_dump($s->setInfo());
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::setInfo() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter1.phpt b/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter1.phpt
deleted file mode 100644
index 8eef31382d..0000000000
--- a/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter1.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-Check that SplObjectStorage::unserialize returns NULL when non-string param is passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- array(),
- new stdClass(),
-);
-
-foreach($data_provider as $input) {
-
- $s = new SplObjectStorage();
-
- var_dump($s->unserialize($input));
-}
-
-?>
---EXPECTF--
-Warning: SplObjectStorage::unserialize() expects parameter 1 to be string, array given in %s on line %d
-NULL
-
-Warning: SplObjectStorage::unserialize() expects parameter 1 to be string, object given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplPriorityQueue_extract_invalid_parameter.phpt b/ext/spl/tests/SplPriorityQueue_extract_invalid_parameter.phpt
deleted file mode 100644
index 79b75ae4a0..0000000000
--- a/ext/spl/tests/SplPriorityQueue_extract_invalid_parameter.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-Check that SplPriorityQueue::extract generate a warning and returns NULL when param passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$data_provider = array(
- new stdClass,
- array(),
- true,
- "string",
- 12345,
- 1.2345,
- NULL
-);
-
-foreach($data_provider as $input) {
-
- $h = new SplPriorityQueue();
-
- var_dump($h->extract($input));
-}
-
-?>
---EXPECTF--
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/SplPriorityQueue_insert_invalid_parameter.phpt b/ext/spl/tests/SplPriorityQueue_insert_invalid_parameter.phpt
deleted file mode 100644
index 08314fd74c..0000000000
--- a/ext/spl/tests/SplPriorityQueue_insert_invalid_parameter.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Check that SplPriorityQueue::insert generate a warning and returns NULL when rubbish params are passed
---CREDITS--
-PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
---FILE--
-<?php
-
-$h = new SplPriorityQueue();
-
-var_dump($h->insert(NULL));
-
-?>
---EXPECTF--
-Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/fileobject_getmaxlinelen_error001.phpt b/ext/spl/tests/fileobject_getmaxlinelen_error001.phpt
deleted file mode 100644
index 3c0c9eebd5..0000000000
--- a/ext/spl/tests/fileobject_getmaxlinelen_error001.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SPL: SplFileObject::getMaxLineLen error 001
---CREDITS--
-Erwin Poeze <erwin.poeze at gmail.com>
---INI--
-include_path=.
---FILE--
-<?php
-$s = new SplFileObject( __FILE__ );
-$s->getMaxLineLen('string');
-
-?>
---EXPECTF--
-Warning: SplFileObject::getMaxLineLen() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/fileobject_setmaxlinelen_error002.phpt b/ext/spl/tests/fileobject_setmaxlinelen_error002.phpt
deleted file mode 100644
index dad59fca5f..0000000000
--- a/ext/spl/tests/fileobject_setmaxlinelen_error002.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SPL: SplFileObject::setMaxLineLen error 002
---CREDITS--
-Erwin Poeze <erwin.poeze at gmail.com>
---FILE--
-<?php
-$s = new SplFileObject( __FILE__ );
-$s->setMaxLineLen();
-
-?>
---EXPECTF--
-Warning: SplFileObject::setMaxLineLen() expects exactly 1 parameter, 0 given in %s on line %d
diff --git a/ext/spl/tests/fileobject_setmaxlinelen_error003.phpt b/ext/spl/tests/fileobject_setmaxlinelen_error003.phpt
deleted file mode 100644
index 14387998fb..0000000000
--- a/ext/spl/tests/fileobject_setmaxlinelen_error003.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SPL: SplFileObject::setMaxLineLen error 003
---CREDITS--
-Erwin Poeze <erwin.poeze at gmail.com>
---FILE--
-<?php
-$s = new SplFileObject( __FILE__ );
-$s->setMaxLineLen('string');
-
-?>
---EXPECTF--
-Warning: SplFileObject::setMaxLineLen() expects parameter 1 to be int, string given in %s on line %d
diff --git a/ext/spl/tests/heap_isempty_variation_001.phpt b/ext/spl/tests/heap_isempty_variation_001.phpt
deleted file mode 100644
index dac470fccf..0000000000
--- a/ext/spl/tests/heap_isempty_variation_001.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-SPL: SplHeap: isEmpty argument variation.
---FILE--
-<?php
-class SplHeap2 extends SplHeap{
-
- public function compare() {
- return -parent::compare();
- }
-}
-
-$h = new SplHeap2;
-$h->isEmpty(1);
-?>
---EXPECTF--
-Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s
diff --git a/ext/spl/tests/heap_top_variation_001.phpt b/ext/spl/tests/heap_top_variation_001.phpt
deleted file mode 100644
index 9953cf9ade..0000000000
--- a/ext/spl/tests/heap_top_variation_001.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SPL: SplHeap top, illegal number of args
---CREDITS--
-Mark Schaschke (mark@fractalturtle.com)
-TestFest London May 2009
---FILE--
-<?php
-$h = new SplMinHeap();
-$h->insert(5);
-// top doesn't take any args, lets see what happens if we give it one
-$h->top('bogus');
-?>
---EXPECTF--
-Warning: SplHeap::top() expects exactly 0 parameters, 1 given in %s
diff --git a/ext/spl/tests/limititerator_seek.phpt b/ext/spl/tests/limititerator_seek.phpt
deleted file mode 100644
index 3336cd0a39..0000000000
--- a/ext/spl/tests/limititerator_seek.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-SPL: LimitIterator seek() arguments
---CREDITS--
-Roshan Abraham (roshanabrahams@gmail.com)
-TestFest London May 2009
---FILE--
-<?php
-
-$a = array(1,2,3);
-$lt = new LimitIterator(new ArrayIterator($a));
-
-$lt->seek(1,1); // Should throw a warning as seek expects only 1 argument
-
-?>
---EXPECTF--
-Warning: LimitIterator::seek() expects exactly 1 parameter, 2 given in %s on line %d
diff --git a/ext/spl/tests/pqueue_compare_error.phpt b/ext/spl/tests/pqueue_compare_error.phpt
deleted file mode 100644
index 99b47bb437..0000000000
--- a/ext/spl/tests/pqueue_compare_error.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
---TEST--
-SPL: Priority queue compare, illegal number of args
---CREDITS--
-Mark Schaschke (mark@fractalturtle.com)
-TestFest London May 2009
---FILE--
-<?php
-$h = new SplPriorityQueue();
-$h->compare();
-$h->compare(1);
-$h->compare(1, 2, 3);
-?>
---EXPECTF--
-Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 0 given in %s
-
-Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 1 given in %s
-
-Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 3 given in %s
diff --git a/ext/spl/tests/recursive_tree_iterator_setprefixpart.phpt b/ext/spl/tests/recursive_tree_iterator_setprefixpart.phpt
deleted file mode 100644
index 7076ad9896..0000000000
--- a/ext/spl/tests/recursive_tree_iterator_setprefixpart.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-SPL: RecursiveTreeIterator::setPrefixPart() Test arguments
---CREDITS--
-Roshan Abraham (roshanabrahams@gmail.com)
-TestFest London May 2009
---FILE--
-<?php
-
-$arr = array(
- "a" => array("b")
-);
-
-$it = new RecursiveArrayIterator($arr);
-$it = new RecursiveTreeIterator($it);
-
-$it->setPrefixPart(1); // Should throw a warning as setPrefixPart expects 2 arguments
-
-$a = new stdClass();
-$it->setPrefixPart($a, 1); // Should throw a warning as setPrefixPart expects argument 1 to be long integer
-
-$it->setPrefixPart(1, $a); // Should throw a warning as setPrefixPart expects argument 2 to be a string
-
-
-?>
-===DONE===
---EXPECTF--
-Warning: RecursiveTreeIterator::setPrefixPart() expects exactly 2 parameters, 1 given in %s on line %d
-
-Warning: RecursiveTreeIterator::setPrefixPart() expects parameter 1 to be int, object given in %s on line %d
-
-Warning: RecursiveTreeIterator::setPrefixPart() expects parameter 2 to be string, object given in %s on line %d
-===DONE===
diff --git a/ext/spl/tests/recursiveiteratoriterator_getsubiterator_error.phpt b/ext/spl/tests/recursiveiteratoriterator_getsubiterator_error.phpt
deleted file mode 100644
index 068ace9d8c..0000000000
--- a/ext/spl/tests/recursiveiteratoriterator_getsubiterator_error.phpt
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-SPL: RecursiveIteratorIterator::getSubIterator() expects at most 1 parameter
---CREDITS--
-Matt Raines matt@raines.me.uk
-#testfest London 2009-05-09
---FILE--
-<?php
-$iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator(array()));
-$iterator->getSubIterator();
-$iterator->getSubIterator(0);
-$iterator->getSubIterator(0, 0);
-?>
---EXPECTF--
-Warning: RecursiveIteratorIterator::getSubIterator() expects at most 1 parameter, 2 given in %s on line 5
diff --git a/ext/spl/tests/regexiterator_setflags_exception.phpt b/ext/spl/tests/regexiterator_setflags_exception.phpt
deleted file mode 100644
index 7cf771db6f..0000000000
--- a/ext/spl/tests/regexiterator_setflags_exception.phpt
+++ /dev/null
@@ -1,35 +0,0 @@
---TEST--
-SPL: RegexIterator::setFlags() exceptions test
---CREDITS--
-Lance Kesson jac_kesson@hotmail.com
-#testfest London 2009-05-09
---FILE--
-<?php
-
-class myIterator implements Iterator {
-
-function current (){}
-function key ( ){}
-function next ( ){}
-function rewind ( ){}
-function valid ( ){}
-
-
-}
-
-class TestRegexIterator extends RegexIterator{}
-
-$rege = '/^a/';
-
-
-$r = new TestRegexIterator(new myIterator, $rege);
-
-try{
- $r->setFlags();
-}catch (Exception $e) {
- echo $e->getMessage();
-}
-
-?>
---EXPECTF--
-Warning: RegexIterator::setFlags() expects exactly 1 parameter, 0 given in %s
diff --git a/ext/spl/tests/regexiterator_setpregflags_exception.phpt b/ext/spl/tests/regexiterator_setpregflags_exception.phpt
deleted file mode 100644
index 5750e72af1..0000000000
--- a/ext/spl/tests/regexiterator_setpregflags_exception.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-SPL: RegexIterator::getPregFlags() exception test
---CREDITS--
-Lance Kesson jac_kesson@hotmail.com
-#testfest London 2009-05-09
---FILE--
-<?php
-
-class myIterator implements Iterator {
-
-function current (){}
-function key ( ){}
-function next ( ){}
-function rewind ( ){}
-function valid ( ){}
-
-
-}
-
-class TestRegexIterator extends RegexIterator{}
-
-$rege = '/^a/';
-
-
-$r = new TestRegexIterator(new myIterator, $rege);
-
-
-try{
- $r->setPregFlags();
-}catch (Exception $e) {
- echo $e->getMessage();
-}
-
-?>
---EXPECTF--
-Warning: RegexIterator::setPregFlags() expects exactly 1 parameter, 0 given in %s
diff --git a/ext/spl/tests/splDoublyLinkedList_shift_noParams.phpt b/ext/spl/tests/splDoublyLinkedList_shift_noParams.phpt
deleted file mode 100644
index cd4ea5b033..0000000000
--- a/ext/spl/tests/splDoublyLinkedList_shift_noParams.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-Checks that the shift() method of DoublyLinkedList does not accept args.
---CREDITS--
-PHPNW Test Fest 2009 - Rick Ogden
---FILE--
-<?php
-$ll = new SplDoublyLinkedList();
-$ll->push(1);
-$ll->push(2);
-
-var_dump($ll->shift(1));
-?>
---EXPECTF--
-Warning: SplDoublyLinkedList::shift() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/spl/tests/spl_005.phpt b/ext/spl/tests/spl_005.phpt
deleted file mode 100644
index cb36df18cf..0000000000
--- a/ext/spl/tests/spl_005.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-SPL: spl_object_hash()
---FILE--
-<?php
-
-var_dump(spl_object_hash(new stdClass));
-var_dump(spl_object_hash(42));
-var_dump(spl_object_hash());
-
-?>
-===DONE===
-<?php exit(0); ?>
---EXPECTF--
-string(32) "%s"
-
-Warning: spl_object_hash() expects parameter 1 to be object, int given in %sspl_005.php on line %d
-NULL
-
-Warning: spl_object_hash() expects exactly 1 parameter, 0 given in %sspl_005.php on line %d
-NULL
-===DONE===
diff --git a/ext/spl/tests/spl_cachingiterator_setFlags_basic.phpt b/ext/spl/tests/spl_cachingiterator_setFlags_basic.phpt
deleted file mode 100644
index 126586bcc7..0000000000
--- a/ext/spl/tests/spl_cachingiterator_setFlags_basic.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-SPL: SplCachingIterator, Test method to set flags for caching iterator
---CREDITS--
-Chris Scott chris.scott@nstein.com
-#testfest London 2009-05-09
---FILE--
-<?php
-
-$ai = new ArrayIterator(array('foo', 'bar'));
-
-$ci = new CachingIterator($ai);
-$ci->setFlags(); //expects arg
-
-?>
---EXPECTF--
-Warning: CachingIterator::setFlags() expects exactly 1 parameter, %s
diff --git a/ext/spl/tests/spl_heap_count_error.phpt b/ext/spl/tests/spl_heap_count_error.phpt
deleted file mode 100644
index 6bed4cfa60..0000000000
--- a/ext/spl/tests/spl_heap_count_error.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SPL: Priority queue count, illegal number of args
---CREDITS--
-Mark Schaschke (mark@fractalturtle.com)
-TestFest London May 2009
---FILE--
-<?php
-$h = new SplPriorityQueue();
-$h->count(1);
-?>
---EXPECTF--
-Warning: SplPriorityQueue::count() expects exactly 0 parameters, 1 given in %s
diff --git a/ext/spl/tests/spl_heap_extract_parameter_error.phpt b/ext/spl/tests/spl_heap_extract_parameter_error.phpt
deleted file mode 100644
index aecd03dfa1..0000000000
--- a/ext/spl/tests/spl_heap_extract_parameter_error.phpt
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-SPL: Heap and extract with parameter
---CREDITS--
-Sean Burlington www.practicalweb.co.uk
-TestFest London May 2009
---FILE--
-<?php
-
-class TestHeap extends SplHeap {
-
- function compare() {
- print "This shouldn't be printed";
- }
-}
-
-$testHeap = new TestHeap();
-
-
-
-var_dump($testHeap->extract('test'));
-
-?>
-===DONE===
---EXPECTF--
-Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line 14
-NULL
-===DONE===
diff --git a/ext/spl/tests/spl_heap_insert_basic.phpt b/ext/spl/tests/spl_heap_insert_basic.phpt
deleted file mode 100644
index 76a34b292b..0000000000
--- a/ext/spl/tests/spl_heap_insert_basic.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-SPL: SplHeap, Test method to insert into heap
---CREDITS--
-Chris Scott chris.scott@nstein.com
-#testfest London 2009-05-09
---FILE--
-<?php
-class MyHeap extends SplHeap
-{
- public function compare($a, $b)
- {
- return $a < $b;
- }
-}
-
-$heap = new MyHeap();
-$heap->insert(1,2);
-?>
---EXPECTF--
-Warning: SplHeap::insert() expects exactly 1 parameter, %s
diff --git a/ext/spl/tests/spl_heap_recoverfromcorruption_arguments.phpt b/ext/spl/tests/spl_heap_recoverfromcorruption_arguments.phpt
deleted file mode 100644
index 126d394f29..0000000000
--- a/ext/spl/tests/spl_heap_recoverfromcorruption_arguments.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-SPL: SplHeap check no arguments to be accepted on recoverFromCorruption
---CREDITS--
-Rohan Abraham (rohanabrahams@gmail.com)
-TestFest London May 2009
---FILE--
-<?php
- $h = new SplMaxHeap();
- //Line below should throw a warning as no args are expected
- $h->recoverFromCorruption("no args");
-?>
---EXPECTF--
-Warning: SplHeap::recoverFromCorruption() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/spl_iterator_to_array_basic.phpt b/ext/spl/tests/spl_iterator_to_array_basic.phpt
deleted file mode 100644
index 68cb8792a9..0000000000
--- a/ext/spl/tests/spl_iterator_to_array_basic.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-SPL: iterator_to_array, Test function to convert iterator to array
---CREDITS--
-Chris Scott chris.scott@nstein.com
-#testfest London 2009-05-09
---FILE--
-<?php
-
-iterator_to_array();//requires iterator as arg
-
-?>
---EXPECTF--
-Warning: iterator_to_array() expects at least 1 parameter, %s
diff --git a/ext/spl/tests/spl_maxheap_compare_basic.phpt b/ext/spl/tests/spl_maxheap_compare_basic.phpt
deleted file mode 100644
index 3705b3fd0b..0000000000
--- a/ext/spl/tests/spl_maxheap_compare_basic.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-SPL: SplMaxHeap, Test method to comare elements
---CREDITS--
-Chris Scott chris.scott@nstein.com
-#testfest London 2009-05-09
---FILE--
-<?php
-
-class MyHeap extends SplMaxHeap
-{
- public function testCompare()
- {
- return parent::compare(1);
- }
-}
-
-$heap = new MyHeap();
-$heap->testCompare();
-
-?>
---EXPECTF--
-Warning: SplMaxHeap::compare() expects exactly 2 parameters, %s
diff --git a/ext/spl/tests/spl_minheap_compare_error.phpt b/ext/spl/tests/spl_minheap_compare_error.phpt
deleted file mode 100644
index d7e5cbb5a1..0000000000
--- a/ext/spl/tests/spl_minheap_compare_error.phpt
+++ /dev/null
@@ -1,30 +0,0 @@
---TEST--
-SPL: SplMinHeap compare, illegal number of args
---CREDITS--
-Mark Schaschke (mark@fractalturtle.com)
-TestFest London May 2009
---FILE--
-<?php
-class SplMinHeap2 extends SplMinHeap {
- public function testCompare1() {
- return parent::compare();
- }
- public function testCompare2() {
- return parent::compare(1);
- }
- public function testCompare3() {
- return parent::compare(1, 2, 3);
- }
-}
-
-$h = new SplMinHeap2();
-$h->testCompare1();
-$h->testCompare2();
-$h->testCompare3();
-?>
---EXPECTF--
-Warning: SplMinHeap::compare() expects exactly 2 parameters, 0 given in %s
-
-Warning: SplMinHeap::compare() expects exactly 2 parameters, 1 given in %s
-
-Warning: SplMinHeap::compare() expects exactly 2 parameters, 3 given in %s
diff --git a/ext/spl/tests/spl_pq_top_error_args.phpt b/ext/spl/tests/spl_pq_top_error_args.phpt
deleted file mode 100644
index 8e26c6c7b8..0000000000
--- a/ext/spl/tests/spl_pq_top_error_args.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SPL: SplPriorityQueue: top too many arguments exception
---CREDITS--
-Nathaniel McHugh nat@fishtrap.co.uk
-#testfest London 2009-05-09
---FILE--
-<?php
-$priorityQueue = new SplPriorityQueue();
-$priorityQueue->top('var');
-?>
---EXPECTF--
-Warning: SplPriorityQueue::top() expects exactly 0 parameters, 1 given in %s
diff --git a/ext/spl/tests/spl_priorityqeue_insert_two_params_error.phpt b/ext/spl/tests/spl_priorityqeue_insert_two_params_error.phpt
deleted file mode 100644
index 076c687712..0000000000
--- a/ext/spl/tests/spl_priorityqeue_insert_two_params_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-SPL: priorityQueue parameter test on insert method
---CREDITS--
-Sean Burlington www.practicalweb.co.uk
-TestFest London May 2009
---FILE--
-<?php
-
-
-$testHeap = new SplPriorityQueue();
-
-
-var_dump($testHeap->insert());
-var_dump($testHeap->insert('test'));
-var_dump($testHeap->insert('test', 'test'));
-var_dump($testHeap->insert('test', 'test', 'test'));
-
-
-?>
-===DONE===
---EXPECTF--
-Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 0 given in %s on line 7
-NULL
-
-Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 1 given in %s on line 8
-NULL
-bool(true)
-
-Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 3 given in %s on line 10
-NULL
-===DONE===
diff --git a/ext/spl/tests/spl_recursiveIteratorIterator_setMaxDepth_parameter_count.phpt b/ext/spl/tests/spl_recursiveIteratorIterator_setMaxDepth_parameter_count.phpt
deleted file mode 100644
index d52a3208ec..0000000000
--- a/ext/spl/tests/spl_recursiveIteratorIterator_setMaxDepth_parameter_count.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-SPL: RecursiveIteratorIterator, setMaxDepth check parameter count
---CREDITS--
-Sean Burlington www.practicalweb.co.uk
-TestFest London May 2009
---FILE--
-<?php
- //line 681 ...
- $array = array(array(7,8,9),1,2,3,array(4,5,6));
-$recursiveArrayIterator = new RecursiveArrayIterator($array);
-$test = new RecursiveIteratorIterator($recursiveArrayIterator);
-
-//var_dump($test->current());
-$test->setMaxDepth();
-$test->setMaxDepth(1);
-$test->setMaxDepth(1,2);
-$test->setMaxDepth(1,2,3);
-
-//var_dump($test->current());
-
-
-?>
-===DONE===
---EXPECTF--
-Warning: RecursiveIteratorIterator::setMaxDepth() expects at most 1 parameter, 2 given in %s on line 10
-
-Warning: RecursiveIteratorIterator::setMaxDepth() expects at most 1 parameter, 3 given in %s on line 11
-===DONE===
diff --git a/ext/spl/tests/splpriorityqueue_extract.phpt b/ext/spl/tests/splpriorityqueue_extract.phpt
deleted file mode 100644
index c3af4dd8f1..0000000000
--- a/ext/spl/tests/splpriorityqueue_extract.phpt
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-SPL: splpriorityqueue extract() Test arguments
---CREDITS--
-Roshan Abraham (roshanabrahams@gmail.com)
-TestFest London May 2009
---FILE--
-<?php
-
-$sp = new SplPriorityQueue();
-
-$sp->insert("1",1);
-
-$sp->extract(1); // Should throw a warning as extract expects NO arguments
-
-?>
---EXPECTF--
-Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/spl/tests/splpriorityqueue_setextractflags.phpt b/ext/spl/tests/splpriorityqueue_setextractflags.phpt
deleted file mode 100644
index 0326dbb03c..0000000000
--- a/ext/spl/tests/splpriorityqueue_setextractflags.phpt
+++ /dev/null
@@ -1,15 +0,0 @@
---TEST--
-SPL: splpriorityqueue setExtractFlags() Test arguments
---CREDITS--
-Roshan Abraham (roshanabrahams@gmail.com)
-TestFest London May 2009
---FILE--
-<?php
-
-$sp = new SplPriorityQueue();
-
-$sp->setExtractFlags(1,1); // Should throw a warning as setExtractFlags expects only 1 argument
-
-?>
---EXPECTF--
-Warning: SplPriorityQueue::setExtractFlags() expects exactly 1 parameter, 2 given in %s on line %d
diff --git a/ext/standard/tests/array/array_change_key_case_errors.phpt b/ext/standard/tests/array/array_change_key_case_errors.phpt
deleted file mode 100644
index 5577b620fd..0000000000
--- a/ext/standard/tests/array/array_change_key_case_errors.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-Test array_change_key_case() function - 3
---FILE--
-<?php
-/* generate different failure conditions */
-$int_var = -19;
-$item = array ("one" => 1, "two" => 2, "THREE" => 3, "FOUR" => "four");
-
-var_dump( array_change_key_case($int_var) ); // args less than expected
-var_dump( array_change_key_case($int_var, CASE_UPPER) ); // invalid first argument
-var_dump( array_change_key_case() ); // Zero argument
-var_dump( array_change_key_case($item, $item["one"], "CASE_UPPER") ); // more than expected numbers
-
-echo "end\n";
-?>
---EXPECTF--
-Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
-Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
-Warning: array_change_key_case() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
-Warning: array_change_key_case() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-end
diff --git a/ext/standard/tests/array/array_chunk_error.phpt b/ext/standard/tests/array/array_chunk_error.phpt
deleted file mode 100644
index d2cbbe16e3..0000000000
--- a/ext/standard/tests/array/array_chunk_error.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-Test array_chunk() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_chunk(array input, int size [, bool preserve_keys])
- * Description: Split array into chunks
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing array_chunk() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_chunk() function with zero arguments --\n";
-var_dump( array_chunk() );
-
-echo "\n-- Testing array_chunk() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$size = 10;
-$preserve_keys = true;
-$extra_arg = 10;
-var_dump( array_chunk($input,$size,$preserve_keys, $extra_arg) );
-
-echo "\n-- Testing array_chunk() function with less than expected no. of arguments --\n";
-$input = array(1, 2);
-var_dump( array_chunk($input) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_chunk() : error conditions ***
-
--- Testing array_chunk() function with zero arguments --
-
-Warning: array_chunk() expects at least 2 parameters, 0 given in %s on line %d
-NULL
-
--- Testing array_chunk() function with more than expected no. of arguments --
-
-Warning: array_chunk() expects at most 3 parameters, 4 given in %s on line %d
-NULL
-
--- Testing array_chunk() function with less than expected no. of arguments --
-
-Warning: array_chunk() expects at least 2 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_combine_error1.phpt b/ext/standard/tests/array/array_combine_error1.phpt
deleted file mode 100644
index efb4e68cf6..0000000000
--- a/ext/standard/tests/array/array_combine_error1.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Test array_combine() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_combine(array $keys, array $values)
- * Description: Creates an array by using the elements of the first parameter as keys
- * and the elements of the second as the corresponding values
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing array_combine() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_combine() function with Zero arguments --\n";
-var_dump( array_combine() );
-
-//Test array_combine with one more than the expected number of arguments
-echo "\n-- Testing array_combine() function with more than expected no. of arguments --\n";
-$keys = array(1, 2);
-$values = array(1, 2);
-$extra_arg = 10;
-var_dump( array_combine($keys,$values, $extra_arg) );
-
-// Testing array_combine with one less than the expected number of arguments
-echo "\n-- Testing array_combine() function with less than expected no. of arguments --\n";
-$keys = array(1, 2);
-var_dump( array_combine($keys) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_combine() : error conditions ***
-
--- Testing array_combine() function with Zero arguments --
-
-Warning: array_combine() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
-
--- Testing array_combine() function with more than expected no. of arguments --
-
-Warning: array_combine() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-
--- Testing array_combine() function with less than expected no. of arguments --
-
-Warning: array_combine() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_count_values_error.phpt b/ext/standard/tests/array/array_count_values_error.phpt
deleted file mode 100644
index 5e0deb1b6d..0000000000
--- a/ext/standard/tests/array/array_count_values_error.phpt
+++ /dev/null
@@ -1,50 +0,0 @@
---TEST--
-Test array_count_values() function : Invalid parameters
---FILE--
-<?php
-/* Prototype : proto array array_count_values(array input)
- * Description: Return the value as key and the frequency of that value in input as value
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-/*
- * Test for handling of incorrect parameters.
- */
-
-echo "*** Testing array_count_values() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_count_values() function with Zero arguments --\n";
-var_dump( array_count_values() );
-
-//Test array_count_values with one more than the expected number of arguments
-echo "\n-- Testing array_count_values() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$extra_arg = 10;
-var_dump( array_count_values($input, $extra_arg) );
-
-//Test array_count_values with integer arguments
-echo "\n-- Testing array_count_values() function integer arguments --\n";
-var_dump( array_count_values(1 ));
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_count_values() : error conditions ***
-
--- Testing array_count_values() function with Zero arguments --
-
-Warning: array_count_values() expects exactly 1 parameter, 0 given in %sarray_count_values_error.php on line 16
-NULL
-
--- Testing array_count_values() function with more than expected no. of arguments --
-
-Warning: array_count_values() expects exactly 1 parameter, 2 given in %sarray_count_values_error.php on line 22
-NULL
-
--- Testing array_count_values() function integer arguments --
-
-Warning: array_count_values() expects parameter 1 to be array, int given in %sarray_count_values_error.php on line 26
-NULL
-Done
diff --git a/ext/standard/tests/array/array_diff_uassoc_variation14.phpt b/ext/standard/tests/array/array_diff_uassoc_variation14.phpt
deleted file mode 100644
index eff559e03a..0000000000
--- a/ext/standard/tests/array/array_diff_uassoc_variation14.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test array_diff_uassoc() function : usage variation -Passing classWithoutToString (handling fatal error) to callback
---FILE--
-<?php
-/* Prototype : array array_diff_uassoc(array arr1, array arr2 [, array ...], callback key_comp_func)
- * Description: Computes the difference of arrays with additional index check which is performed by a
- * user supplied callback function
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_diff_uassoc() : usage variation ***\n";
-
-//Initialize array
-$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
-$array2 = array("a" => "green", "yellow", "red");
-
-class classWithoutToString
-{
-}
-
-// Define error handler
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
- if (error_reporting() != 0) {
- // report non-silenced errors
- echo "Error: $err_no - $err_msg, $filename($linenum)\n";
- }
-}
-set_error_handler('test_error_handler');
-
-$value = new classWithoutToString();
-var_dump( array_diff_uassoc($array1, $array2, $value) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_diff_uassoc() : usage variation ***
-Error: 2 - array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given, %s(%d)
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_diff_uassoc_variation3.phpt b/ext/standard/tests/array/array_diff_uassoc_variation3.phpt
deleted file mode 100644
index 6f413f623e..0000000000
--- a/ext/standard/tests/array/array_diff_uassoc_variation3.phpt
+++ /dev/null
@@ -1,263 +0,0 @@
---TEST--
-Test array_diff_uassoc() function : usage variation -Passing unexpected values to callback argument
---FILE--
-<?php
-/* Prototype : array array_diff_uassoc(array arr1, array arr2 [, array ...], callback key_comp_func)
- * Description: Computes the difference of arrays with additional index check which is performed by a
- * user supplied callback function
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_diff_uassoc() : usage variation ***\n";
-
-//Initialize array
-$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
-$array2 = array("a" => "green", "yellow", "red");
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-//resource variable
-$fp = fopen(__FILE__, "r");
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -12345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-
- // resource data
- 'resource' => $fp,
-);
-
-// loop through each element of the array for key_comp_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_diff_uassoc($array1, $array2, $value) );
-};
-
-fclose($fp);
-?>
-===DONE===
---EXPECTF--
-*** Testing array_diff_uassoc() : usage variation ***
-
---int 0--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 1--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 12345--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int -12345--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 10.5--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -10.5--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float .5--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---empty array--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
---int indexed array--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
---associative array--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %s on line %d
-NULL
-
---nested arrays--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase null--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase true--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase false--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %s on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %s on line %d
-NULL
-
---string DQ--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %s on line %d
-NULL
-
---string SQ--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %s on line %d
-NULL
-
---mixed case string--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, function 'sTrInG' not found or invalid function name in %s on line %d
-NULL
-
---heredoc--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, function 'hello world' not found or invalid function name in %s on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---undefined var--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---unset var--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---resource--
-
-Warning: array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_diff_ukey_error.phpt b/ext/standard/tests/array/array_diff_ukey_error.phpt
deleted file mode 100644
index 92b6ce0f2c..0000000000
--- a/ext/standard/tests/array/array_diff_ukey_error.phpt
+++ /dev/null
@@ -1,55 +0,0 @@
---TEST--
-Test array_diff_ukey() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_diff_ukey(array arr1, array arr2 [, array ...], callback key_comp_func)
- * Description: Returns the entries of arr1 that have keys which are not present in any of the others arguments.
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_diff_ukey() : error conditions ***\n";
-
-// Initialize
-$array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
-$array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
-$extra_arg = 10;
-
-function key_compare_func($key1, $key2)
-{
- if ($key1 == $key2) {
- return 0;
- }
- return ($key1 > $key2)? 1:-1;
-}
-
-//Test array_diff_ukey with one more than the expected number of arguments
-echo "\n-- Testing array_diff_ukey() function with more than expected no. of arguments --\n";
-var_dump( array_diff_ukey($array1, $array2, 'key_compare_func', $extra_arg) );
-
-// Testing array_diff_ukey with one less than the expected number of arguments
-echo "\n-- Testing array_diff_ukey() function with less than expected no. of arguments --\n";
-var_dump( array_diff_ukey($array1, $array2) );
-
-// Testing array_diff_ukey with one less than the expected number of arguments
-echo "\n-- Testing array_diff_ukey() function with no arguments --\n";
-var_dump( array_diff_ukey() );
-?>
-===DONE===
---EXPECTF--
-*** Testing array_diff_ukey() : error conditions ***
-
--- Testing array_diff_ukey() function with more than expected no. of arguments --
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
--- Testing array_diff_ukey() function with less than expected no. of arguments --
-
-Warning: array_diff_ukey(): at least 3 parameters are required, 2 given in %s on line %d
-NULL
-
--- Testing array_diff_ukey() function with no arguments --
-
-Warning: array_diff_ukey(): at least 3 parameters are required, 0 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_diff_ukey_variation11.phpt b/ext/standard/tests/array/array_diff_ukey_variation11.phpt
deleted file mode 100644
index c759189aa0..0000000000
--- a/ext/standard/tests/array/array_diff_ukey_variation11.phpt
+++ /dev/null
@@ -1,44 +0,0 @@
---TEST--
-Test array_diff_ukey() function : usage variation - Passing class without string to callback (Handling fatal error)
---FILE--
-<?php
-/* Prototype : array array_diff_ukey(array arr1, array arr2 [, array ...], callback key_comp_func)
- * Description: Returns the entries of arr1 that have keys which are not present in any of the others arguments. User supplied function is used for comparing the keys. This function is like array_udiff() but works on the keys instead of the values. The associativity is preserved.
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_diff_ukey() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$array1 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
-$array2 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
-$array3 = array(1, 2, 3, 4, 5);
-
-// Define error handler
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
- if (error_reporting() != 0) {
- // report non-silenced errors
- echo "Error: $err_no - $err_msg, $filename($linenum)\n";
- }
-}
-set_error_handler('test_error_handler');
-
-
-class classWithoutToString
-{
-}
-
-$value = new classWithoutToString();
-
-var_dump( array_diff_ukey($array1, $array2, $value) );
-var_dump( array_diff_ukey($array1, $array2, $array3, $value) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_diff_ukey() : usage variation ***
-Error: 2 - array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given, %s(%d)
-NULL
-Error: 2 - array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given, %s(%d)
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_diff_ukey_variation4.phpt b/ext/standard/tests/array/array_diff_ukey_variation4.phpt
deleted file mode 100644
index b34083308e..0000000000
--- a/ext/standard/tests/array/array_diff_ukey_variation4.phpt
+++ /dev/null
@@ -1,254 +0,0 @@
---TEST--
-Test array_diff_ukey() function : usage variation - Passing unexpected values to callback argument
---FILE--
-<?php
-/* Prototype : array array_diff_ukey(array arr1, array arr2 [, array ...], callback key_comp_func)
- * Description: Returns the entries of arr1 that have keys which are not present in any of the others arguments.
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_diff_ukey() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$array1 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
-$array2 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
-$array3 = array(1, 2, 3, 4, 5);
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-//resource variable
-$fp = fopen(__FILE__, "r");
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -12345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-
- // resource data
- 'resource' => $fp,
-);
-
-// loop through each element of the array for ...
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_diff_ukey($array1, $array2, $value) );
- var_dump( array_diff_ukey($array1, $array2, $array3, $value) );
-};
-
-fclose($fp);
-?>
-===DONE===
---EXPECTF--
-*** Testing array_diff_ukey() : usage variation ***
-
---int 0--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 1--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 12345--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int -12345--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 10.5--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -10.5--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float .5--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase null--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase true--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase false--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---undefined var--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---unset var--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---resource--
-
-Warning: array_diff_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_diff_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_fill_keys_error.phpt b/ext/standard/tests/array/array_fill_keys_error.phpt
deleted file mode 100644
index 59a2301c11..0000000000
--- a/ext/standard/tests/array/array_fill_keys_error.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-Test array_fill_keys() function : error conditions
---FILE--
-<?php
-/* Prototype : proto array array_fill_keys(array keys, mixed val)
- * Description: Create an array using the elements of the first parameter as keys each initialized to val
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_fill_keys() : error conditions ***\n";
-
-$keys = array(1, 2);
-$val = 1;
-$extra_arg = 10;
-
-echo "\n-- Testing array_fill_keys() function with more than expected no. of arguments --\n";
-var_dump( array_fill_keys($keys, $val, $extra_arg) );
-
-echo "\n-- Testing array_fill_keys() function with less than expected no. of arguments --\n";
-var_dump( array_fill_keys($keys) );
-
-echo "\n-- Testing array_fill_keys() function with no arguments --\n";
-var_dump( array_fill_keys() );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_fill_keys() : error conditions ***
-
--- Testing array_fill_keys() function with more than expected no. of arguments --
-
-Warning: array_fill_keys() expects exactly 2 parameters, 3 given in %sarray_fill_keys_error.php on line %d
-NULL
-
--- Testing array_fill_keys() function with less than expected no. of arguments --
-
-Warning: array_fill_keys() expects exactly 2 parameters, 1 given in %sarray_fill_keys_error.php on line %d
-NULL
-
--- Testing array_fill_keys() function with no arguments --
-
-Warning: array_fill_keys() expects exactly 2 parameters, 0 given in %sarray_fill_keys_error.php on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_flip_error.phpt b/ext/standard/tests/array/array_flip_error.phpt
deleted file mode 100644
index c193a00896..0000000000
--- a/ext/standard/tests/array/array_flip_error.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-Test array_flip() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_flip(array $input)
- * Description: Return array with key <-> value flipped
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing array_flip() : error conditions ***\n";
-
-// Zero arguments
-echo "-- Testing array_flip() function with Zero arguments --\n";
-var_dump( array_flip() );
-
-//one more than the expected number of arguments
-echo "-- Testing array_flip() function with more than expected no. of arguments --\n";
-$input = array(1 => 'one', 2 => 'two');
-$extra_arg = 10;
-var_dump( array_flip($input, $extra_arg) );
-
-echo "Done"
-?>
---EXPECTF--
-*** Testing array_flip() : error conditions ***
--- Testing array_flip() function with Zero arguments --
-
-Warning: array_flip() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
--- Testing array_flip() function with more than expected no. of arguments --
-
-Warning: array_flip() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_intersect_uassoc_error.phpt b/ext/standard/tests/array/array_intersect_uassoc_error.phpt
deleted file mode 100644
index f7ee0303ed..0000000000
--- a/ext/standard/tests/array/array_intersect_uassoc_error.phpt
+++ /dev/null
@@ -1,60 +0,0 @@
---TEST--
-Test array_intersect_uassoc() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_compare_func)
- * Description: Computes the intersection of arrays with additional index check, compares indexes by a callback function
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_intersect_uassoc() : error conditions ***\n";
-
-// Initialise function arguments
-$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
-$array2 = array("a" => "green", "yellow", "red");
-$array3 = array("a"=>"green", "brown");
-$extra_arg = 10;
-
-//Callback function
-function key_compare_func($a, $b) {
- if ($a === $b) {
- return 0;
- }
- return ($a > $b) ? 1 : -1;
-}
-
-//Test array_intersect_uassoc with one more than the expected number of arguments
-echo "\n-- Testing array_intersect_uassoc() function with more than expected no. of arguments --\n";
-var_dump( array_intersect_uassoc($array1, $array2, 'key_compare_func',$extra_arg) );
-
-// Testing array_intersect_uassoc with one less than the expected number of arguments
-echo "\n-- Testing array_intersect_uassoc() function with less than expected no. of arguments --\n";
-var_dump( array_intersect_uassoc($array1, $array2) );
-var_dump( array_intersect_uassoc($array1, $array2, $array3) );
-
-// Testing array_intersect_uassoc with no arguments
-echo "\n-- Testing array_intersect_uassoc() function with no arguments --\n";
-var_dump( array_intersect_uassoc() );
-?>
-===DONE===
---EXPECTF--
-*** Testing array_intersect_uassoc() : error conditions ***
-
--- Testing array_intersect_uassoc() function with more than expected no. of arguments --
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
--- Testing array_intersect_uassoc() function with less than expected no. of arguments --
-
-Warning: array_intersect_uassoc(): at least 3 parameters are required, 2 given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, second array member is not a valid method in %s on line %d
-NULL
-
--- Testing array_intersect_uassoc() function with no arguments --
-
-Warning: array_intersect_uassoc(): at least 3 parameters are required, 0 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_intersect_uassoc_variation11.phpt b/ext/standard/tests/array/array_intersect_uassoc_variation11.phpt
deleted file mode 100644
index fe9a17983f..0000000000
--- a/ext/standard/tests/array/array_intersect_uassoc_variation11.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Test array_intersect_uassoc() function : usage variation - Passing class without string to callback (Handling fatal error)
---FILE--
-<?php
-/* Prototype : array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_compare_func)
- * Description: Computes the intersection of arrays with additional index check, compares indexes by a callback function
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_intersect_uassoc() : usage variation ***\n";
-
-// Initialise function arguments
-$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
-$array2 = array("a" => "green", "yellow", "red");
-$array3 = array("a"=>"green", "brown");
-// Define error handler
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
- if (error_reporting() != 0) {
- // report non-silenced errors
- echo "Error: $err_no - $err_msg, $filename($linenum)\n";
- }
-}
-set_error_handler('test_error_handler');
-
-
-class classWithoutToString
-{
-}
-
-$value = new classWithoutToString();
-
-var_dump( array_intersect_uassoc($array1, $array2, $value) );
-var_dump( array_intersect_uassoc($array1, $array2, $array3, $value) );
-?>
-===DONE===
---EXPECTF--
-*** Testing array_intersect_uassoc() : usage variation ***
-Error: 2 - array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given, %s(%d)
-NULL
-Error: 2 - array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given, %s(%d)
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_intersect_uassoc_variation4.phpt b/ext/standard/tests/array/array_intersect_uassoc_variation4.phpt
deleted file mode 100644
index d998721bd8..0000000000
--- a/ext/standard/tests/array/array_intersect_uassoc_variation4.phpt
+++ /dev/null
@@ -1,257 +0,0 @@
---TEST--
-Test array_intersect_uassoc() function : usage variation - Passing unexpected values to mandatory third argument
---FILE--
-<?php
-/* Prototype : array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_compare_func)
- * Description: Computes the intersection of arrays with additional index check, compares indexes by a callback function
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_intersect_uassoc() : usage variation ***\n";
-
-// Initialise function arguments
-$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
-$array2 = array("a" => "green", "yellow", "red");
-$array3 = array("a"=>"green", "brown");
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-//resource variable
-$fp = fopen(__FILE__, "r");
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -12345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-
- // resource data
- 'resource' => $fp,
-);
-
-// loop through each element of the array for arr1
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_intersect_uassoc($array1, $array2, $value) );
- var_dump( array_intersect_uassoc($array1, $array2, $array3, $value) );
-};
-
-fclose($fp);
-?>
-===DONE===
---EXPECTF--
-*** Testing array_intersect_uassoc() : usage variation ***
-
---int 0--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 1--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 12345--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int -12345--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 10.5--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -10.5--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float .5--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase null--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase true--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase false--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---undefined var--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---unset var--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---resource--
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_intersect_uassoc_variation9.phpt b/ext/standard/tests/array/array_intersect_uassoc_variation9.phpt
deleted file mode 100644
index fc7c526ed1..0000000000
--- a/ext/standard/tests/array/array_intersect_uassoc_variation9.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test array_intersect_uassoc() function : usage variation - Passing non-existing function name to callback
---FILE--
-<?php
-/* Prototype : array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_compare_func)
- * Description: Computes the intersection of arrays with additional index check, compares indexes by a callback function
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_intersect_uassoc() : usage variation ***\n";
-
-//Initialize variables
-$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
-$array2 = array("a" => "green", "yellow", "red");
-
-//function name within double quotes
-var_dump( array_intersect_uassoc($array1, $array2, "unknown_function") );
-
-//function name within single quotes
-var_dump( array_intersect_uassoc($array1, $array2, 'unknown_function') );
-
-//function name without quotes
-var_dump( array_intersect_uassoc($array1, $array2, unknown_function) );
-?>
-===DONE===
---EXPECTF--
-*** Testing array_intersect_uassoc() : usage variation ***
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name in %s on line %d
-NULL
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name in %s on line %d
-NULL
-
-Warning: Use of undefined constant unknown_function - assumed 'unknown_function' (this will throw an Error in a future version of PHP) in %s on line %d
-
-Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_intersect_ukey_error.phpt b/ext/standard/tests/array/array_intersect_ukey_error.phpt
deleted file mode 100644
index 5d1eba819a..0000000000
--- a/ext/standard/tests/array/array_intersect_ukey_error.phpt
+++ /dev/null
@@ -1,56 +0,0 @@
---TEST--
-Test array_intersect_ukey() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_intersect_ukey(array arr1, array arr2 [, array ...], callback key_compare_func)
- * Description: Computes the intersection of arrays using a callback function on the keys for comparison.
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_intersect_ukey() : error conditions ***\n";
-
-//Initialise arguments
-$array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
-$array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
-
-//Call back function
-function key_compare_func($key1, $key2)
-{
- if ($key1 == $key2)
- return 0;
- else
- return ($key1 > $key2)? 1:-1;
-}
-
-//Test array_intersect_ukey with one more than the expected number of arguments
-echo "\n-- Testing array_intersect_ukey() function with more than expected no. of arguments --\n";
-$extra_arg = 10;
-var_dump( array_intersect_ukey($array1, $array2, 'key_compare_func',$extra_arg) );
-
-// Testing array_intersect_ukey with one less than the expected number of arguments
-echo "\n-- Testing array_intersect_ukey() function with less than expected no. of arguments --\n";
-var_dump( array_intersect_ukey($array1, $array2) );
-
-// Testing array_intersect_ukey with no arguments
-echo "\n-- Testing array_intersect_ukey() function with no arguments --\n";
-var_dump( array_intersect_ukey() );
-?>
-===DONE===
---EXPECTF--
-*** Testing array_intersect_ukey() : error conditions ***
-
--- Testing array_intersect_ukey() function with more than expected no. of arguments --
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
--- Testing array_intersect_ukey() function with less than expected no. of arguments --
-
-Warning: array_intersect_ukey(): at least 3 parameters are required, 2 given in %s on line %d
-NULL
-
--- Testing array_intersect_ukey() function with no arguments --
-
-Warning: array_intersect_ukey(): at least 3 parameters are required, 0 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation10.phpt b/ext/standard/tests/array/array_intersect_ukey_variation10.phpt
deleted file mode 100644
index ca70e5e78a..0000000000
--- a/ext/standard/tests/array/array_intersect_ukey_variation10.phpt
+++ /dev/null
@@ -1,43 +0,0 @@
---TEST--
-Test array_intersect_ukey() function : usage variation - Passing class without string to callback (Handling fatal error)
---FILE--
-<?php
-/* Prototype : array array_intersect_ukey(array arr1, array arr2 [, array ...], callback key_compare_func)
- * Description: Computes the intersection of arrays using a callback function on the keys for comparison.
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_intersect_uassoc() : usage variation ***\n";
-
-//Initialise arguments
-$array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
-$array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
-$array3 = array("a"=>"green", "cyan");
-
-// Define error handler
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
- if (error_reporting() != 0) {
- // report non-silenced errors
- echo "Error: $err_no - $err_msg, $filename($linenum)\n";
- }
-}
-set_error_handler('test_error_handler');
-
-
-class classWithoutToString
-{
-}
-
-$value = new classWithoutToString();
-
-var_dump( array_intersect_ukey($array1, $array2, $value) );
-var_dump( array_intersect_ukey($array1, $array2, $array3, $value) );
-?>
-===DONE===
---EXPECTF--
-*** Testing array_intersect_uassoc() : usage variation ***
-Error: 2 - array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given, %s(%d)
-NULL
-Error: 2 - array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given, %s(%d)
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation3.phpt b/ext/standard/tests/array/array_intersect_ukey_variation3.phpt
deleted file mode 100644
index c897c51e4c..0000000000
--- a/ext/standard/tests/array/array_intersect_ukey_variation3.phpt
+++ /dev/null
@@ -1,290 +0,0 @@
---TEST--
-Test array_intersect_ukey() function : usage variation - Passing unexpected values to callback argument
---FILE--
-<?php
-/* Prototype : array array_intersect_ukey(array arr1, array arr2 [, array ...], callback key_compare_func)
- * Description: Computes the intersection of arrays using a callback function on the keys for comparison.
- * Source code: ext/standard/array.c
- */
-
-echo "*** Testing array_intersect_ukey() : usage variation ***\n";
-
-//Initialise arguments
-$array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
-$array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
-$array3 = array('green' => 5, 'cyan' => 8);
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-//resource variable
-$fp = fopen(__FILE__, "r");
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -12345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-
- // resource data
- 'resource var' => $fp,
-);
-
-// loop through each element of the array for key_compare_func
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_intersect_ukey($array1, $array2, $value) );
- var_dump( array_intersect_ukey($array1, $array2, $array3, $value) );
-};
-
-fclose($fp);
-?>
-===DONE===
---EXPECTF--
-*** Testing array_intersect_ukey() : usage variation ***
-
---int 0--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 1--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int 12345--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---int -12345--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 10.5--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -10.5--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---float .5--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---empty array--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
---int indexed array--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
---associative array--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, first array member is not a valid class name or object in %s on line %d
-NULL
-
---nested arrays--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, array must have exactly two members in %s on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase null--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase true--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---lowercase false--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---undefined var--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---unset var--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-
---resource var--
-
-Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string given in %s on line %d
-NULL
-
-Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_key_exists_error.phpt b/ext/standard/tests/array/array_key_exists_error.phpt
deleted file mode 100644
index 410ed7fa50..0000000000
--- a/ext/standard/tests/array/array_key_exists_error.phpt
+++ /dev/null
@@ -1,43 +0,0 @@
---TEST--
-Test array_key_exists() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : bool array_key_exists(mixed $key, array $search)
- * Description: Checks if the given key or index exists in the array
- * Source code: ext/standard/array.c
- * Alias to functions: key_exists
- */
-
-/*
- * Pass incorrect number of arguments to array_key_exists() to test behaviour
- */
-
-echo "*** Testing array_key_exists() : error conditions ***\n";
-
-//Test array_key_exists with one more than the expected number of arguments
-echo "\n-- Testing array_key_exists() function with more than expected no. of arguments --\n";
-$key = 1;
-$search = array(1, 2);
-$extra_arg = 10;
-var_dump( array_key_exists($key, $search, $extra_arg) );
-
-// Testing array_key_exists with one less than the expected number of arguments
-echo "\n-- Testing array_key_exists() function with less than expected no. of arguments --\n";
-$key = 1;
-var_dump( array_key_exists($key) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_key_exists() : error conditions ***
-
--- Testing array_key_exists() function with more than expected no. of arguments --
-
-Warning: array_key_exists() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-
--- Testing array_key_exists() function with less than expected no. of arguments --
-
-Warning: array_key_exists() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_key_first_errors.phpt b/ext/standard/tests/array/array_key_first_errors.phpt
deleted file mode 100644
index ad2c52b6a0..0000000000
--- a/ext/standard/tests/array/array_key_first_errors.phpt
+++ /dev/null
@@ -1,52 +0,0 @@
---TEST--
-Test array_key_first() function (errors)
---FILE--
-<?php
-
-$empty_array = array();
-$number = 5;
-$str = "abc";
-
-/* Various combinations of arrays to be used for the test */
-$mixed_array = array(
- array( 1,2,3,4,5,6,7,8,9 ),
- array( "One", "_Two", "Three", "Four", "Five" )
-);
-
-/* Testing Error Conditions */
-echo "\n*** Testing Error Conditions ***\n";
-
-/* Zero argument */
-var_dump( array_key_first() );
-
-/* Scalar argument */
-var_dump( array_key_first($number) );
-
-/* String argument */
-var_dump( array_key_first($str) );
-
-/* Invalid Number of arguments */
-var_dump( array_key_first($mixed_array[0],$mixed_array[1]) );
-
-/* Empty Array as argument */
-var_dump( array_key_first($empty_array) );
-
-echo"\nDone";
-?>
---EXPECTF--
-*** Testing Error Conditions ***
-
-Warning: array_key_first() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
-Warning: array_key_first() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
-Warning: array_key_first() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
-Warning: array_key_first() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-NULL
-
-Done
diff --git a/ext/standard/tests/array/array_key_last_errors.phpt b/ext/standard/tests/array/array_key_last_errors.phpt
deleted file mode 100644
index 88f8c9ffdd..0000000000
--- a/ext/standard/tests/array/array_key_last_errors.phpt
+++ /dev/null
@@ -1,52 +0,0 @@
---TEST--
-Test array_key_last() function (errors)
---FILE--
-<?php
-
-$empty_array = array();
-$number = 5;
-$str = "abc";
-
-/* Various combinations of arrays to be used for the test */
-$mixed_array = array(
- array( 1,2,3,4,5,6,7,8,9 ),
- array( "One", "_Two", "Three", "Four", "Five" )
-);
-
-/* Testing Error Conditions */
-echo "\n*** Testing Error Conditions ***\n";
-
-/* Zero argument */
-var_dump( array_key_last() );
-
-/* Scalar argument */
-var_dump( array_key_last($number) );
-
-/* String argument */
-var_dump( array_key_last($str) );
-
-/* Invalid Number of arguments */
-var_dump( array_key_last($mixed_array[0],$mixed_array[1]) );
-
-/* Empty Array as argument */
-var_dump( array_key_last($empty_array) );
-
-echo"\nDone";
-?>
---EXPECTF--
-*** Testing Error Conditions ***
-
-Warning: array_key_last() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
-Warning: array_key_last() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
-Warning: array_key_last() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
-Warning: array_key_last() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-NULL
-
-Done
diff --git a/ext/standard/tests/array/array_merge_error.phpt b/ext/standard/tests/array/array_merge_error.phpt
deleted file mode 100644
index 38e672e32c..0000000000
--- a/ext/standard/tests/array/array_merge_error.phpt
+++ /dev/null
@@ -1,30 +0,0 @@
---TEST--
-Test array_merge() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
- * Description: Merges elements from passed arrays into one array
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to array_merge() to test behaviour
- */
-
-echo "*** Testing array_merge() : error conditions ***\n";
-
-// Testing array_merge with zero arguments
-echo "\n-- Testing array_merge() function with less than expected no. of arguments --\n";
-$arr1 = array(1, 2);
-var_dump( array_merge() );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_merge() : error conditions ***
-
--- Testing array_merge() function with less than expected no. of arguments --
-
-Warning: array_merge() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_pop_errors.phpt b/ext/standard/tests/array/array_pop_errors.phpt
deleted file mode 100644
index fd6147731c..0000000000
--- a/ext/standard/tests/array/array_pop_errors.phpt
+++ /dev/null
@@ -1,64 +0,0 @@
---TEST--
-Test array_pop() function (errors)
---FILE--
-<?php
-
-$empty_array = array();
-$number = 5;
-$str = "abc";
-
-
-/* Various combinations of arrays to be used for the test */
-$mixed_array = array(
- array(),
- array( 1,2,3,4,5,6,7,8,9 ),
- array( "One", "_Two", "Three", "Four", "Five" ),
- array( 6, "six", 7, "seven", 8, "eight", 9, "nine" ),
- array( "a" => "aaa", "A" => "AAA", "c" => "ccc", "d" => "ddd", "e" => "eee" ),
- array( "1" => "one", "2" => "two", "3" => "three", "4" => "four", "5" => "five" ),
- array( 1 => "one", 2 => "two", 3 => 7, 4 => "four", 5 => "five" ),
- array( "f" => "fff", "1" => "one", 4 => 6, "" => "blank", 2.4 => "float", "F" => "FFF",
- "blank" => "", 3.7 => 3.7, 5.4 => 7, 6 => 8.6, '5' => "Five", "4name" => "jonny", "a" => NULL, NULL => 3 ),
- array( 12, "name", 'age', '45' ),
- array( array("oNe", "tWo", 4), array(10, 20, 30, 40, 50), array() ),
- array( "one" => 1, "one" => 2, "three" => 3, 3, 4, 3 => 33, 4 => 44, 5, 6,
- 5.4 => 54, 5.7 => 57, "5.4" => 554, "5.7" => 557 )
-);
-
-/* Testing Error Conditions */
-echo "\n*** Testing Error Conditions ***\n";
-
-/* Zero argument */
-var_dump( array_pop() );
-
-/* Scalar argument */
-var_dump( array_pop($number) );
-
-/* String argument */
-var_dump( array_pop($str) );
-
-/* Invalid Number of arguments */
-var_dump( array_pop($mixed_array[1],$mixed_array[2]) );
-
-/* Empty Array as argument */
-var_dump( array_pop($empty_array) );
-
-echo"\nDone";
-?>
---EXPECTF--
-*** Testing Error Conditions ***
-
-Warning: array_pop() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
-Warning: array_pop() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
-Warning: array_pop() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
-Warning: array_pop() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-NULL
-
-Done
diff --git a/ext/standard/tests/array/array_product_error.phpt b/ext/standard/tests/array/array_product_error.phpt
deleted file mode 100644
index 3ef23b9210..0000000000
--- a/ext/standard/tests/array/array_product_error.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-Test array_product() function : error conditions
---FILE--
-<?php
-/* Prototype : mixed array_product(array input)
- * Description: Returns the product of the array entries
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_product() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_product() function with Zero arguments --\n";
-var_dump( array_product() );
-
-//Test array_product with one more than the expected number of arguments
-echo "\n-- Testing array_product() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$extra_arg = 10;
-var_dump( array_product($input, $extra_arg) );
-
-echo "\n-- Testing array_product() function incorrect argument type --\n";
-var_dump( array_product("bob") );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_product() : error conditions ***
-
--- Testing array_product() function with Zero arguments --
-
-Warning: array_product() expects exactly 1 parameter, 0 given in %sarray_product_error.php on line %d
-NULL
-
--- Testing array_product() function with more than expected no. of arguments --
-
-Warning: array_product() expects exactly 1 parameter, 2 given in %sarray_product_error.php on line %d
-NULL
-
--- Testing array_product() function incorrect argument type --
-
-Warning: array_product() expects parameter 1 to be array, string given in %sarray_product_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_push_error1.phpt b/ext/standard/tests/array/array_push_error1.phpt
deleted file mode 100644
index 163c0984eb..0000000000
--- a/ext/standard/tests/array/array_push_error1.phpt
+++ /dev/null
@@ -1,29 +0,0 @@
---TEST--
-Test array_push() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : int array_push(array $stack[, mixed $...])
- * Description: Pushes elements onto the end of the array
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to array_push() to test behaviour
- */
-
-echo "*** Testing array_push() : error conditions ***\n";
-
-// Testing array_push with one less than the expected number of arguments
-echo "\n-- Testing array_push() function with less than expected no. of arguments --\n";
-var_dump( array_push() );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_push() : error conditions ***
-
--- Testing array_push() function with less than expected no. of arguments --
-
-Warning: array_push() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_rand_error.phpt b/ext/standard/tests/array/array_rand_error.phpt
deleted file mode 100644
index c82f81584a..0000000000
--- a/ext/standard/tests/array/array_rand_error.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-Test array_rand() function : error conditions
---FILE--
-<?php
-/* Prototype : mixed array_rand(array input [, int num_req])
- * Description: Return key/keys for random entry/entries in the array
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing array_rand() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_rand() function with Zero arguments --\n";
-var_dump( array_rand() );
-
-//Test array_rand with one more than the expected number of arguments
-echo "\n-- Testing array_rand() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$num_req = 10;
-$extra_arg = 10;
-var_dump( array_rand($input,$num_req, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_rand() : error conditions ***
-
--- Testing array_rand() function with Zero arguments --
-
-Warning: array_rand() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing array_rand() function with more than expected no. of arguments --
-
-Warning: array_rand() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_reduce_error.phpt b/ext/standard/tests/array/array_reduce_error.phpt
deleted file mode 100644
index 88070dee55..0000000000
--- a/ext/standard/tests/array/array_reduce_error.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-Test array_reduce() function : error conditions
---FILE--
-<?php
-/* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
- * Description: Iteratively reduce the array to a single value via the callback.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_reduce() : error conditions ***\n";
-
-
-//Test array_reduce with one more than the expected number of arguments
-echo "\n-- Testing array_reduce() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$callback = 1;
-$initial = 10;
-$extra_arg = 10;
-var_dump( array_reduce($input, $callback, $initial, $extra_arg) );
-
-// Testing array_reduce with one less than the expected number of arguments
-echo "\n-- Testing array_reduce() function with less than expected no. of arguments --\n";
-$input = array(1, 2);
-var_dump( array_reduce($input) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_reduce() : error conditions ***
-
--- Testing array_reduce() function with more than expected no. of arguments --
-
-Warning: array_reduce() expects at most 3 parameters, 4 given in %sarray_reduce_error.php on line %d
-NULL
-
--- Testing array_reduce() function with less than expected no. of arguments --
-
-Warning: array_reduce() expects at least 2 parameters, 1 given in %sarray_reduce_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_reduce_variation2.phpt b/ext/standard/tests/array/array_reduce_variation2.phpt
deleted file mode 100644
index e8f24199c6..0000000000
--- a/ext/standard/tests/array/array_reduce_variation2.phpt
+++ /dev/null
@@ -1,35 +0,0 @@
---TEST--
-Test array_reduce() function : variation - invalid parameters
---FILE--
-<?php
-/* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
- * Description: Iteratively reduce the array to a single value via the callback.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_reduce() : variation - invalid parameters ***\n";
-
-
-$array = array(1);
-
-var_dump(array_reduce($array, "bogusbogus"));
-
-var_dump(array_reduce("bogusarray", "max"));
-
-var_dump(array_reduce(new stdClass(), "max"));
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_reduce() : variation - invalid parameters ***
-
-Warning: array_reduce() expects parameter 2 to be a valid callback, function 'bogusbogus' not found or invalid function name in %sarray_reduce_variation2.php on line %d
-NULL
-
-Warning: array_reduce() expects parameter 1 to be array, string given in %sarray_reduce_variation2.php on line %d
-NULL
-
-Warning: array_reduce() expects parameter 1 to be array, object given in %sarray_reduce_variation2.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_reverse_error.phpt b/ext/standard/tests/array/array_reverse_error.phpt
deleted file mode 100644
index bfa9c5130b..0000000000
--- a/ext/standard/tests/array/array_reverse_error.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Test array_reverse() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_reverse(array $array [, bool $preserve_keys])
- * Description: Return input as a new array with the order of the entries reversed
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing array_reverse() : error conditions ***\n";
-
-// zero arguments
-echo "\n-- Testing array_reverse() function with Zero arguments --\n";
-var_dump( array_reverse() );
-
-// more than the expected number of arguments
-echo "\n-- Testing array_diff() function with more than expected no. of arguments --\n";
-$array = array(1, 2, 3, 4, 5, 6);
-$extra_arg = 10;
-var_dump( array_reverse($array, true, $extra_arg) );
-var_dump( array_reverse($array, false, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_reverse() : error conditions ***
-
--- Testing array_reverse() function with Zero arguments --
-
-Warning: array_reverse() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing array_diff() function with more than expected no. of arguments --
-
-Warning: array_reverse() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-
-Warning: array_reverse() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_shift_error.phpt b/ext/standard/tests/array/array_shift_error.phpt
deleted file mode 100644
index 108060f9b1..0000000000
--- a/ext/standard/tests/array/array_shift_error.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Test array_shift() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : mixed array_shift(array &$stack)
- * Description: Pops an element off the beginning of the array
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to array_shift() to test behaviour
- */
-
-echo "*** Testing array_shift() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_shift() function with Zero arguments --\n";
-var_dump( array_shift() );
-
-//Test array_shift with one more than the expected number of arguments
-echo "\n-- Testing array_shift() function with more than expected no. of arguments --\n";
-$stack = array(1, 2);
-$extra_arg = 10;
-var_dump( array_shift($stack, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_shift() : error conditions ***
-
--- Testing array_shift() function with Zero arguments --
-
-Warning: array_shift() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing array_shift() function with more than expected no. of arguments --
-
-Warning: array_shift() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_slice_error.phpt b/ext/standard/tests/array/array_slice_error.phpt
deleted file mode 100644
index ff3156a0cc..0000000000
--- a/ext/standard/tests/array/array_slice_error.phpt
+++ /dev/null
@@ -1,43 +0,0 @@
---TEST--
-Test array_slice() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
- * Description: Returns elements specified by offset and length
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass an incorrect number of arguments to array_slice() to test behaviour
- */
-
-echo "*** Testing array_slice() : error conditions ***\n";
-
-//Test array_slice with one more than the expected number of arguments
-echo "\n-- Testing array_slice() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$offset = 10;
-$length = 10;
-$preserve_keys = true;
-$extra_arg = 10;
-var_dump( array_slice($input, $offset, $length, $preserve_keys, $extra_arg) );
-
-// Testing array_slice with one less than the expected number of arguments
-echo "\n-- Testing array_slice() function with less than expected no. of arguments --\n";
-var_dump( array_slice($input) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_slice() : error conditions ***
-
--- Testing array_slice() function with more than expected no. of arguments --
-
-Warning: array_slice() expects at most 4 parameters, 5 given in %s on line %d
-NULL
-
--- Testing array_slice() function with less than expected no. of arguments --
-
-Warning: array_slice() expects at least 2 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_slice_variation11.phpt b/ext/standard/tests/array/array_slice_variation11.phpt
deleted file mode 100644
index 93805ac026..0000000000
--- a/ext/standard/tests/array/array_slice_variation11.phpt
+++ /dev/null
@@ -1,226 +0,0 @@
---TEST--
-Test array_slice() function : usage variations - Pass different data types as $input arg
---FILE--
-<?php
-/* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
- * Description: Returns elements specified by offset and length
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass different arguments as $input argument to array_slice() to test behaviour
- */
-
-echo "*** Testing array_slice() : usage variations ***\n";
-
-// Initialise function arguments not being substituted
-$offset = 2;
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// get a class
-class classA
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// get a resource variable
-$fp = fopen(__FILE__, "r");
-
-// unexpected values to be passed to $input argument
-$inputs = array(
-
- // int data
-/*1*/ 0,
- 1,
- 12345,
- -2345,
-
- // float data
-/*5*/ 10.5,
- -10.5,
- 12.3456789000e10,
- 12.3456789000E-10,
- .5,
-
- // null data
-/*10*/ NULL,
- null,
-
- // boolean data
-/*12*/ true,
- false,
- TRUE,
- FALSE,
-
- // empty data
-/*16*/ "",
- '',
- array(),
-
- // string data
-/*19*/ "string",
- 'string',
- $heredoc,
-
- // object data
-/*22*/ new classA(),
-
- // undefined data
-/*23*/ @$undefined_var,
-
- // unset data
-/*24*/ @$unset_var,
-
- // resource variable
-/*25*/ $fp
-);
-
-// loop through each element of $inputs to check the behavior of array_slice()
-$iterator = 1;
-foreach($inputs as $input) {
- echo "\n-- Iteration $iterator --\n";
- var_dump( array_slice($input, $offset) );
- $iterator++;
-};
-
-fclose($fp);
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_slice() : usage variations ***
-
--- Iteration 1 --
-
-Warning: array_slice() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
--- Iteration 2 --
-
-Warning: array_slice() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
--- Iteration 3 --
-
-Warning: array_slice() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
--- Iteration 4 --
-
-Warning: array_slice() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
--- Iteration 5 --
-
-Warning: array_slice() expects parameter 1 to be array, float given in %s on line %d
-NULL
-
--- Iteration 6 --
-
-Warning: array_slice() expects parameter 1 to be array, float given in %s on line %d
-NULL
-
--- Iteration 7 --
-
-Warning: array_slice() expects parameter 1 to be array, float given in %s on line %d
-NULL
-
--- Iteration 8 --
-
-Warning: array_slice() expects parameter 1 to be array, float given in %s on line %d
-NULL
-
--- Iteration 9 --
-
-Warning: array_slice() expects parameter 1 to be array, float given in %s on line %d
-NULL
-
--- Iteration 10 --
-
-Warning: array_slice() expects parameter 1 to be array, null given in %s on line %d
-NULL
-
--- Iteration 11 --
-
-Warning: array_slice() expects parameter 1 to be array, null given in %s on line %d
-NULL
-
--- Iteration 12 --
-
-Warning: array_slice() expects parameter 1 to be array, bool given in %s on line %d
-NULL
-
--- Iteration 13 --
-
-Warning: array_slice() expects parameter 1 to be array, bool given in %s on line %d
-NULL
-
--- Iteration 14 --
-
-Warning: array_slice() expects parameter 1 to be array, bool given in %s on line %d
-NULL
-
--- Iteration 15 --
-
-Warning: array_slice() expects parameter 1 to be array, bool given in %s on line %d
-NULL
-
--- Iteration 16 --
-
-Warning: array_slice() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
--- Iteration 17 --
-
-Warning: array_slice() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
--- Iteration 18 --
-array(0) {
-}
-
--- Iteration 19 --
-
-Warning: array_slice() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
--- Iteration 20 --
-
-Warning: array_slice() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
--- Iteration 21 --
-
-Warning: array_slice() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
--- Iteration 22 --
-
-Warning: array_slice() expects parameter 1 to be array, object given in %s on line %d
-NULL
-
--- Iteration 23 --
-
-Warning: array_slice() expects parameter 1 to be array, null given in %s on line %d
-NULL
-
--- Iteration 24 --
-
-Warning: array_slice() expects parameter 1 to be array, null given in %s on line %d
-NULL
-
--- Iteration 25 --
-
-Warning: array_slice() expects parameter 1 to be array, resource given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_slice_variation3.phpt b/ext/standard/tests/array/array_slice_variation3.phpt
deleted file mode 100644
index 6cec0bc4ba..0000000000
--- a/ext/standard/tests/array/array_slice_variation3.phpt
+++ /dev/null
@@ -1,212 +0,0 @@
---TEST--
-Test array_slice() function : usage variations - Pass different data types as $length arg
---SKIPIF--
-<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
---FILE--
-<?php
-/* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
- * Description: Returns elements specified by offset and length
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass different data types as $length argument to array_slice to test behaviour
- */
-
-echo "*** Testing array_slice() : usage variations ***\n";
-
-// Initialise function arguments not being substituted
-$input_array = array('one' => 1, 2, 'three' => 3, 4);
-$offset = 2;
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// unexpected values to be passed to $length argument
-$inputs = array(
-
- // int data
-/*1*/ 0,
- 1,
- 12345,
- -2345,
-
- // float data
-/*5*/ 10.5,
- -10.5,
- 12.3456789000e10,
- 12.3456789000E-10,
- .5,
-
- // null data
-/*10*/ NULL,
- null,
-
- // boolean data
-/*12*/ true,
- false,
- TRUE,
- FALSE,
-
- // empty data
-/*16*/ "",
- '',
- array(),
-
- // string data
-/*19*/ "string",
- 'string',
- $heredoc,
-
- // undefined data
-/*22*/ @$undefined_var,
-
- // unset data
-/*23*/ @$unset_var,
-);
-
-// loop through each element of $inputs to check the behavior of array_slice
-$iterator = 1;
-foreach($inputs as $input) {
- echo "\n-- Iteration $iterator --\n";
- var_dump( array_slice($input_array, $offset, $input) );
- $iterator++;
-};
-
-echo "Done";
-?>
---EXPECT--
-*** Testing array_slice() : usage variations ***
-
--- Iteration 1 --
-array(0) {
-}
-
--- Iteration 2 --
-array(1) {
- ["three"]=>
- int(3)
-}
-
--- Iteration 3 --
-array(2) {
- ["three"]=>
- int(3)
- [0]=>
- int(4)
-}
-
--- Iteration 4 --
-array(0) {
-}
-
--- Iteration 5 --
-array(2) {
- ["three"]=>
- int(3)
- [0]=>
- int(4)
-}
-
--- Iteration 6 --
-array(0) {
-}
-
--- Iteration 7 --
-array(2) {
- ["three"]=>
- int(3)
- [0]=>
- int(4)
-}
-
--- Iteration 8 --
-array(0) {
-}
-
--- Iteration 9 --
-array(0) {
-}
-
--- Iteration 10 --
-array(2) {
- ["three"]=>
- int(3)
- [0]=>
- int(4)
-}
-
--- Iteration 11 --
-array(2) {
- ["three"]=>
- int(3)
- [0]=>
- int(4)
-}
-
--- Iteration 12 --
-array(1) {
- ["three"]=>
- int(3)
-}
-
--- Iteration 13 --
-array(0) {
-}
-
--- Iteration 14 --
-array(1) {
- ["three"]=>
- int(3)
-}
-
--- Iteration 15 --
-array(0) {
-}
-
--- Iteration 16 --
-array(0) {
-}
-
--- Iteration 17 --
-array(0) {
-}
-
--- Iteration 18 --
-array(0) {
-}
-
--- Iteration 19 --
-array(0) {
-}
-
--- Iteration 20 --
-array(0) {
-}
-
--- Iteration 21 --
-array(0) {
-}
-
--- Iteration 22 --
-array(2) {
- ["three"]=>
- int(3)
- [0]=>
- int(4)
-}
-
--- Iteration 23 --
-array(2) {
- ["three"]=>
- int(3)
- [0]=>
- int(4)
-}
-Done
diff --git a/ext/standard/tests/array/array_splice_errors.phpt b/ext/standard/tests/array/array_splice_errors.phpt
deleted file mode 100644
index 135a1ed0db..0000000000
--- a/ext/standard/tests/array/array_splice_errors.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Test array_splice() function : error conditions
---FILE--
-<?php
-/*
- * proto array array_splice(array input, int offset [, int length [, array replacement]])
- * Function is implemented in ext/standard/array.c
-*/
-
-echo "\n*** Testing error conditions of array_splice() ***\n";
-
-$int=1;
-$array=array(1,2);
-var_dump (array_splice());
-var_dump (array_splice($int));
-var_dump (array_splice($array));
-var_dump (array_splice($int,$int));
-$obj= new stdclass;
-var_dump (array_splice($obj,0,1));
-echo "Done\n";
-
-?>
---EXPECTF--
-*** Testing error conditions of array_splice() ***
-
-Warning: array_splice() expects at least 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: array_splice() expects at least 2 parameters, 1 given in %s on line %d
-NULL
-
-Warning: array_splice() expects at least 2 parameters, 1 given in %s on line %d
-NULL
-
-Warning: array_splice() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
-Warning: array_splice() expects parameter 1 to be array, object given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_splice_variation2.phpt b/ext/standard/tests/array/array_splice_variation2.phpt
deleted file mode 100644
index 3cdd723770..0000000000
--- a/ext/standard/tests/array/array_splice_variation2.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-Test array_splice() function : usage variations - additional parameters
---FILE--
-<?php
-/*
- * proto array array_splice(array input, int offset [, int length [, array replacement]])
- * Function is implemented in ext/standard/array.c
-*/
-
-$array=array(0,1,2);
-var_dump (array_splice($array,1,1,3,4,5,6,7,8,9));
-var_dump ($array);
-echo "Done\n";
-?>
---EXPECTF--
-Warning: array_splice() expects at most 4 parameters, 10 given in %s on line %d
-NULL
-array(3) {
- [0]=>
- int(0)
- [1]=>
- int(1)
- [2]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/array_sum_error.phpt b/ext/standard/tests/array/array_sum_error.phpt
deleted file mode 100644
index 0433fca4dc..0000000000
--- a/ext/standard/tests/array/array_sum_error.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-Test array_sum() function : error conditions
---FILE--
-<?php
-/* Prototype : mixed array_sum(array &input)
- * Description: Returns the sum of the array entries
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing array_sum() : error conditions ***\n";
-
-// Zero arguments
-echo "-- Testing array_sum() function with zero arguments --\n";
-var_dump( array_sum() );
-
-// One more than the expected number of arguments
-echo "-- Testing array_sum() function with more than expected no. of arguments --\n";
-$input = array(1, 2, 3, 4);
-$extra_arg = 10;
-var_dump( array_sum($input, $extra_arg) );
-
-echo "Done"
-?>
---EXPECTF--
-*** Testing array_sum() : error conditions ***
--- Testing array_sum() function with zero arguments --
-
-Warning: array_sum() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
--- Testing array_sum() function with more than expected no. of arguments --
-
-Warning: array_sum() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_udiff_assoc_error.phpt b/ext/standard/tests/array/array_udiff_assoc_error.phpt
deleted file mode 100644
index eb66d1eb68..0000000000
--- a/ext/standard/tests/array/array_udiff_assoc_error.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Test array_udiff_assoc() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
- * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_udiff_assoc() : error conditions ***\n";
-
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-$extra_arg = 10;
-include('compare_function.inc');
-$key_comp_func = 'compare_function';
-
-
-//Test array_udiff_assoc with one more than the expected number of arguments
-echo "\n-- Testing array_udiff_assoc() function with more than expected no. of arguments --\n";
-var_dump( array_udiff_assoc($arr1, $arr2, $key_comp_func, $extra_arg) );
-
-// Testing array_udiff_assoc with one less than the expected number of arguments
-echo "\n-- Testing array_udiff_assoc() function with less than expected no. of arguments --\n";
-var_dump( array_udiff_assoc($arr1, $arr2) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_udiff_assoc() : error conditions ***
-
--- Testing array_udiff_assoc() function with more than expected no. of arguments --
-
-Warning: array_udiff_assoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_assoc_error.php on line %d
-NULL
-
--- Testing array_udiff_assoc() function with less than expected no. of arguments --
-
-Warning: array_udiff_assoc(): at least 3 parameters are required, 2 given in %sarray_udiff_assoc_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_udiff_assoc_variation3.phpt b/ext/standard/tests/array/array_udiff_assoc_variation3.phpt
deleted file mode 100644
index 0f4da2c29d..0000000000
--- a/ext/standard/tests/array/array_udiff_assoc_variation3.phpt
+++ /dev/null
@@ -1,251 +0,0 @@
---TEST--
-Test array_udiff_assoc() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)
- * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_udiff_assoc() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for key_comp_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_udiff_assoc($arr1, $arr2, $value) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_udiff_assoc() : usage variation ***
-
---int 0--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---int 1--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---float .5--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---empty array--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---associative array--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-
---unset var--
-
-Warning: array_udiff_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_assoc_variation3.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_udiff_error.phpt b/ext/standard/tests/array/array_udiff_error.phpt
deleted file mode 100644
index 7eb7e3b068..0000000000
--- a/ext/standard/tests/array/array_udiff_error.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Test array_udiff() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
- * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_udiff() : error conditions ***\n";
-
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-include('compare_function.inc');
-$data_comp_func = 'compare_function';
-$extra_arg = 10;
-
-
-//Test array_udiff with one more than the expected number of arguments
-echo "\n-- Testing array_udiff() function with more than expected no. of arguments --\n";
-var_dump( array_udiff($arr1, $arr2, $data_comp_func, $extra_arg) );
-
-// Testing array_udiff with one less than the expected number of arguments
-echo "\n-- Testing array_udiff() function with less than expected no. of arguments --\n";
-var_dump( array_udiff($arr1, $arr2) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_udiff() : error conditions ***
-
--- Testing array_udiff() function with more than expected no. of arguments --
-
-Warning: array_udiff() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_error.php on line %d
-NULL
-
--- Testing array_udiff() function with less than expected no. of arguments --
-
-Warning: array_udiff(): at least 3 parameters are required, 2 given in %sarray_udiff_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_udiff_uassoc_error.phpt b/ext/standard/tests/array/array_udiff_uassoc_error.phpt
deleted file mode 100644
index 76dbf16dba..0000000000
--- a/ext/standard/tests/array/array_udiff_uassoc_error.phpt
+++ /dev/null
@@ -1,44 +0,0 @@
---TEST--
-Test array_udiff_uassoc() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
- * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_udiff_uassoc() : error conditions ***\n";
-
-
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-include('compare_function.inc');
-$data_comp_func = 'compare_function';
-$key_comp_func = 'compare_function';
-$extra_arg = 10;
-
-//Test array_udiff_uassoc with one more than the expected number of arguments
-echo "\n-- Testing array_udiff_uassoc() function with more than expected no. of arguments --\n";
-var_dump( array_udiff_uassoc($arr1, $arr2, $data_comp_func, $key_comp_func, $extra_arg) );
-
-// Testing array_udiff_uassoc with one less than the expected number of arguments
-echo "\n-- Testing array_udiff_uassoc() function with less than expected no. of arguments --\n";
-var_dump( array_udiff_uassoc($arr1, $arr2, $data_comp_func) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_udiff_uassoc() : error conditions ***
-
--- Testing array_udiff_uassoc() function with more than expected no. of arguments --
-
-Warning: array_udiff_uassoc() expects parameter 5 to be a valid callback, no array or string given in %sarray_udiff_uassoc_error.php on line %d
-NULL
-
--- Testing array_udiff_uassoc() function with less than expected no. of arguments --
-
-Warning: array_udiff_uassoc(): at least 4 parameters are required, 3 given in %sarray_udiff_uassoc_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation3.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation3.phpt
deleted file mode 100644
index bf19c533cb..0000000000
--- a/ext/standard/tests/array/array_udiff_uassoc_variation3.phpt
+++ /dev/null
@@ -1,254 +0,0 @@
---TEST--
-Test array_udiff_uassoc() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
- * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_udiff_uassoc() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-include('compare_function.inc');
-$key_comp_func = 'compare_function';
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for data_comp_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_udiff_uassoc($arr1, $arr2, $value, $key_comp_func) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_udiff_uassoc() : usage variation ***
-
---int 0--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---int 1--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---float .5--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---empty array--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---associative array--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-
---unset var--
-
-Warning: array_udiff_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation3.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_udiff_uassoc_variation4.phpt b/ext/standard/tests/array/array_udiff_uassoc_variation4.phpt
deleted file mode 100644
index 7be89f4c6f..0000000000
--- a/ext/standard/tests/array/array_udiff_uassoc_variation4.phpt
+++ /dev/null
@@ -1,254 +0,0 @@
---TEST--
-Test array_udiff_uassoc() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
- * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_udiff_uassoc() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-include('compare_function.inc');
-$data_comp_func = 'compare_function';
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for key_comp_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_udiff_uassoc($arr1, $arr2, $data_comp_func, $value) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_udiff_uassoc() : usage variation ***
-
---int 0--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---int 1--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---float .5--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---empty array--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---associative array--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, first array member is not a valid class name or object in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-
---unset var--
-
-Warning: array_udiff_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_udiff_uassoc_variation4.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_udiff_variation3.phpt b/ext/standard/tests/array/array_udiff_variation3.phpt
deleted file mode 100644
index 294686b22a..0000000000
--- a/ext/standard/tests/array/array_udiff_variation3.phpt
+++ /dev/null
@@ -1,251 +0,0 @@
---TEST--
-Test array_udiff() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)
- * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_udiff() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for data_comp_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_udiff($arr1, $arr2, $value) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_udiff() : usage variation ***
-
---int 0--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---int 1--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---float .5--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---empty array--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_variation3.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_variation3.php on line %d
-NULL
-
---associative array--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %sarray_udiff_variation3.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_udiff_variation3.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_variation3.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_udiff_variation3.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_variation3.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_udiff_variation3.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_udiff_variation3.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_udiff_variation3.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-
---unset var--
-
-Warning: array_udiff() expects parameter 3 to be a valid callback, no array or string given in %sarray_udiff_variation3.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_uintersect_assoc_error.phpt b/ext/standard/tests/array/array_uintersect_assoc_error.phpt
deleted file mode 100644
index d27f9f7606..0000000000
--- a/ext/standard/tests/array/array_uintersect_assoc_error.phpt
+++ /dev/null
@@ -1,43 +0,0 @@
---TEST--
-Test array_uintersect_assoc() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
- * Description: U
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_uintersect_assoc() : error conditions ***\n";
-
-//Test array_uintersect_assoc with one more than the expected number of arguments
-echo "\n-- Testing array_uintersect_assoc() function with more than expected no. of arguments --\n";
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-include('compare_function.inc');
-$data_compare_function = 'compare_function';
-
-$extra_arg = 10;
-var_dump( array_uintersect_assoc($arr1, $arr2, $data_compare_function, $extra_arg) );
-
-// Testing array_uintersect_assoc with one less than the expected number of arguments
-echo "\n-- Testing array_uintersect_assoc() function with less than expected no. of arguments --\n";
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-var_dump( array_uintersect_assoc($arr1, $arr2) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_uintersect_assoc() : error conditions ***
-
--- Testing array_uintersect_assoc() function with more than expected no. of arguments --
-
-Warning: array_uintersect_assoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_assoc_error.php on line %d
-NULL
-
--- Testing array_uintersect_assoc() function with less than expected no. of arguments --
-
-Warning: array_uintersect_assoc(): at least 3 parameters are required, 2 given in %sarray_uintersect_assoc_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_uintersect_assoc_variation3.phpt b/ext/standard/tests/array/array_uintersect_assoc_variation3.phpt
deleted file mode 100644
index 29d2694ddb..0000000000
--- a/ext/standard/tests/array/array_uintersect_assoc_variation3.phpt
+++ /dev/null
@@ -1,251 +0,0 @@
---TEST--
-Test array_uintersect_assoc() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)
- * Description: U
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_uintersect_assoc() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for data_compare_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_uintersect_assoc($arr1, $arr2, $value) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_uintersect_assoc() : usage variation ***
-
---int 0--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---int 1--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---float .5--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---empty array--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---associative array--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-
---unset var--
-
-Warning: array_uintersect_assoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_assoc_variation3.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_uintersect_error.phpt b/ext/standard/tests/array/array_uintersect_error.phpt
deleted file mode 100644
index 3c7696108a..0000000000
--- a/ext/standard/tests/array/array_uintersect_error.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-Test array_uintersect() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
- * Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_uintersect() : error conditions ***\n";
-
-
-//Test array_uintersect with one more than the expected number of arguments
-echo "\n-- Testing array_uintersect() function with more than expected no. of arguments --\n";
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-include('compare_function.inc');
-$data_compare_function = 'compare_function';
-
-$extra_arg = 10;
-var_dump( array_uintersect($arr1, $arr2, $data_compare_function, $extra_arg) );
-
-// Testing array_uintersect with one less than the expected number of arguments
-echo "\n-- Testing array_uintersect() function with less than expected no. of arguments --\n";
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-var_dump( array_uintersect($arr1, $arr2) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_uintersect() : error conditions ***
-
--- Testing array_uintersect() function with more than expected no. of arguments --
-
-Warning: array_uintersect() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_error.php on line %d
-NULL
-
--- Testing array_uintersect() function with less than expected no. of arguments --
-
-Warning: array_uintersect(): at least 3 parameters are required, 2 given in %sarray_uintersect_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_error.phpt b/ext/standard/tests/array/array_uintersect_uassoc_error.phpt
deleted file mode 100644
index bdf503c9ed..0000000000
--- a/ext/standard/tests/array/array_uintersect_uassoc_error.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-Test array_uintersect_uassoc() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
- * Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_uintersect_uassoc() : error conditions ***\n";
-
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-include('compare_function.inc');
-$data_compare_func = 'compare_function';
-$key_compare_func = 'compare_function';
-
-$extra_arg = 10;
-
-
-//Test array_uintersect_uassoc with one more than the expected number of arguments
-echo "\n-- Testing array_uintersect_uassoc() function with more than expected no. of arguments --\n";
-var_dump( array_uintersect_uassoc($arr1, $arr2, $data_compare_func, $key_compare_func, $extra_arg) );
-
-// Testing array_uintersect_uassoc with one less than the expected number of arguments
-echo "\n-- Testing array_uintersect_uassoc() function with less than expected no. of arguments --\n";
-var_dump( array_uintersect_uassoc($arr1, $arr2, $data_compare_func) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_uintersect_uassoc() : error conditions ***
-
--- Testing array_uintersect_uassoc() function with more than expected no. of arguments --
-
-Warning: array_uintersect_uassoc() expects parameter 5 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_error.php on line %d
-NULL
-
--- Testing array_uintersect_uassoc() function with less than expected no. of arguments --
-
-Warning: array_uintersect_uassoc(): at least 4 parameters are required, 3 given in %sarray_uintersect_uassoc_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt
deleted file mode 100644
index 16ffec717f..0000000000
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation3.phpt
+++ /dev/null
@@ -1,254 +0,0 @@
---TEST--
-Test array_uintersect_uassoc() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
- * Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_uintersect_uassoc() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-include('compare_function.inc');
-$key_compare_func = 'compare_function';
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for data_compare_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_uintersect_uassoc($arr1, $arr2, $value, $key_compare_func) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_uintersect_uassoc() : usage variation ***
-
---int 0--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---int 1--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---float .5--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---empty array--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---associative array--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-
---unset var--
-
-Warning: array_uintersect_uassoc() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation3.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt b/ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt
deleted file mode 100644
index ce7eb49a64..0000000000
--- a/ext/standard/tests/array/array_uintersect_uassoc_variation4.phpt
+++ /dev/null
@@ -1,254 +0,0 @@
---TEST--
-Test array_uintersect_uassoc() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)
- * Description: Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_uintersect_uassoc() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-include('compare_function.inc');
-$data_compare_func = 'compare_function';
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for key_compare_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_uintersect_uassoc($arr1, $arr2, $data_compare_func, $value) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_uintersect_uassoc() : usage variation ***
-
---int 0--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---int 1--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---float .5--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---empty array--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---associative array--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, first array member is not a valid class name or object in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-
---unset var--
-
-Warning: array_uintersect_uassoc() expects parameter 4 to be a valid callback, no array or string given in %sarray_uintersect_uassoc_variation4.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_uintersect_variation3.phpt b/ext/standard/tests/array/array_uintersect_variation3.phpt
deleted file mode 100644
index a4f670addb..0000000000
--- a/ext/standard/tests/array/array_uintersect_variation3.phpt
+++ /dev/null
@@ -1,251 +0,0 @@
---TEST--
-Test array_uintersect() function : usage variation
---FILE--
-<?php
-/* Prototype : array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)
- * Description: Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback.
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing array_uintersect() : usage variation ***\n";
-
-// Initialise function arguments not being substituted (if any)
-$arr1 = array(1, 2);
-$arr2 = array(1, 2);
-
-//get an unset variable
-$unset_var = 10;
-unset ($unset_var);
-
-// define some classes
-class classWithToString
-{
- public function __toString() {
- return "Class A object";
- }
-}
-
-class classWithoutToString
-{
-}
-
-// heredoc string
-$heredoc = <<<EOT
-hello world
-EOT;
-
-// add arrays
-$index_array = array (1, 2, 3);
-$assoc_array = array ('one' => 1, 'two' => 2);
-
-//array of values to iterate over
-$inputs = array(
-
- // int data
- 'int 0' => 0,
- 'int 1' => 1,
- 'int 12345' => 12345,
- 'int -12345' => -2345,
-
- // float data
- 'float 10.5' => 10.5,
- 'float -10.5' => -10.5,
- 'float 12.3456789000e10' => 12.3456789000e10,
- 'float -12.3456789000e10' => -12.3456789000e10,
- 'float .5' => .5,
-
- // array data
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
-
- // null data
- 'uppercase NULL' => NULL,
- 'lowercase null' => null,
-
- // boolean data
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
-
- // empty data
- 'empty string DQ' => "",
- 'empty string SQ' => '',
-
- // string data
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
-
- // object data
- 'instance of classWithToString' => new classWithToString(),
- 'instance of classWithoutToString' => new classWithoutToString(),
-
- // undefined data
- 'undefined var' => @$undefined_var,
-
- // unset data
- 'unset var' => @$unset_var,
-);
-
-// loop through each element of the array for data_compare_func
-
-foreach($inputs as $key =>$value) {
- echo "\n--$key--\n";
- var_dump( array_uintersect($arr1, $arr2, $value) );
-};
-
-?>
-===DONE===
---EXPECTF--
-*** Testing array_uintersect() : usage variation ***
-
---int 0--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---int 1--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---int 12345--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---int -12345--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---float 10.5--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---float -10.5--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---float 12.3456789000e10--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---float -12.3456789000e10--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---float .5--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---empty array--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_variation3.php on line %d
-NULL
-
---int indexed array--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_variation3.php on line %d
-NULL
-
---associative array--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, first array member is not a valid class name or object in %sarray_uintersect_variation3.php on line %d
-NULL
-
---nested arrays--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, array must have exactly two members in %sarray_uintersect_variation3.php on line %d
-NULL
-
---uppercase NULL--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---lowercase null--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---lowercase true--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---lowercase false--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---uppercase TRUE--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---uppercase FALSE--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---empty string DQ--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_variation3.php on line %d
-NULL
-
---empty string SQ--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, function '' not found or invalid function name in %sarray_uintersect_variation3.php on line %d
-NULL
-
---string DQ--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_variation3.php on line %d
-NULL
-
---string SQ--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, function 'string' not found or invalid function name in %sarray_uintersect_variation3.php on line %d
-NULL
-
---mixed case string--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, function 'sTrInG' not found or invalid function name in %sarray_uintersect_variation3.php on line %d
-NULL
-
---heredoc--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, function 'hello world' not found or invalid function name in %sarray_uintersect_variation3.php on line %d
-NULL
-
---instance of classWithToString--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---instance of classWithoutToString--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---undefined var--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-
---unset var--
-
-Warning: array_uintersect() expects parameter 3 to be a valid callback, no array or string given in %sarray_uintersect_variation3.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/array_unique_error.phpt b/ext/standard/tests/array/array_unique_error.phpt
deleted file mode 100644
index 256dd63ba3..0000000000
--- a/ext/standard/tests/array/array_unique_error.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-Test array_unique() function : error conditions
---FILE--
-<?php
-/* Prototype : array array_unique(array $input)
- * Description: Removes duplicate values from array
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing array_unique() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_unique() function with zero arguments --\n";
-var_dump( array_unique() );
-
-//Test array_unique with one more than the expected number of arguments
-echo "\n-- Testing array_unique() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$extra_arg = 10;
-var_dump( array_unique($input, SORT_NUMERIC, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_unique() : error conditions ***
-
--- Testing array_unique() function with zero arguments --
-
-Warning: array_unique() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing array_unique() function with more than expected no. of arguments --
-
-Warning: array_unique() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_values_error.phpt b/ext/standard/tests/array/array_values_error.phpt
deleted file mode 100644
index d49f400805..0000000000
--- a/ext/standard/tests/array/array_values_error.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Test array_values() function : error conditions - Pass incorrect number of functions
---FILE--
-<?php
-/* Prototype : array array_values(array $input)
- * Description: Return just the values from the input array
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to array_values to test behaviour
- */
-
-echo "*** Testing array_values() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing array_values() function with Zero arguments --\n";
-var_dump( array_values() );
-
-//Test array_values with one more than the expected number of arguments
-echo "\n-- Testing array_values() function with more than expected no. of arguments --\n";
-$input = array(1, 2);
-$extra_arg = 10;
-var_dump( array_values($input, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_values() : error conditions ***
-
--- Testing array_values() function with Zero arguments --
-
-Warning: array_values() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing array_values() function with more than expected no. of arguments --
-
-Warning: array_values() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_values_errors.phpt b/ext/standard/tests/array/array_values_errors.phpt
deleted file mode 100644
index 4f723c2b3b..0000000000
--- a/ext/standard/tests/array/array_values_errors.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-Test array_values() function (errors)
---INI--
-precision=14
---FILE--
-<?php
-
-echo "\n*** Testing error conditions ***\n";
-/* Invalid number of args */
-var_dump( array_values() ); // Zero arguments
-var_dump( array_values(array(1,2,3), "") ); // No. of args > expected
-/* Invalid types */
-var_dump( array_values("") ); // Empty string
-var_dump( array_values(100) ); // Integer
-var_dump( array_values(new stdclass) ); // object
-
-echo "Done\n";
-?>
---EXPECTF--
-*** Testing error conditions ***
-
-Warning: array_values() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
-Warning: array_values() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-
-Warning: array_values() expects parameter 1 to be array, string given in %s on line %d
-NULL
-
-Warning: array_values() expects parameter 1 to be array, int given in %s on line %d
-NULL
-
-Warning: array_values() expects parameter 1 to be array, object given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_walk_error1.phpt b/ext/standard/tests/array/array_walk_error1.phpt
deleted file mode 100644
index fb77e92e8a..0000000000
--- a/ext/standard/tests/array/array_walk_error1.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Test array_walk() function : error conditions
---FILE--
-<?php
-/* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
- * Description: Apply a user function to every member of an array
- * Source code: ext/standard/array.c
-*/
-
-$input = array(1, 2);
-
-/* Prototype : callback(mixed value, mixed key, mixed user_data)
- * Parameters : value - value in key/value pair
- * key - key in key/value pair
- * user_data - extra parameter
- */
-function callback ($value, $key, $user_data) {
- echo "\ncallback() invoked \n";
-}
-
-echo "*** Testing array_walk() : error conditions ***\n";
-
-echo "-- Testing array_walk() function with zero arguments --\n";
-var_dump( array_walk() );
-
-echo "-- Testing array_walk() function with one argument --\n";
-var_dump( array_walk($input) );
-
-echo "-- Testing array_walk() function with non existent callback function --\n";
-var_dump( array_walk($input, "non_existent") );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_walk() : error conditions ***
--- Testing array_walk() function with zero arguments --
-
-Warning: array_walk() expects at least 2 parameters, 0 given in %s on line %d
-NULL
--- Testing array_walk() function with one argument --
-
-Warning: array_walk() expects at least 2 parameters, 1 given in %s on line %d
-NULL
--- Testing array_walk() function with non existent callback function --
-
-Warning: array_walk() expects parameter 2 to be a valid callback, function 'non_existent' not found or invalid function name in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/array_walk_recursive_error1.phpt b/ext/standard/tests/array/array_walk_recursive_error1.phpt
deleted file mode 100644
index b149eecbfd..0000000000
--- a/ext/standard/tests/array/array_walk_recursive_error1.phpt
+++ /dev/null
@@ -1,49 +0,0 @@
---TEST--
-Test array_walk_recursive() function : error conditions
---FILE--
-<?php
-/* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
- * Description: Apply a user function to every member of an array
- * Source code: ext/standard/array.c
-*/
-
-$input = array(1, 2);
-
-/* Prototype : callback(mixed value, mixed key, mixed user_data)
- * Parameters : value - value in key/value pair
- * key - key in key/value pair
- * user_data - extra parameter
- */
-function callback ($value, $key, $user_data) {
- echo "\ncallback() invoked \n";
-}
-
-echo "*** Testing array_walk_recursive() : error conditions ***\n";
-
-echo "-- Testing array_walk_recursive() function with zero arguments --\n";
-var_dump( array_walk_recursive() );
-
-echo "-- Testing array_walk_recursive() function with one argument --\n";
-var_dump( array_walk_recursive($input) );
-
-$input = array( array(1, 2), array(3), array(4, 5));
-echo "-- Testing array_walk_recursive() function with non existent callback function --\n";
-var_dump( array_walk_recursive($input, "non_existent") );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_walk_recursive() : error conditions ***
--- Testing array_walk_recursive() function with zero arguments --
-
-Warning: array_walk_recursive() expects at least 2 parameters, 0 given in %s on line %d
-NULL
--- Testing array_walk_recursive() function with one argument --
-
-Warning: array_walk_recursive() expects at least 2 parameters, 1 given in %s on line %d
-NULL
--- Testing array_walk_recursive() function with non existent callback function --
-
-Warning: array_walk_recursive() expects parameter 2 to be a valid callback, function 'non_existent' not found or invalid function name in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/arsort_error.phpt b/ext/standard/tests/array/arsort_error.phpt
deleted file mode 100644
index 83f0f255cb..0000000000
--- a/ext/standard/tests/array/arsort_error.phpt
+++ /dev/null
@@ -1,79 +0,0 @@
---TEST--
-Test arsort() function : error conditions
---FILE--
-<?php
-/* Prototype : bool arsort(array &array_arg [, int sort_flags])
- * Description: Sort an array
- * Source code: ext/standard/array.c
-*/
-
-/*
-* Testing arsort() function with all possible error conditions
-*/
-
-echo "*** Testing arsort() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing arsort() function with Zero arguments --\n";
-var_dump( arsort() );
-
-//Test arsort with more than the expected number of arguments
-echo "\n-- Testing arsort() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$flags = array("SORT_REGULAR" => SORT_REGULAR, "SORT_STRING" => SORT_STRING, "SORT_NUMERIC" => SORT_NUMERIC);
-$extra_arg = 10;
-
-// loop through $flag_value array and setting all possible flag values
-foreach($flags as $key => $flag){
- echo "\nSort flag = $key\n";
- var_dump( arsort($array_arg,$flag, $extra_arg) );
-
- // dump the input array to ensure that it wasn't changed
- var_dump($array_arg);
-}
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing arsort() : error conditions ***
-
--- Testing arsort() function with Zero arguments --
-
-Warning: arsort() expects at least 1 parameter, 0 given in %sarsort_error.php on line %d
-bool(false)
-
--- Testing arsort() function with more than expected no. of arguments --
-
-Sort flag = SORT_REGULAR
-
-Warning: arsort() expects at most 2 parameters, 3 given in %sarsort_error.php on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-
-Sort flag = SORT_STRING
-
-Warning: arsort() expects at most 2 parameters, 3 given in %sarsort_error.php on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-
-Sort flag = SORT_NUMERIC
-
-Warning: arsort() expects at most 2 parameters, 3 given in %sarsort_error.php on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/asort_error.phpt b/ext/standard/tests/array/asort_error.phpt
deleted file mode 100644
index 821663fa64..0000000000
--- a/ext/standard/tests/array/asort_error.phpt
+++ /dev/null
@@ -1,79 +0,0 @@
---TEST--
-Test asort() function : error conditions
---FILE--
-<?php
-/* Prototype : bool asort(array &array_arg [, int sort_flags])
- * Description: Sort an array
- * Source code: ext/standard/array.c
-*/
-
-/*
-* Testing asort() function with all possible error conditions
-*/
-
-echo "*** Testing asort() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing asort() function with Zero arguments --\n";
-var_dump( asort() );
-
-//Test asort with more than the expected number of arguments
-echo "\n-- Testing asort() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$flags = array("SORT_REGULAR" => SORT_REGULAR, "SORT_STRING" => SORT_STRING, "SORT_NUMERIC" => SORT_NUMERIC);
-$extra_arg = 10;
-
-// loop through $flag_value array and setting all possible flag values
-foreach($flags as $key => $flag){
- echo "\nSort flag = $key\n";
- var_dump( asort($array_arg,$flag, $extra_arg) );
-
- // dump the input array to ensure that it wasn't changed
- var_dump($array_arg);
-}
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing asort() : error conditions ***
-
--- Testing asort() function with Zero arguments --
-
-Warning: asort() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-
--- Testing asort() function with more than expected no. of arguments --
-
-Sort flag = SORT_REGULAR
-
-Warning: asort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-
-Sort flag = SORT_STRING
-
-Warning: asort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-
-Sort flag = SORT_NUMERIC
-
-Warning: asort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/compact_error.phpt b/ext/standard/tests/array/compact_error.phpt
deleted file mode 100644
index 9216ac9ba6..0000000000
--- a/ext/standard/tests/array/compact_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test compact() function : error conditions
---FILE--
-<?php
-/* Prototype : proto array compact(mixed var_names [, mixed ...])
- * Description: Creates a hash containing variables and their values
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-/*
- * Error -tests test compact with zero arguments.
- */
-
-echo "*** Testing compact() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing compact() function with Zero arguments --\n";
-var_dump( compact() );
-
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing compact() : error conditions ***
-
--- Testing compact() function with Zero arguments --
-
-Warning: compact() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/count_error.phpt b/ext/standard/tests/array/count_error.phpt
deleted file mode 100644
index 8b26086a9d..0000000000
--- a/ext/standard/tests/array/count_error.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-Test count() function : error conditions - pass incorrect number of args
---FILE--
-<?php
-/* Prototype : int count(mixed var [, int mode])
- * Description: Count the number of elements in a variable (usually an array)
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to count() to test behaviour
- */
-
-echo "*** Testing count() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing count() function with Zero arguments --\n";
-var_dump( count() );
-
-//Test count with one more than the expected number of arguments
-echo "\n-- Testing count() function with more than expected no. of arguments --\n";
-$var = 1;
-$mode = 10;
-$extra_arg = 10;
-var_dump( count($var, $mode, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing count() : error conditions ***
-
--- Testing count() function with Zero arguments --
-
-Warning: count() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing count() function with more than expected no. of arguments --
-
-Warning: count() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/current_error.phpt b/ext/standard/tests/array/current_error.phpt
deleted file mode 100644
index d140ba6c8c..0000000000
--- a/ext/standard/tests/array/current_error.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Test current() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : mixed current(array $array_arg)
- * Description: Return the element currently pointed to by the internal array pointer
- * Source code: ext/standard/array.c
- * Alias to functions: pos
- */
-
-/*
- * Pass incorrect number of arguments to current() to test behaviour
- */
-
-echo "*** Testing current() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing current() function with Zero arguments --\n";
-var_dump( current() );
-
-//Test current with one more than the expected number of arguments
-echo "\n-- Testing current() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$extra_arg = 10;
-var_dump( current($array_arg, $extra_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing current() : error conditions ***
-
--- Testing current() function with Zero arguments --
-
-Warning: current() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing current() function with more than expected no. of arguments --
-
-Warning: current() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/end_error.phpt b/ext/standard/tests/array/end_error.phpt
deleted file mode 100644
index 9673a128ad..0000000000
--- a/ext/standard/tests/array/end_error.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test end() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : mixed end(array $array_arg)
- * Description: Advances array argument's internal pointer to the last element and return it
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to end() to test behaviour
- */
-
-echo "*** Testing end() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing end() function with Zero arguments --\n";
-var_dump( end() );
-
-//Test end with one more than the expected number of arguments
-echo "\n-- Testing end() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$extra_arg = 10;
-var_dump( end($array_arg, $extra_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing end() : error conditions ***
-
--- Testing end() function with Zero arguments --
-
-Warning: end() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing end() function with more than expected no. of arguments --
-
-Warning: end() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/in_array_errors.phpt b/ext/standard/tests/array/in_array_errors.phpt
deleted file mode 100644
index cef3fdf446..0000000000
--- a/ext/standard/tests/array/in_array_errors.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-Test in_array() function : error conditions
---FILE--
-<?php
-/*
- * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] )
- * Description: Searches haystack for needle and returns TRUE
- * if it is found in the array, FALSE otherwise.
- * Source Code: ext/standard/array.c
-*/
-
-echo "\n*** Testing error conditions of in_array() ***\n";
-/* zero argument */
-var_dump( in_array() );
-
-/* unexpected no.of arguments in in_array() */
-$var = array("mon", "tues", "wed", "thurs");
-var_dump( in_array(1, $var, 0, "test") );
-var_dump( in_array("test") );
-
-/* unexpected second argument in in_array() */
-$var="test";
-var_dump( in_array("test", $var) );
-var_dump( in_array(1, 123) );
-
-echo "Done\n";
-?>
---EXPECTF--
-*** Testing error conditions of in_array() ***
-
-Warning: in_array() expects at least 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: in_array() expects at most 3 parameters, 4 given in %s on line %d
-NULL
-
-Warning: in_array() expects at least 2 parameters, 1 given in %s on line %d
-NULL
-
-Warning: in_array() expects parameter 2 to be array, string given in %s on line %d
-NULL
-
-Warning: in_array() expects parameter 2 to be array, int given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/key_error.phpt b/ext/standard/tests/array/key_error.phpt
deleted file mode 100644
index 1200f74f14..0000000000
--- a/ext/standard/tests/array/key_error.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test key() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : mixed key(array $array_arg)
- * Description: Return the key of the element currently pointed to by the internal array pointer
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to key() to test behaviour
- */
-
-echo "*** Testing key() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing key() function with Zero arguments --\n";
-var_dump( key() );
-
-//Test current with one more than the expected number of arguments
-echo "\n-- Testing key() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$extra_arg = 10;
-var_dump( key($array_arg, $extra_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing key() : error conditions ***
-
--- Testing key() function with Zero arguments --
-
-Warning: key() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing key() function with more than expected no. of arguments --
-
-Warning: key() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/key_exists_error.phpt b/ext/standard/tests/array/key_exists_error.phpt
deleted file mode 100644
index a1af3910ba..0000000000
--- a/ext/standard/tests/array/key_exists_error.phpt
+++ /dev/null
@@ -1,23 +0,0 @@
---TEST--
-Test function key_exists() by calling it more than or less than its expected arguments
---CREDITS--
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-
-echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
-
-$a = array('bar' => 1);
-var_dump(key_exists());
-var_dump(key_exists('foo', $a, 'baz'));
-
-?>
---EXPECTF--
-*** Test by calling method or function with incorrect numbers of arguments ***
-
-Warning: key_exists() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: key_exists() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
diff --git a/ext/standard/tests/array/krsort_error.phpt b/ext/standard/tests/array/krsort_error.phpt
deleted file mode 100644
index 250d9da03b..0000000000
--- a/ext/standard/tests/array/krsort_error.phpt
+++ /dev/null
@@ -1,78 +0,0 @@
---TEST--
-Test krsort() function : error conditions
---FILE--
-<?php
-/* Prototype : bool krsort(array &array_arg [, int asort_flags])
- * Description: Sort an array
- * Source code: ext/standard/array.c
-*/
-
-/*
-* Testing krsort() function with all possible error conditions
-*/
-
-echo "*** Testing krsort() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing krsort() function with zero arguments --\n";
-var_dump( krsort() );
-
-//Test krsort with more than the expected number of arguments
-echo "\n-- Testing krsort() function with more than expected no. of arguments --\n";
-$array_arg = array(1 => 1, 2 => 2);
-$flags = array("SORT_REGULAR" => SORT_REGULAR, "SORT_STRING" => SORT_STRING, "SORT_NUMERIC" => SORT_NUMERIC);
-$extra_arg = 10;
-
-// loop through $flag_value array and call krsort with all possible sort flag values
-foreach($flags as $key => $flag){
- echo "\n- Sort flag = $key -\n";
- $temp_array = $array_arg;
- var_dump( krsort($temp_array,$flag, $extra_arg) );
- var_dump($temp_array);
-}
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing krsort() : error conditions ***
-
--- Testing krsort() function with zero arguments --
-
-Warning: krsort() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-
--- Testing krsort() function with more than expected no. of arguments --
-
-- Sort flag = SORT_REGULAR -
-
-Warning: krsort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [1]=>
- int(1)
- [2]=>
- int(2)
-}
-
-- Sort flag = SORT_STRING -
-
-Warning: krsort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [1]=>
- int(1)
- [2]=>
- int(2)
-}
-
-- Sort flag = SORT_NUMERIC -
-
-Warning: krsort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [1]=>
- int(1)
- [2]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/ksort_error.phpt b/ext/standard/tests/array/ksort_error.phpt
deleted file mode 100644
index 7631e9ee0e..0000000000
--- a/ext/standard/tests/array/ksort_error.phpt
+++ /dev/null
@@ -1,78 +0,0 @@
---TEST--
-Test ksort() function : error conditions
---FILE--
-<?php
-/* Prototype : bool ksort(array &array_arg [, int sort_flags])
- * Description: Sort an array by key, maintaining key to data correlation
- * Source code: ext/standard/array.c
-*/
-
-/*
-* Testing ksort() function with all possible error conditions
-*/
-
-echo "*** Testing ksort() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing ksort() function with Zero arguments --\n";
-var_dump( ksort() );
-
-//Test ksort with more than the expected number of arguments
-echo "\n-- Testing ksort() function with more than expected no. of arguments --\n";
-$array_arg = array(1 => 1, 2 => 2);
-$flag_value = array("SORT_REGULAR" => SORT_REGULAR, "SORT_STRING" => SORT_STRING, "SORT_NUMERIC" => SORT_NUMERIC);
-$extra_arg = 10;
-
-// loop through $flag_value array and call krsort with all possible sort flag values
-foreach($flag_value as $key => $flag){
- echo "\n- Sort flag = $key -\n";
- $temp_array = $array_arg;
- var_dump( ksort($temp_array,$flag, $extra_arg) );
- var_dump( $temp_array);
-}
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing ksort() : error conditions ***
-
--- Testing ksort() function with Zero arguments --
-
-Warning: ksort() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-
--- Testing ksort() function with more than expected no. of arguments --
-
-- Sort flag = SORT_REGULAR -
-
-Warning: ksort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [1]=>
- int(1)
- [2]=>
- int(2)
-}
-
-- Sort flag = SORT_STRING -
-
-Warning: ksort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [1]=>
- int(1)
- [2]=>
- int(2)
-}
-
-- Sort flag = SORT_NUMERIC -
-
-Warning: ksort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [1]=>
- int(1)
- [2]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/max_error.phpt b/ext/standard/tests/array/max_error.phpt
deleted file mode 100644
index a8736a3d88..0000000000
--- a/ext/standard/tests/array/max_error.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Test wrong number of arguments for min()
---FILE--
-<?php
-/*
- * proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
- * Function is implemented in ext/standard/array.c
-*/
-
-
-echo "\n*** Testing Error Conditions ***\n";
-
-var_dump(max());
-var_dump(max(1));
-var_dump(max(array()));
-var_dump(max(new stdclass));
-
-?>
---EXPECTF--
-*** Testing Error Conditions ***
-
-Warning: max() expects at least 1 parameter, 0 given in %s on line 10
-NULL
-
-Warning: max(): When only one parameter is given, it must be an array in %s on line 11
-NULL
-
-Warning: max(): Array must contain at least one element in %s on line 12
-bool(false)
-
-Warning: max(): When only one parameter is given, it must be an array in %s on line 13
-NULL
diff --git a/ext/standard/tests/array/min_error.phpt b/ext/standard/tests/array/min_error.phpt
deleted file mode 100644
index deb84f276d..0000000000
--- a/ext/standard/tests/array/min_error.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Test wrong number of arguments for min()
---FILE--
-<?php
-/*
- * proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
- * Function is implemented in ext/standard/array.c
-*/
-
-
-echo "\n*** Testing Error Conditions ***\n";
-
-var_dump(min());
-var_dump(min(1));
-var_dump(min(array()));
-var_dump(min(new stdclass));
-
-?>
---EXPECTF--
-*** Testing Error Conditions ***
-
-Warning: min() expects at least 1 parameter, 0 given in %s on line 10
-NULL
-
-Warning: min(): When only one parameter is given, it must be an array in %s on line 11
-NULL
-
-Warning: min(): Array must contain at least one element in %s on line 12
-bool(false)
-
-Warning: min(): When only one parameter is given, it must be an array in %s on line 13
-NULL
diff --git a/ext/standard/tests/array/natcasesort_error.phpt b/ext/standard/tests/array/natcasesort_error.phpt
deleted file mode 100644
index 377a407d72..0000000000
--- a/ext/standard/tests/array/natcasesort_error.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Test natcasesort() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : bool natcasesort(array &$array_arg)
- * Description: Sort an array using case-insensitive natural sort
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to natcasesort() to test behaviour
- */
-
-echo "*** Testing natcasesort() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing natcasesort() function with Zero arguments --\n";
-var_dump( natcasesort() );
-
-// Test natcasesort with one more than the expected number of arguments
-echo "\n-- Testing natcasesort() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$extra_arg = 10;
-var_dump( natcasesort($array_arg, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing natcasesort() : error conditions ***
-
--- Testing natcasesort() function with Zero arguments --
-
-Warning: natcasesort() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing natcasesort() function with more than expected no. of arguments --
-
-Warning: natcasesort() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/next_error.phpt b/ext/standard/tests/array/next_error.phpt
deleted file mode 100644
index 11e7cb12de..0000000000
--- a/ext/standard/tests/array/next_error.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test next() function : error conditions - Pass incorrect number of arguments
---FILE--
-<?php
-/* Prototype : mixed next(array $array_arg)
- * Description: Move array argument's internal pointer to the next element and return it
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to next() to test behaviour
- */
-
-echo "*** Testing next() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing next() function with Zero arguments --\n";
-var_dump( next() );
-
-//Test next with one more than the expected number of arguments
-echo "\n-- Testing next() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$extra_arg = 10;
-var_dump( next($array_arg, $extra_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing next() : error conditions ***
-
--- Testing next() function with Zero arguments --
-
-Warning: next() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing next() function with more than expected no. of arguments --
-
-Warning: next() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/prev_error1.phpt b/ext/standard/tests/array/prev_error1.phpt
deleted file mode 100644
index 0b9b15814e..0000000000
--- a/ext/standard/tests/array/prev_error1.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test prev() function : error conditions - Pass incorrect number of arguments
---FILE--
-<?php
-/* Prototype : mixed prev(array $array_arg)
- * Description: Move array argument's internal pointer to the previous element and return it
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to prev() to test behaviour
- */
-
-echo "*** Testing prev() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing prev() function with Zero arguments --\n";
-var_dump( prev() );
-
-//Test prev with one more than the expected number of arguments
-echo "\n-- Testing prev() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$extra_arg = 10;
-var_dump( prev($array_arg, $extra_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing prev() : error conditions ***
-
--- Testing prev() function with Zero arguments --
-
-Warning: prev() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing prev() function with more than expected no. of arguments --
-
-Warning: prev() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/reset_error.phpt b/ext/standard/tests/array/reset_error.phpt
deleted file mode 100644
index abab8af635..0000000000
--- a/ext/standard/tests/array/reset_error.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test reset() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : mixed reset(array $array_arg)
- * Description: Set array argument's internal pointer to the first element and return it
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to reset() to test behaviour
- */
-
-echo "*** Testing reset() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing reset() function with Zero arguments --\n";
-var_dump( reset() );
-
-//Test reset with one more than the expected number of arguments
-echo "\n-- Testing reset() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$extra_arg = 10;
-var_dump( reset($array_arg, $extra_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing reset() : error conditions ***
-
--- Testing reset() function with Zero arguments --
-
-Warning: reset() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing reset() function with more than expected no. of arguments --
-
-Warning: reset() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/rsort_error.phpt b/ext/standard/tests/array/rsort_error.phpt
deleted file mode 100644
index a00ba04469..0000000000
--- a/ext/standard/tests/array/rsort_error.phpt
+++ /dev/null
@@ -1,50 +0,0 @@
---TEST--
-Test rsort() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : bool rsort(array &$array_arg [, int $sort_flags])
- * Description: Sort an array in reverse order
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to rsort() to test behaviour
- */
-
-echo "*** Testing rsort() : error conditions ***\n";
-
-// zero arguments
-echo "\n-- Testing rsort() function with Zero arguments --\n";
-var_dump( rsort() );
-
-//Test rsort() with more than the expected number of arguments
-echo "\n-- Testing rsort() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$sort_flags = SORT_REGULAR;
-$extra_arg = 10;
-var_dump( rsort($array_arg, $sort_flags, $extra_arg) );
-
-// dump the input array to ensure that it wasn't changed
-var_dump($array_arg);
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing rsort() : error conditions ***
-
--- Testing rsort() function with Zero arguments --
-
-Warning: rsort() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-
--- Testing rsort() function with more than expected no. of arguments --
-
-Warning: rsort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/shuffle_error.phpt b/ext/standard/tests/array/shuffle_error.phpt
deleted file mode 100644
index 3c69972261..0000000000
--- a/ext/standard/tests/array/shuffle_error.phpt
+++ /dev/null
@@ -1,53 +0,0 @@
---TEST--
-Test shuffle() function : error conditions
---FILE--
-<?php
-/* Prototype : bool shuffle(array $array_arg)
- * Description: Randomly shuffle the contents of an array
- * Source code: ext/standard/array.c
-*/
-
-/* Test shuffle() to see that warning messages are emitted
- * when invalid number of arguments are passed to the function
-*/
-
-echo "*** Testing shuffle() : error conditions ***\n";
-
-// zero arguments
-echo "\n-- Testing shuffle() function with Zero arguments --\n";
-var_dump( shuffle() );
-
-// more than the expected number of arguments
-echo "\n-- Testing shuffle() function with more than expected no. of arguments --\n";
-$array_arg = array(1, "two" => 2);
-$extra_arg = 10;
-var_dump( shuffle($array_arg, $extra_arg) );
-
-// printing the input array to check that it is not affected
-// by above shuffle() function calls
-echo "\n-- original input array --\n";
-var_dump( $array_arg );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing shuffle() : error conditions ***
-
--- Testing shuffle() function with Zero arguments --
-
-Warning: shuffle() expects exactly 1 parameter, 0 given in %s on line %d
-bool(false)
-
--- Testing shuffle() function with more than expected no. of arguments --
-
-Warning: shuffle() expects exactly 1 parameter, 2 given in %s on line %d
-bool(false)
-
--- original input array --
-array(2) {
- [0]=>
- int(1)
- ["two"]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/sizeof_error.phpt b/ext/standard/tests/array/sizeof_error.phpt
deleted file mode 100644
index 3a9ce1b629..0000000000
--- a/ext/standard/tests/array/sizeof_error.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-Test sizeof() function : error conditions
---FILE--
-<?php
-/* Prototype : int sizeof(mixed $var[, int $mode] )
- * Description: Counts an elements in an array. If Standard PHP Library is installed,
- * it will return the properties of an object.
- * Source code: ext/standard/basic_functions.c
- * Alias to functions: count()
- */
-
-// Calling sizeof() with zero and more than expected arguments .
-
-echo "*** Testing sizeof() : error conditions ***\n";
-
-echo "-- Testing sizeof() with zero arguments --\n";
-var_dump( sizeof() );
-echo "-- Testing sizeof() function with more than two arguments under COUNT_NORMAL mode --\n";
-$var = 100;
-$extra_arg = 10;
-var_dump( sizeof($var, COUNT_NORMAL, $extra_arg) );
-echo "-- Testing sizeof() function with more than two arguments under COUNT_RECURSIVE mode --\n";
-var_dump( sizeof($var, COUNT_RECURSIVE, $extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing sizeof() : error conditions ***
--- Testing sizeof() with zero arguments --
-
-Warning: sizeof() expects at least 1 parameter, 0 given in %s on line %d
-NULL
--- Testing sizeof() function with more than two arguments under COUNT_NORMAL mode --
-
-Warning: sizeof() expects at most 2 parameters, 3 given in %s on line %d
-NULL
--- Testing sizeof() function with more than two arguments under COUNT_RECURSIVE mode --
-
-Warning: sizeof() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/sizeof_variation5.phpt b/ext/standard/tests/array/sizeof_variation5.phpt
deleted file mode 100644
index 905505fa06..0000000000
--- a/ext/standard/tests/array/sizeof_variation5.phpt
+++ /dev/null
@@ -1,132 +0,0 @@
---TEST--
-Test sizeof() function : usage variations - different values for 'mode' argument
---FILE--
-<?php
-/* Prototype : int sizeof($mixed var[, int $mode])
- * Description: Counts an elements in an array. If Standard PHP library is installed,
- * it will return the properties of an object.
- * Source code: ext/standard/basic_functions.c
- * Alias to functions: count()
- */
-
-echo "*** Testing sizeof() : usage variations ***\n";
-
-echo "--- Testing sizeof() with different values for 'mode' argument ---\n";
-$array1 = array(1, 2, 3, 4, array(1.0, 2.0, array()), array() );
-
-// get a resource variable
-$fp = fopen(__FILE__, "r");
-
-//unset variable
-$unset_var = 10;
-unset($unset_var);
-
-//class declaration
-class test
-{
- public $member1;
-}
-
-$mode_values = array (
- /* 1 */ COUNT_NORMAL,
- COUNT_RECURSIVE,
- 0, // same as COUNT_NORMAL
- 1, // same as COUNT_RECURSIVE
-
- /* 5 */ TRUE, // same as COUNT_RECURSIVE
- true, // same as COUNT_RECURSIVE
- FALSE, // same as COUNT_NORMAL
- false, // same as COUNT_NORMAL
- NULL, // same as COUNT_NORMAL
- /* 10 */ null, // same as COUNT_NORMAL
- 100,
- 10.5,
- 12.34e3,
- 12.34E-2,
- /* 15 */ .5,
- "",
- '',
- "string",
- 'string',
- /* 20 */ @$unset_var,
- new test(),
- /* 22 */ $fp
-);
-
-// loop through the each element of $modes_array for 'mode' argument
-// and check the working of sizeof()
-$counter = 1;
-for($i = 0; $i < count($mode_values); $i++)
-{
- echo "-- Iteration $counter --\n";
- $mode = $mode_values[$i];
-
- var_dump( sizeof($array1, $mode) );
-
- $counter++;
-}
-
-fclose($fp);
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing sizeof() : usage variations ***
---- Testing sizeof() with different values for 'mode' argument ---
--- Iteration 1 --
-int(6)
--- Iteration 2 --
-int(9)
--- Iteration 3 --
-int(6)
--- Iteration 4 --
-int(9)
--- Iteration 5 --
-int(9)
--- Iteration 6 --
-int(9)
--- Iteration 7 --
-int(6)
--- Iteration 8 --
-int(6)
--- Iteration 9 --
-int(6)
--- Iteration 10 --
-int(6)
--- Iteration 11 --
-int(6)
--- Iteration 12 --
-int(6)
--- Iteration 13 --
-int(6)
--- Iteration 14 --
-int(6)
--- Iteration 15 --
-int(6)
--- Iteration 16 --
-
-Warning: sizeof() expects parameter 2 to be int, string given in %s on line %d
-NULL
--- Iteration 17 --
-
-Warning: sizeof() expects parameter 2 to be int, string given in %s on line %d
-NULL
--- Iteration 18 --
-
-Warning: sizeof() expects parameter 2 to be int, string given in %s on line %d
-NULL
--- Iteration 19 --
-
-Warning: sizeof() expects parameter 2 to be int, string given in %s on line %d
-NULL
--- Iteration 20 --
-int(6)
--- Iteration 21 --
-
-Warning: sizeof() expects parameter 2 to be int, object given in %s on line %d
-NULL
--- Iteration 22 --
-
-Warning: sizeof() expects parameter 2 to be int, resource given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/sort_error.phpt b/ext/standard/tests/array/sort_error.phpt
deleted file mode 100644
index 7c7ecb1105..0000000000
--- a/ext/standard/tests/array/sort_error.phpt
+++ /dev/null
@@ -1,79 +0,0 @@
---TEST--
-Test sort() function : error conditions
---FILE--
-<?php
-/* Prototype : bool sort(array &array_arg [, int sort_flags])
- * Description: Sort an array
- * Source code: ext/standard/array.c
-*/
-
-/*
-* Testing sort() function with all possible error conditions
-*/
-
-echo "*** Testing sort() : error conditions ***\n";
-
-// zero arguments
-echo "\n-- Testing sort() function with Zero arguments --\n";
-var_dump( sort() );
-
-//Test sort with more than the expected number of arguments
-echo "\n-- Testing sort() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$flag_value = array("SORT_REGULAR" => SORT_REGULAR, "SORT_STRING" => SORT_STRING, "SORT_NUMERIC" => SORT_NUMERIC);
-$extra_arg = 10;
-
-// loop through $flag_value array and setting all possible flag values
-foreach($flag_value as $key => $flag){
- echo "\nSort flag = $key\n";
- var_dump( sort($array_arg,$flag, $extra_arg) );
-
- // dump the input array to ensure that it wasn't changed
- var_dump($array_arg);
-}
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing sort() : error conditions ***
-
--- Testing sort() function with Zero arguments --
-
-Warning: sort() expects at least 1 parameter, 0 given in %s on line %d
-bool(false)
-
--- Testing sort() function with more than expected no. of arguments --
-
-Sort flag = SORT_REGULAR
-
-Warning: sort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-
-Sort flag = SORT_STRING
-
-Warning: sort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-
-Sort flag = SORT_NUMERIC
-
-Warning: sort() expects at most 2 parameters, 3 given in %s on line %d
-bool(false)
-array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
-}
-Done
diff --git a/ext/standard/tests/array/uasort_error.phpt b/ext/standard/tests/array/uasort_error.phpt
deleted file mode 100644
index a517e4a511..0000000000
--- a/ext/standard/tests/array/uasort_error.phpt
+++ /dev/null
@@ -1,81 +0,0 @@
---TEST--
-Test uasort() function : error conditions
---FILE--
-<?php
-/* Prototype : bool uasort(array $array_arg, string $cmp_function)
- * Description: Sort an array with a user-defined comparison function and maintain index association
- * Source code: ext/standard/array.c
-*/
-
-echo "*** Testing uasort() : error conditions ***\n";
-
-// comparison function
-/* Prototype : int cmp(mixed $value1, mixed $value2)
- * Parameters : $value1 and $value2 - values to be compared
- * Return value : 0 - if both values are same
- * 1 - if value1 is greater than value2
- * -1 - if value1 is less than value2
- * Description : compares value1 and value2
- */
-function cmp($value1, $value2)
-{
- if($value1 == $value2) {
- return 0;
- }
- else if($value1 > $value2) {
- return 1;
- }
- else {
- return -1;
- }
-}
-
-// Initialize 'array_arg'
-$array_arg = array(0 => 1, 1 => 10, 2 => 'string', 3 => 3, 4 => 2, 5 => 100, 6 => 25);
-
-// With zero arguments
-echo "-- Testing uasort() function with Zero argument --\n";
-var_dump( uasort() );
-
-// With one more than the expected number of arguments
-echo "-- Testing uasort() function with more than expected no. of arguments --\n";
-$extra_arg = 10;
-var_dump( uasort($array_arg, 'cmp', $extra_arg) );
-
-// With one less than the expected number of arguments
-echo "-- Testing uasort() function with less than expected no. of arguments --\n";
-var_dump( uasort($array_arg) );
-
-// With non existent comparison function
-echo "-- Testing uasort() function with non-existent compare function --\n";
-var_dump( uasort($array_arg, 'non_existent') );
-
-// With non existent comparison function and extra argument
-echo "-- Testing uasort() function with non-existent compare function and extra argument --\n";
-var_dump( uasort($array_arg, 'non_existent', $extra_arg) );
-
-echo "Done"
-?>
---EXPECTF--
-*** Testing uasort() : error conditions ***
--- Testing uasort() function with Zero argument --
-
-Warning: uasort() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
--- Testing uasort() function with more than expected no. of arguments --
-
-Warning: uasort() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
--- Testing uasort() function with less than expected no. of arguments --
-
-Warning: uasort() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
--- Testing uasort() function with non-existent compare function --
-
-Warning: uasort() expects parameter 2 to be a valid callback, function 'non_existent' not found or invalid function name in %s on line %d
-NULL
--- Testing uasort() function with non-existent compare function and extra argument --
-
-Warning: uasort() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-Done
diff --git a/ext/standard/tests/array/uksort_error.phpt b/ext/standard/tests/array/uksort_error.phpt
deleted file mode 100644
index db9fdea088..0000000000
--- a/ext/standard/tests/array/uksort_error.phpt
+++ /dev/null
@@ -1,45 +0,0 @@
---TEST--
-Test uksort() function : error conditions
---FILE--
-<?php
-/* Prototype : bool uksort(array array_arg, string cmp_function)
- * Description: Sort an array by keys using a user-defined comparison function
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
-
-echo "*** Testing uksort() : error conditions ***\n";
-
-echo "\n-- Testing uksort() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$cmp_function = 'string_val';
-$extra_arg = 10;
-var_dump( uksort($array_arg, $cmp_function, $extra_arg) );
-
-echo "\n-- Testing uksort() function with less than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-var_dump( uksort($array_arg) );
-
-echo "\n-- Testing uksort() function with zero arguments --\n";
-var_dump( uksort() );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing uksort() : error conditions ***
-
--- Testing uksort() function with more than expected no. of arguments --
-
-Warning: uksort() expects exactly 2 parameters, 3 given in %suksort_error.php on line %d
-NULL
-
--- Testing uksort() function with less than expected no. of arguments --
-
-Warning: uksort() expects exactly 2 parameters, 1 given in %suksort_error.php on line %d
-NULL
-
--- Testing uksort() function with zero arguments --
-
-Warning: uksort() expects exactly 2 parameters, 0 given in %suksort_error.php on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/usort_error1.phpt b/ext/standard/tests/array/usort_error1.phpt
deleted file mode 100644
index 7681e9720b..0000000000
--- a/ext/standard/tests/array/usort_error1.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-Test usort() function : error conditions - Pass incorrect number of arguments
---FILE--
-<?php
-/* Prototype : bool usort(array $array_arg, string $cmp_function)
- * Description: Sort an array by values using a user-defined comparison function
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to usort() to test behaviour
- */
-
-echo "*** Testing usort() : error conditions ***\n";
-
-//Test usort with one more than the expected number of arguments
-echo "\n-- Testing usort() function with more than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-$cmp_function = 'string_val';
-$extra_arg = 10;
-var_dump( usort($array_arg, $cmp_function, $extra_arg) );
-
-// Testing usort with one less than the expected number of arguments
-echo "\n-- Testing usort() function with less than expected no. of arguments --\n";
-$array_arg = array(1, 2);
-var_dump( usort($array_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing usort() : error conditions ***
-
--- Testing usort() function with more than expected no. of arguments --
-
-Warning: usort() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-
--- Testing usort() function with less than expected no. of arguments --
-
-Warning: usort() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/array/usort_error2.phpt b/ext/standard/tests/array/usort_error2.phpt
deleted file mode 100644
index 487f51982d..0000000000
--- a/ext/standard/tests/array/usort_error2.phpt
+++ /dev/null
@@ -1,56 +0,0 @@
---TEST--
-Test usort() function : error conditions - Pass unknown 'cmp_function'
---FILE--
-<?php
-/* Prototype : bool usort(array $array_arg, string $cmp_function)
- * Description: Sort an array by values using a user-defined comparison function
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass an unknown comparison function to usort() to test behaviour.
- * Pass incorrect number of arguments and an unknown function to test which error
- * is generated.
- */
-
-echo "*** Testing usort() : error conditions ***\n";
-
-function cmp($value1, $value2)
-{
- if($value1 == $value2) {
- return 0;
- }
- else if($value1 > $value2) {
- return 1;
- }
- else {
- return -1;
- }
-}
-
-// Initialize 'array_arg'
-$array_arg = array(0 => 1, 1 => 10, 2 => 'string', 3 => 3, 4 => 2, 5 => 100, 6 => 25);
-$extra_arg = 10;
-
-// With non existent comparison function
-echo "\n-- Testing usort() function with non-existent compare function --\n";
-var_dump( usort($array_arg, 'non_existent') );
-
-// With non existent comparison function and extra argument
-echo "\n-- Testing usort() function with non-existent compare function and extra argument --\n";
-var_dump( usort($array_arg, 'non_existent', $extra_arg) );
-?>
-===DONE===
---EXPECTF--
-*** Testing usort() : error conditions ***
-
--- Testing usort() function with non-existent compare function --
-
-Warning: usort() expects parameter 2 to be a valid callback, function 'non_existent' not found or invalid function name in %s on line %d
-NULL
-
--- Testing usort() function with non-existent compare function and extra argument --
-
-Warning: usort() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-===DONE===