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