Annotation of embedaddon/php/ext/standard/tests/strings/convert_uudecode_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test convert_uudecode() function : error conditions
3: --FILE--
4: <?php
5:
6: /* Prototype : string convert_uudecode ( string $data )
7: * Description: Decode a uuencoded string
8: * Source code: ext/standard/uuencode.c
9: */
10:
11: echo "*** Testing convert_uudecode() : error conditions ***\n";
12:
13: echo "\n-- Testing convert_uudecode() function with no arguments --\n";
14: var_dump( convert_uudecode() );
15:
16: echo "\n-- Testing convert_uudecode() function with more than expected no. of arguments --\n";
17: $extra_arg = 10;
18: var_dump( convert_uudecode(72, $extra_arg) );
19:
20: ?>
21: ===DONE===
22: --EXPECTF--
23: *** Testing convert_uudecode() : error conditions ***
24:
25: -- Testing convert_uudecode() function with no arguments --
26:
27: Warning: convert_uudecode() expects exactly 1 parameter, 0 given in %s on line %d
28: bool(false)
29:
30: -- Testing convert_uudecode() function with more than expected no. of arguments --
31:
32: Warning: convert_uudecode() expects exactly 1 parameter, 2 given in %s on line %d
33: bool(false)
34:
35: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>