]> granicus.if.org Git - php/commitdiff
Fix broken test case
authorChristoph M. Becker <cmb@php.net>
Sun, 24 Jul 2016 22:13:44 +0000 (00:13 +0200)
committerChristoph M. Becker <cmb@php.net>
Sun, 24 Jul 2016 22:13:44 +0000 (00:13 +0200)
The test claims that it would be "checking all the values in returned array",
but due to the use of %a it actually skipped elements. We fix that by using
%s instead.

ext/gd/tests/gd_info_variation1.phpt

index a725f6554d9d5a23d3d3a04f3152d4bbcc62dbc8..fffde0ba249368abb7bfd87357ec2cbc26419505 100644 (file)
@@ -25,26 +25,28 @@ var_dump(gd_info());
 *** Testing gd_info() : variation ***
 array(%d) {
   ["GD Version"]=>
-  string(%d) %a
+  string(%d) %s
   ["FreeType Support"]=>
-  bool%a
+  bool(%s)
   ["T1Lib Support"]=>
-  bool%a
+  bool(%s)
   ["GIF Read Support"]=>
-  bool%a
+  bool(%s)
   ["GIF Create Support"]=>
-  bool%a
+  bool(%s)
   ["JPEG Support"]=>
-  bool%a
+  bool(%s)
   ["PNG Support"]=>
-  bool%a
+  bool(%s)
   ["WBMP Support"]=>
-  bool%a
+  bool(%s)
   ["XPM Support"]=>
-  bool%a
+  bool(%s)
   ["XBM Support"]=>
-  bool%a
+  bool(%s)
+  ["WebP Support"]=>
+  bool(%s)
   ["JIS-mapped Japanese Font Support"]=>
-  bool%a
+  bool(%s)
 }
 ===DONE===
\ No newline at end of file