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