diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/standard/tests/strings/convert_uudecode_error.phpt | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/standard/tests/strings/convert_uudecode_error.phpt')
-rw-r--r-- | ext/standard/tests/strings/convert_uudecode_error.phpt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/convert_uudecode_error.phpt b/ext/standard/tests/strings/convert_uudecode_error.phpt new file mode 100644 index 0000000..77d3a88 --- /dev/null +++ b/ext/standard/tests/strings/convert_uudecode_error.phpt @@ -0,0 +1,35 @@ +--TEST-- +Test convert_uudecode() function : error conditions +--FILE-- +<?php + +/* Prototype : string convert_uudecode ( string $data ) + * Description: Decode a uuencoded string + * Source code: ext/standard/uuencode.c +*/ + +echo "*** Testing convert_uudecode() : error conditions ***\n"; + +echo "\n-- Testing convert_uudecode() function with no arguments --\n"; +var_dump( convert_uudecode() ); + +echo "\n-- Testing convert_uudecode() function with more than expected no. of arguments --\n"; +$extra_arg = 10; +var_dump( convert_uudecode(72, $extra_arg) ); + +?> +===DONE=== +--EXPECTF-- +*** Testing convert_uudecode() : error conditions *** + +-- Testing convert_uudecode() function with no arguments -- + +Warning: convert_uudecode() expects exactly 1 parameter, 0 given in %s on line %d +bool(false) + +-- Testing convert_uudecode() function with more than expected no. of arguments -- + +Warning: convert_uudecode() expects exactly 1 parameter, 2 given in %s on line %d +bool(false) + +===DONE=== |