summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/tests/image_type_to_mime_type_error.phpt8
-rw-r--r--ext/gd/tests/image_type_to_mime_type_variation1.phpt28
2 files changed, 25 insertions, 11 deletions
diff --git a/ext/gd/tests/image_type_to_mime_type_error.phpt b/ext/gd/tests/image_type_to_mime_type_error.phpt
index 5ecdce77c6..88aacbf176 100644
--- a/ext/gd/tests/image_type_to_mime_type_error.phpt
+++ b/ext/gd/tests/image_type_to_mime_type_error.phpt
@@ -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
diff --git a/ext/gd/tests/image_type_to_mime_type_variation1.phpt b/ext/gd/tests/image_type_to_mime_type_variation1.phpt
index 1747524d78..0023b7125d 100644
--- a/ext/gd/tests/image_type_to_mime_type_variation1.phpt
+++ b/ext/gd/tests/image_type_to_mime_type_variation1.phpt
@@ -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"