summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-02-14 07:36:58 +0100
committerRemi Collet <fedora@famillecollet.com>2016-02-14 07:36:58 +0100
commit253e642cb689e54b95bd7c52ddafe351ecf5b46c (patch)
tree829779eb8d83db664fff81b0178daf9cfd287b08
parent22cffd6169fd15308692a952ca05283e0f3fc351 (diff)
php-tracy: fix tests (with the patch)
-rw-r--r--php-tracy-upstream.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/php-tracy-upstream.patch b/php-tracy-upstream.patch
new file mode 100644
index 0000000..cf9fe7e
--- /dev/null
+++ b/php-tracy-upstream.patch
@@ -0,0 +1,22 @@
+From 854be70433bfff9b61d45216abd38c512ab16471 Mon Sep 17 00:00:00 2001
+From: David Grudl <david@grudl.com>
+Date: Mon, 8 Feb 2016 01:05:25 +0100
+Subject: [PATCH] tests: fixed for PHP 7.0.3
+
+---
+ tests/Tracy/Dumper.toText().phpt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/Tracy/Dumper.toText().phpt b/tests/Tracy/Dumper.toText().phpt
+index a3f6331..ef21093 100644
+--- a/tests/Tracy/Dumper.toText().phpt
++++ b/tests/Tracy/Dumper.toText().phpt
+@@ -58,7 +58,7 @@ Assert::match('array (5)
+ | 7 => 7
+ ', Dumper::toText(array(1, 'hello', array(), array(1, 2), array(1 => 1, 2, 3, 4, 5, 6, 7))));
+
+-Assert::match("stream resource #%d%\n wrapper_type%A%", Dumper::toText(fopen(__FILE__, 'r')));
++Assert::match("stream resource #%d%\n %S%%A%", Dumper::toText(fopen(__FILE__, 'r')));
+
+ Assert::match('stdClass #%a%', Dumper::toText(new stdClass));
+