Annotation of embedaddon/php/ext/standard/tests/strings/addcslashes_004.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test addcslashes() function (errors)
3: --INI--
4: precision=14
5: --FILE--
6: <?php
7:
8: echo "\n*** Testing error conditions ***\n";
9: /* zero argument */
10: var_dump( addcslashes() );
11:
12: /* unexpected arguments */
13: var_dump( addcslashes("foo[]") );
14: var_dump( addcslashes('foo[]', "o", "foo") );
15:
16: echo "Done\n";
17:
18: ?>
19: --EXPECTF--
20: *** Testing error conditions ***
21:
22: Warning: addcslashes() expects exactly 2 parameters, 0 given in %s on line %d
23: NULL
24:
25: Warning: addcslashes() expects exactly 2 parameters, 1 given in %s on line %d
26: NULL
27:
28: Warning: addcslashes() expects exactly 2 parameters, 3 given in %s on line %d
29: NULL
30: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>