]> granicus.if.org Git - php/commitdiff
Fixed tests
authorDmitry Stogov <dmitry@php.net>
Tue, 24 Jun 2008 06:25:51 +0000 (06:25 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 24 Jun 2008 06:25:51 +0000 (06:25 +0000)
ext/gd/tests/image_type_to_mime_type_error.phpt
ext/gd/tests/image_type_to_mime_type_variation1.phpt

index 5ecdce77c67304f15ec9a80be7a68cd4994ac2c9..88aacbf17634ecc10d64d2d3df486205f55fc913 100644 (file)
@@ -25,11 +25,11 @@ var_dump( image_type_to_mime_type($imagetype, $extra_arg) );
 
 -- Testing image_type_to_mime_type() function with Zero arguments --
 
-Warning: Wrong parameter count for image_type_to_mime_type() in %s on line %d
-bool(false)
+Warning: image_type_to_mime_type() expects exactly 1 parameter, 0 given in %simage_type_to_mime_type_error.php on line 13
+NULL
 
 -- Testing image_type_to_mime_type() function with more than expected no. of arguments --
 
-Warning: Wrong parameter count for image_type_to_mime_type() in %s on line %d
-bool(false)
+Warning: image_type_to_mime_type() expects exactly 1 parameter, 2 given in %simage_type_to_mime_type_error.php on line 17
+NULL
 ===DONE===
\ No newline at end of file
index 1747524d78b8d76050008aabffbf285678b4b003..0023b7125df820be65d1577a7a23504d09146b43 100644 (file)
@@ -92,10 +92,14 @@ string(24) "application/octet-stream"
 string(24) "application/octet-stream"
 
 -- Iteration 6 --
-string(24) "application/octet-stream"
+
+Warning: image_type_to_mime_type() expects parameter 1 to be long, array given in %s on line %d
+NULL
 
 -- Iteration 7 --
-string(9) "image/gif"
+
+Warning: image_type_to_mime_type() expects parameter 1 to be long, array given in %s on line %d
+NULL
 
 -- Iteration 8 --
 string(24) "application/octet-stream"
@@ -116,19 +120,29 @@ string(9) "image/gif"
 string(24) "application/octet-stream"
 
 -- Iteration 14 --
-string(24) "application/octet-stream"
+
+Warning: image_type_to_mime_type() expects parameter 1 to be long, string given in %s on line %d
+NULL
 
 -- Iteration 15 --
-string(24) "application/octet-stream"
+
+Warning: image_type_to_mime_type() expects parameter 1 to be long, string given in %s on line %d
+NULL
 
 -- Iteration 16 --
-string(24) "application/octet-stream"
+
+Warning: image_type_to_mime_type() expects parameter 1 to be long, string given in %s on line %d
+NULL
 
 -- Iteration 17 --
-string(24) "application/octet-stream"
+
+Warning: image_type_to_mime_type() expects parameter 1 to be long, string given in %s on line %d
+NULL
 
 -- Iteration 18 --
-string(9) "image/gif"
+
+Warning: image_type_to_mime_type() expects parameter 1 to be long, object given in %s on line %d
+NULL
 
 -- Iteration 19 --
 string(24) "application/octet-stream"