blob: 4c9a295f0c8f17401435e8a0b4c39205e887c1b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
--TEST--
Test array_count_values() function : Test all normal parameter variations
--FILE--
<?php
/*
* Test behaviour with parameter variations
*/
echo "*** Testing array_count_values() : parameter variations ***\n";
class A {
static function hello() {
echo "Hello\n";
}
}
$ob = new A();
$fp = fopen("array_count_file", "w+");
$arrays = array ("bobk" => "bobv", "val", 6 => "val6", $fp, $ob);
var_dump (@array_count_values ($arrays));
echo "\n";
echo "Done";
?>
--CLEAN--
<?php
unlink("array_count_file");
?>
--EXPECT--
*** Testing array_count_values() : parameter variations ***
array(3) {
["bobv"]=>
int(1)
["val"]=>
int(1)
["val6"]=>
int(1)
}
Done
|