1--TEST-- 2Attempt to instantiate an LDAP\Connection directly 3--EXTENSIONS-- 4ldap 5--FILE-- 6<?php 7 8try { 9 new LDAP\Connection(); 10} catch (Error $ex) { 11 echo "Exception: ", $ex->getMessage(), "\n"; 12} 13--EXPECT-- 14Exception: Cannot directly construct LDAP\Connection, use ldap_connect() instead 15