spec\LdapTools\Utilities\LdapUtilitiesSpec::it_should_encode_carriage_returns_when_escaping_a_dn PHP Method

it_should_encode_carriage_returns_when_escaping_a_dn() public method

    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");
    }