Skip to content

Commit d28f1da

Browse files
committed
Fix broken test case
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.
1 parent 9cd23ff commit d28f1da

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

ext/gd/tests/gd_info_variation1.phpt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,28 @@ var_dump(gd_info());
2525
*** Testing gd_info() : variation ***
2626
array(%d) {
2727
["GD Version"]=>
28-
string(%d) %a
28+
string(%d) %s
2929
["FreeType Support"]=>
30-
bool%a
30+
bool(%s)
3131
["T1Lib Support"]=>
32-
bool%a
32+
bool(%s)
3333
["GIF Read Support"]=>
34-
bool%a
34+
bool(%s)
3535
["GIF Create Support"]=>
36-
bool%a
36+
bool(%s)
3737
["JPEG Support"]=>
38-
bool%a
38+
bool(%s)
3939
["PNG Support"]=>
40-
bool%a
40+
bool(%s)
4141
["WBMP Support"]=>
42-
bool%a
42+
bool(%s)
4343
["XPM Support"]=>
44-
bool%a
44+
bool(%s)
4545
["XBM Support"]=>
46-
bool%a
46+
bool(%s)
47+
["WebP Support"]=>
48+
bool(%s)
4749
["JIS-mapped Japanese Font Support"]=>
48-
bool%a
50+
bool(%s)
4951
}
5052
===DONE===

0 commit comments

Comments
 (0)