php-src/ext/ldap/tests/ldap_constructor.phpt
Ilija Tovilo f39b5c4c25
Close PHP tags in tests
Closes GH-12422
2023-10-18 17:34:10 +02:00

15 lines
297 B
PHP

--TEST--
Attempt to instantiate an LDAP\Connection directly
--EXTENSIONS--
ldap
--FILE--
<?php
try {
new LDAP\Connection();
} catch (Error $ex) {
echo "Exception: ", $ex->getMessage(), "\n";
}
?>
--EXPECT--
Exception: Cannot directly construct LDAP\Connection, use ldap_connect() instead