1--TEST-- 2ldap_first_attribute() - Testing ldap_first_attribute() that should fail 3--CREDITS-- 4Patrick Allaert <patrickallaert@php.net> 5# Belgian PHP Testfest 2009 6--EXTENSIONS-- 7ldap 8--FILE-- 9<?php 10require "connect.inc"; 11 12$link = ldap_connect($uri); 13try { 14 var_dump(ldap_first_attribute($link, $link)); 15} catch (TypeError $e) { 16 echo $e->getMessage(), "\n"; 17} 18?> 19--EXPECT-- 20ldap_first_attribute(): Argument #2 ($entry) must be of type LDAP\ResultEntry, LDAP\Connection given 21