function it_should_encode_carriage_returns_when_escaping_a_dn()
{
$this->escapeValue("Before\rAfter", null, LDAP_ESCAPE_DN)->shouldBeEqualTo('Before\\0dAfter');
$this->escapeValue("Before\rAfter", null, LDAP_ESCAPE_FILTER)->shouldBeEqualTo("Before\rAfter");
}