diff options
| author | Ant Phillips <ant@php.net> | 2008-12-02 13:29:17 +0000 |
|---|---|---|
| committer | Ant Phillips <ant@php.net> | 2008-12-02 13:29:17 +0000 |
| commit | ba7bc0ace477f35d645c40adcb2d6d10d321872d (patch) | |
| tree | fd86eb7600e690403f63481acbcae160d59f51a6 /ext/standard/tests/array/array_uintersect_assoc_basic2.phpt | |
| parent | 8862c5d405860c0a5418eb9283796ec87105fbb9 (diff) | |
| download | php-git-ba7bc0ace477f35d645c40adcb2d6d10d321872d.tar.gz | |
Array tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit).
Diffstat (limited to 'ext/standard/tests/array/array_uintersect_assoc_basic2.phpt')
| -rw-r--r-- | ext/standard/tests/array/array_uintersect_assoc_basic2.phpt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/standard/tests/array/array_uintersect_assoc_basic2.phpt b/ext/standard/tests/array/array_uintersect_assoc_basic2.phpt new file mode 100644 index 0000000000..561a60dd97 --- /dev/null +++ b/ext/standard/tests/array/array_uintersect_assoc_basic2.phpt @@ -0,0 +1,36 @@ +--TEST-- +Test array_uintersect_assoc() function : basic functionality - testing with multiple array arguments +--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() : basic functionality - testing with multiple array arguments ***\n"; + +include('compare_function.inc'); +$data_compare_function = 'compare_function'; + +// Initialise all required variables +$arr1 = array("one" => "one", "02" => "two", '3' => "three", "four", "0.5" => 5, 0.6 => 6, "0x7" => "seven"); +$arr2 = array("one" => "one", "02" => "two", '3' => "three"); +$arr3 = array("one" => "one", '3' => "three", "0.5" => 5); +$arr4 = array("one" => "one", '3' => "three", "0.5" => 5); + + +var_dump( array_uintersect_assoc($arr1, $arr2, $arr3, $arr4, $data_compare_function) ); + + +?> +===DONE=== +--EXPECTF-- +*** Testing array_uintersect_assoc() : basic functionality - testing with multiple array arguments *** +array(2) { + [u"one"]=> + unicode(3) "one" + [3]=> + unicode(5) "three" +} +===DONE=== |
