diff options
author | Remi Collet <remi@remirepo.net> | 2020-09-09 10:08:08 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-09-09 10:08:08 +0200 |
commit | 72ce46a3b9d56861e8bcdc1257fa90780b1e5b8c (patch) | |
tree | 0cdd16b72538a46d2195486307e173f5e13e0ec3 /php_trie-build.patch | |
parent | 30b274e28490f1371c90322f6930583928f516c0 (diff) |
more fix for test suit
Diffstat (limited to 'php_trie-build.patch')
-rw-r--r-- | php_trie-build.patch | 41 |
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" ++} |