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