Annotation of embedaddon/php/ext/ldap/tests/ldap_start_tls_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ldap_start_tls() - Binding 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: <?php require_once('skipifbindfailure.inc'); ?>
9: --FILE--
10: <?php
11: require "connect.inc";
12:
13: $link = ldap_connect($host, $port);
14: ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
15:
16: // Invalid parameter count
17: var_dump(ldap_start_tls());
18: var_dump(ldap_start_tls($link, $link));
19: ?>
20: ===DONE===
21: --EXPECTF--
22: Warning: ldap_start_tls() expects exactly 1 parameter, 0 given in %s on line %d
23: NULL
24:
25: Warning: ldap_start_tls() expects exactly 1 parameter, 2 given in %s on line %d
26: NULL
27: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>