spec\LdapTools\Ldif\Entry\LdifEntryModDnSpec::it_should_get_the_ldif_string_representation PHP Метод

it_should_get_the_ldif_string_representation() публичный Метод

    function it_should_get_the_ldif_string_representation()
    {
        $newRdn = 'cn=foobar';
        $newLocation = 'ou=foo,dc=foo,dc=bar';
        $deleteOldRdn = false;
        $this->beConstructedWith('dc=foo,dc=bar', $newLocation, $newRdn, $deleteOldRdn);
        $ldif = "# Modify DN example.\r\n" . "dn: dc=foo,dc=bar\r\n" . "changetype: moddn\r\n" . "newrdn: cn=foobar\r\n" . "newsuperior: ou=foo,dc=foo,dc=bar\r\n" . "deleteoldrdn: 0\r\n";
        $this->addComment('Modify DN example.');
        $this->toString()->shouldBeEqualTo($ldif);
    }