Skip to content

Commit 933b81d

Browse files
committed
update the test cases
1 parent c24f011 commit 933b81d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ext/standard/tests/array/array_column_group_001.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ar = [
1212
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1313
];
1414

15-
var_dump(array_column($ar, null, 'id', true));
15+
var_dump(array_column_group($ar, null, 'id'));
1616
?>
1717
--EXPECT--
1818
array(6) {

ext/standard/tests/array/array_column_group_002.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $ar = [
1313
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1414
];
1515

16-
print_r(array_column($ar, 'name', 'score', true));
16+
print_r(array_column_group($ar, 'name', 'score'));
1717

1818
?>
1919
--EXPECT--

ext/standard/tests/array/array_column_group_003.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $ar = [
1111
['id' => 6, 'name' => 'wael', 'score' => 'A', 's' => '3'],
1212
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1313
];
14-
print_r(array_column($ar, 'score', 's', true));
14+
print_r(array_column_group($ar, 'score', 's'));
1515
?>
1616
--EXPECT--
1717
Array

ext/standard/tests/array/array_column_group_004.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ar = [
1212
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1313
];
1414

15-
print_r(array_column($ar, null, 'name', true));
15+
print_r(array_column_group($ar, null, 'name'));
1616
?>
1717
--EXPECT--
1818
Array

0 commit comments

Comments
 (0)