use Symfony\Component\Ldap\Tests\LdapTestCase;
/**
* @requires extension ldap
*
* @group integration
*/
class AdapterTest extends LdapTestCase
{ public function testLdapEscape() { $ldap =
new Adapter();
$this->
assertEquals('\20foo\3dbar\0d(baz)*\20',
$ldap->
escape(" foo=bar\r(baz)* ", '', LdapInterface::ESCAPE_DN
));
} /**
* @group functional
*/
public function testLdapQuery() { $ldap =
new Adapter($this->
getLdapConfig());