function it_should_build_a_modrdn_entry_when_calling_rename() { $dn = 'dc=foo,dc=bar'; $name = 'cn=foobar'; $this->rename($dn, $name)->shouldReturnAnInstanceOf('LdapTools\\Ldif\\Entry\\LdifEntryModRdn'); $this->rename($dn, $name)->getDn()->shouldBeEqualTo($dn); $this->rename($dn, $name)->getNewRdn()->shouldBeEqualTo($name); // What should this really do with the old rdn? //$this->rename($dn, $name)->getDeleteOldRdn()->shouldBeEqualTo(true); }