From cba560e67fbd44abf6648dd01ec0f231123993cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Almada?= Date: Thu, 1 Sep 2016 03:52:54 -0400 Subject: [PATCH] add extra test to protected behavior of compact and array string key order --- ext/standard/tests/array/compact_order.phpt | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ext/standard/tests/array/compact_order.phpt diff --git a/ext/standard/tests/array/compact_order.phpt b/ext/standard/tests/array/compact_order.phpt new file mode 100644 index 00000000000..bf6051cc490 --- /dev/null +++ b/ext/standard/tests/array/compact_order.phpt @@ -0,0 +1,25 @@ +--TEST-- +compact() and hashmap order +--FILE-- + +--EXPECT-- +array(2) { + ["foo"]=> + NULL + ["bar"]=> + NULL +} +array(2) { + ["bar"]=> + NULL + ["foo"]=> + NULL +}