summaryrefslogtreecommitdiffstats
path: root/php_trie-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php_trie-build.patch')
-rw-r--r--php_trie-build.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/php_trie-build.patch b/php_trie-build.patch
index a834161..81ad235 100644
--- a/php_trie-build.patch
+++ b/php_trie-build.patch
@@ -161,3 +161,44 @@ index 5c7bb9e..4cdb86b 100644
+ ["foo"]=>
+ string(3) "foo"
}
+From b97b49ea191760e27d366fc5a487cb4313b300d3 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 9 Sep 2020 10:04:21 +0200
+Subject: [PATCH] sort test result to avoid failure
+
+---
+ tests/trie/map.phpt | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/tests/trie/map.phpt b/tests/trie/map.phpt
+index aedf9e8..8cb0df8 100644
+--- a/tests/trie/map.phpt
++++ b/tests/trie/map.phpt
+@@ -7,19 +7,19 @@ $trie['foo'] = 'FOO';
+ $trie['bar'] = 'BAR';
+ $trie['baz'] = 'BAZ';
+
+-var_dump(
+- $trie
++$res = $trie
+ ->map('strtolower')
+ ->map('ucfirst')
+- ->toArray()
+-);
++ ->toArray();
++ksort($res);
++var_dump($res);
+ ?>
+ --EXPECT--
+ array(3) {
+- ["foo"]=>
+- string(3) "Foo"
+ ["bar"]=>
+ string(3) "Bar"
+ ["baz"]=>
+ string(3) "Baz"
+-}
+\ No newline at end of file
++ ["foo"]=>
++ string(3) "Foo"
++}