Annotation of embedaddon/php/ext/ldap/tests/ldap_list_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ldap_list() - operation that should fail
3: --CREDITS--
4: Patrick Allaert <patrickallaert@php.net>
5: # Belgian PHP Testfest 2009
6: --SKIPIF--
7: <?php require_once('skipif.inc'); ?>
8: --FILE--
9: <?php
10: include "connect.inc";
11:
12: $link = ldap_connect($host, $port);
13:
14: // Too few parameters
15: var_dump(ldap_list());
16: var_dump(ldap_list($link));
17: var_dump(ldap_list($link, $link));
18:
19: // Too many parameters
20: var_dump(ldap_list($link, "dc=my-domain,dc=com", "(objectClass=*)", array(), 0, 0, 0, 0 , "Additional data"));
21: ?>
22: ===DONE===
23: --EXPECTF--
24: Warning: ldap_list() expects at least 3 parameters, 0 given in %s on line %d
25: NULL
26:
27: Warning: ldap_list() expects at least 3 parameters, 1 given in %s on line %d
28: NULL
29:
30: Warning: ldap_list() expects at least 3 parameters, 2 given in %s on line %d
31: NULL
32:
33: Warning: ldap_list() expects at most 8 parameters, 9 given in %s on line %d
34: NULL
35: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>