From: Felipe Pena Date: Mon, 1 Sep 2008 23:41:34 +0000 (+0000) Subject: - New test X-Git-Tag: BEFORE_HEAD_NS_CHANGE~494 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df8cce7248ebd67baec6ffe62fa2d726adccb73a;p=php - New test --- diff --git a/ext/fileinfo/tests/mime_content_type_001.phpt b/ext/fileinfo/tests/mime_content_type_001.phpt new file mode 100644 index 0000000000..dd6ce07657 --- /dev/null +++ b/ext/fileinfo/tests/mime_content_type_001.phpt @@ -0,0 +1,28 @@ +--TEST-- +mime_content_type(): Testing wrong parameters +--FILE-- + +--EXPECTF-- +Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d + +Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d + +Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d + +Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d + +Warning: mime_content_type(foo/inexistent): failed to open stream: No such file or directory in %s on line %d + +Warning: mime_content_type(): Empty filename or path in %s on line %d + +Warning: mime_content_type(): Empty filename or path in %s on line %d