TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
943 B
29 lines
943 B
--TEST--
|
|
Test array_uintersect_assoc() function : basic functionality - testing with multiple array arguments
|
|
--SKIPIF--
|
|
--FILE--
|
|
<?php
|
|
echo "*** Testing array_uintersect_assoc() : basic functionality - testing with multiple array arguments ***\n";
|
|
|
|
include(__DIR__.'/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, "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) );
|
|
|
|
|
|
?>
|
|
--EXPECT--
|
|
*** Testing array_uintersect_assoc() : basic functionality - testing with multiple array arguments ***
|
|
array(2) {
|
|
["one"]=>
|
|
string(3) "one"
|
|
[3]=>
|
|
string(5) "three"
|
|
}
|
|
|