Annotation of embedaddon/php/ext/ldap/tests/ldap_first_attribute_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ldap_first_attribute() - Basic ldap_first_attribute test
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_and_bind($host, $port, $user, $passwd, $protocol_version);
14: insert_dummy_data($link);
15: $result = ldap_search($link, "dc=my-domain,dc=com", "(objectclass=organization)");
16: $entry = ldap_first_entry($link, $result);
17: var_dump(
18: ldap_first_attribute($link, $entry)
19: );
20: ?>
21: ===DONE===
22: --CLEAN--
23: <?php
24: include "connect.inc";
25:
26: $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
27: remove_dummy_data($link);
28: ?>
29: --EXPECT--
30: string(11) "objectClass"
31: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>