public function testLdapEscape() { $ldap = new LdapClient(); $this->assertEquals('\\20foo\\3dbar\\0d(baz)*\\20', $ldap->escape(" foo=bar\r(baz)* ", null, p::LDAP_ESCAPE_DN)); }
public function testLdapEscape() { $this->ldap->expects($this->once())->method('escape')->with('foo', 'bar', 'baz'); $this->client->escape('foo', 'bar', 'baz'); }
/** * @dataProvider provideLdapEscapeValues */ public function testLdapEscape($subject, $ignore, $flags, $expected) { $ldap = new LdapClient(); $this->assertSame($expected, $ldap->escape($subject, $ignore, $flags)); }