diff options
| author | Dmitry Stogov <dmitry@php.net> | 2008-06-24 06:25:51 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2008-06-24 06:25:51 +0000 |
| commit | 56bbba3a796cc4e79a7db914730a387395516c2b (patch) | |
| tree | 24d8d798a2d6e969ad544f2592bb1cc1b5859a9d | |
| parent | 273ee49acb23bc2081f125c599df9a1e8bef8563 (diff) | |
| download | php-git-56bbba3a796cc4e79a7db914730a387395516c2b.tar.gz | |
Fixed tests
| -rw-r--r-- | ext/gd/tests/image_type_to_mime_type_error.phpt | 8 | ||||
| -rw-r--r-- | ext/gd/tests/image_type_to_mime_type_variation1.phpt | 28 |
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" |
