Annotation of embedaddon/php/ext/fileinfo/tests/mime_content_type_001.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: mime_content_type(): Testing wrong parameters
                      3: --SKIPIF--
                      4: <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: mime_content_type(1);
                      9: mime_content_type(NULL);
                     10: mime_content_type(new stdclass);
                     11: mime_content_type(array());
                     12: mime_content_type('foo/inexistent');
                     13: mime_content_type('');
                     14: mime_content_type("\0");
                     15: 
                     16: ?>
                     17: --EXPECTF--
                     18: Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
                     19: 
                     20: Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
                     21: 
                     22: Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
                     23: 
                     24: Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
                     25: 
                     26: Warning: mime_content_type(foo/inexistent): failed to open stream: No such file or directory in %s on line %d
                     27: 
                     28: Warning: mime_content_type(): Empty filename or path in %s on line %d
                     29: 
                     30: Warning: mime_content_type(): Empty filename or path in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>