From df8cce7248ebd67baec6ffe62fa2d726adccb73a Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 1 Sep 2008 23:41:34 +0000 Subject: [PATCH] - New test --- ext/fileinfo/tests/mime_content_type_001.phpt | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ext/fileinfo/tests/mime_content_type_001.phpt 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 -- 2.40.0