l;u#e=! ';
$expected='\20\20\16 t\,e\+s\"t\,\\\\v\l\;u\#e\=!\20\20\20\20';
$this->assertEquals($expected, Zend_Ldap_Dn::escapeValue($dnval));
$this->assertEquals($expected, Zend_Ldap_Dn::escapeValue(array($dnval)));
$this->assertEquals(array($expected, $expected, $expected),
Zend_Ldap_Dn::escapeValue(array($dnval, $dnval, $dnval)));
}
public function testUnescapeValues()
{
$dnval='\\20\\20\\16\\20t\\,e\\+s \\"t\\,\\\\v\\l\\;u\\#e\\=!\\20\\20\\20\\20';
$expected=' '.chr(22).' t,e+s "t,\\vl;u#e=! ';
$this->assertEquals($expected, Zend_Ldap_Dn::unescapeValue($dnval));
$this->assertEquals($expected, Zend_Ldap_Dn::unescapeValue(array($dnval)));
$this->assertEquals(array($expected, $expected, $expected),
Zend_Ldap_Dn::unescapeValue(array($dnval,$dnval,$dnval)));
}
}