Annotation of embedaddon/php/ext/standard/tests/misc/syslog_parameters.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Syslog parameter parsing test
3: --FILE--
4: <?php
5: openlog();
6: openlog(NULL, 'string', 0);
7:
8: syslog();
9: syslog('Wrong parameter order', LOG_WARNING);
10:
11: closelog('Doesnt take any parameters');
12: ?>
13: --EXPECTF--
14: Warning: openlog() expects exactly 3 parameters, 0 given in %s on line %d
15:
16: Warning: openlog() expects parameter 2 to be long, string given in %s on line %d
17:
18: Warning: syslog() expects exactly 2 parameters, 0 given in %s on line %d
19:
20: Warning: syslog() expects parameter 1 to be long, string given in %s on line %d
21:
22: Warning: closelog() expects exactly 0 parameters, 1 given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>