Annotation of embedaddon/php/ext/ldap/tests/ldap_parse_reference_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ldap_parse_reference() - ldap_parse_reference() operations 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: require "connect.inc";
                     11: $link = ldap_connect($host, $port);
                     12: $refs = null;
                     13: var_dump(
                     14:        ldap_parse_reference($link, $link),
                     15:        ldap_parse_reference($link, $link, $refs),
                     16:        ldap_parse_reference($link, $refs, $refs, "Additional data"),
                     17:        $refs
                     18: );
                     19: ?>
                     20: ===DONE===
                     21: --EXPECTF--
                     22: Warning: ldap_parse_reference() expects exactly 3 parameters, 2 given in %s on line %d
                     23: 
                     24: Warning: ldap_parse_reference(): supplied resource is not a valid ldap result entry resource in %s on line %d
                     25: 
                     26: Warning: ldap_parse_reference() expects exactly 3 parameters, 4 given in %s on line %d
                     27: NULL
                     28: bool(false)
                     29: NULL
                     30: NULL
                     31: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>