Skip to content

Commit a643ccf

Browse files
committed
Fix tests
1 parent d82d687 commit a643ccf

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

ext/gd/tests/imageloadfont_error1.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ Testing that imageloadfont() breaks on non-string first parameter
33
--CREDITS--
44
Neveo Harrison <neveoo [at] gmail [dot] com> #testfest #tek11
55
--SKIPIF--
6-
<?php
6+
<?php
77
if (!extension_loaded("gd")) die("skip GD not present");
88
?>
99
--FILE--
1010
<?php
1111
var_dump( imageloadfont(array()) );
1212
?>
1313
--EXPECTF--
14-
Warning: imageloadfont() expects parameter 1 to be string, array given in %s on line %d
15-
NULL
14+
Warning: imageloadfont() expects parameter 1 to be a valid path, array given in %s on line %d
15+
NULL

ext/zlib/tests/gzopen_variation1.phpt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
--TEST--
2-
Test gzopen() function : usage variation
2+
Test gzopen() function : usage variation
33
--SKIPIF--
4-
<?php
4+
<?php
55
if (!extension_loaded("zlib")) {
6-
print "skip - zlib extension not loaded";
7-
}
6+
print "skip - zlib extension not loaded";
7+
}
88
?>
99
--FILE--
1010
<?php
1111
/* Prototype : resource gzopen(string filename, string mode [, int use_include_path])
12-
* Description: Open a .gz-file and return a .gz-file pointer
12+
* Description: Open a .gz-file and return a .gz-file pointer
1313
* Source code: ext/zlib/zlib.c
14-
* Alias to functions:
14+
* Alias to functions:
1515
*/
1616

1717
echo "*** Testing gzopen() : usage variation ***\n";
@@ -102,9 +102,9 @@ $inputs = array(
102102

103103
// unset data
104104
'unset var' => @$unset_var,
105-
105+
106106
// resource variable
107-
'resource' => $fp
107+
'resource' => $fp
108108
);
109109

110110
// loop through each element of the array for filename
@@ -158,19 +158,19 @@ Error: 2 - gzopen(0.5): failed to open stream: No such file or directory, %s(%d)
158158
bool(false)
159159

160160
--empty array--
161-
Error: 2 - gzopen() expects parameter 1 to be string, array given, %s(%d)
161+
Error: 2 - gzopen() expects parameter 1 to be a valid path, array given, %s(%d)
162162
NULL
163163

164164
--int indexed array--
165-
Error: 2 - gzopen() expects parameter 1 to be string, array given, %s(%d)
165+
Error: 2 - gzopen() expects parameter 1 to be a valid path, array given, %s(%d)
166166
NULL
167167

168168
--associative array--
169-
Error: 2 - gzopen() expects parameter 1 to be string, array given, %s(%d)
169+
Error: 2 - gzopen() expects parameter 1 to be a valid path, array given, %s(%d)
170170
NULL
171171

172172
--nested arrays--
173-
Error: 2 - gzopen() expects parameter 1 to be string, array given, %s(%d)
173+
Error: 2 - gzopen() expects parameter 1 to be a valid path, array given, %s(%d)
174174
NULL
175175

176176
--uppercase NULL--
@@ -210,7 +210,7 @@ Error: 2 - gzopen(Class A object): failed to open stream: No such file or direct
210210
bool(false)
211211

212212
--instance of classWithoutToString--
213-
Error: 2 - gzopen() expects parameter 1 to be string, object given, %s(%d)
213+
Error: 2 - gzopen() expects parameter 1 to be a valid path, object given, %s(%d)
214214
NULL
215215

216216
--undefined var--
@@ -222,7 +222,7 @@ Error: 2 - gzopen(): Filename cannot be empty, %s(%d)
222222
bool(false)
223223

224224
--resource--
225-
Error: 2 - gzopen() expects parameter 1 to be string, resource given, %s(%d)
225+
Error: 2 - gzopen() expects parameter 1 to be a valid path, resource given, %s(%d)
226226
NULL
227227
===DONE===
228228

ext/zlib/tests/readgzfile_variation1.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ foreach ( $variation as $var ) {
2929
===DONE===
3030
--EXPECTF--
3131

32-
Warning: readgzfile() expects parameter 1 to be string, array given in %s on line %d
32+
Warning: readgzfile() expects parameter 1 to be a valid path, array given in %s on line %d
3333
NULL
3434

35-
Warning: readgzfile() expects parameter 1 to be string, array given in %s on line %d
35+
Warning: readgzfile() expects parameter 1 to be a valid path, array given in %s on line %d
3636
NULL
3737

38-
Warning: readgzfile() expects parameter 1 to be string, array given in %s on line %d
38+
Warning: readgzfile() expects parameter 1 to be a valid path, array given in %s on line %d
3939
NULL
4040

41-
Warning: readgzfile() expects parameter 1 to be string, array given in %s on line %d
41+
Warning: readgzfile() expects parameter 1 to be a valid path, array given in %s on line %d
4242
NULL
43-
===DONE===
43+
===DONE===

ext/zlib/tests/readgzfile_variation6.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ foreach ( $variation as $var ) {
4545
--EXPECTF--
4646
Error: 2 - readgzfile(Class A object): failed to open stream: No such file or directory, %s(%d)
4747
bool(false)
48-
Error: 2 - readgzfile() expects parameter 1 to be string, object given, %s(%d)
49-
NULL
48+
Error: 2 - readgzfile() expects parameter 1 to be a valid path, object given, %s(%d)
49+
NULL

0 commit comments

Comments
 (0)