Annotation of embedaddon/php/ext/ldap/tests/ldap_first_attribute_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ldap_first_attribute() - Testing ldap_first_attribute() 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:
! 12: $link = ldap_connect($host, $port);
! 13: var_dump(ldap_first_attribute($link));
! 14: var_dump(ldap_first_attribute($link, $link));
! 15: ?>
! 16: ===DONE===
! 17: --EXPECTF--
! 18: Warning: ldap_first_attribute() expects %s 2 parameters, 1 given in %s on line %d
! 19: NULL
! 20:
! 21: Warning: ldap_first_attribute(): supplied resource is not a valid ldap result entry resource in %s on line %d
! 22: bool(false)
! 23: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>