1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00
Files
archived-php-src/ext/ldap/tests/ldap_first_attribute_error.phpt
2021-06-14 10:41:33 +02:00

21 lines
489 B
PHP

--TEST--
ldap_first_attribute() - Testing ldap_first_attribute() that should fail
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--EXTENSIONS--
ldap
--FILE--
<?php
require "connect.inc";
$link = ldap_connect($host, $port);
try {
var_dump(ldap_first_attribute($link, $link));
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
ldap_first_attribute(): Argument #2 ($entry) must be of type LDAP\ResultEntry, LDAP\Connection given