Annotation of embedaddon/php/ext/gd/tests/png2wbmp_error2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test png2wbmp() function : wrong origin filename param
3: --CREDITS--
4: Levi Fukumori <levi [at] fukumori [dot] com [dot] br>
5: #testfest PHPSP on 2009-06-20
6: --SKIPIF--
7: <?php
8: if(!extension_loaded('gd')) {
9: die('skip gd extension is not loaded');
10: }
11: if(!function_exists('png2wbmp')) {
12: die('skip png2wbmp function is not available');
13: }
14: ?>
15: --FILE--
16: <?php
17: $file = dirname(__FILE__) .'/simpletext.wbmp';
18: png2wbmp('', $file, 20, 120, 8);
19: png2wbmp(null, $file, 20, 120, 8);
20: png2wbmp(false, $file, 20, 120, 8);
21: ?>
22: --EXPECTF--
23: Warning: png2wbmp(): Unable to open '' for reading in %s on line %d
24:
25: Warning: png2wbmp(): Unable to open '' for reading in %s on line %d
26:
27: Warning: png2wbmp(): Unable to open '' for reading in %s on line %d
28: --CLEAN--
29: <?php
30: unlink(dirname(__FILE__) .'/simpletext.wbmp');
31: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>