diff --git a/src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/EntryManagerTest.php b/src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/EntryManagerTest.php index 0617762ed6..758ae78e49 100644 --- a/src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/EntryManagerTest.php +++ b/src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/EntryManagerTest.php @@ -17,6 +17,22 @@ use Symfony\Component\Ldap\Entry; class EntryManagerTest extends TestCase { + /** + * @expectedException \Symfony\Component\Ldap\Exception\LdapException + * @expectedExceptionMessage Entry "$$$$$$" malformed, could not parse RDN. + */ + public function testMove() + { + $connection = $this->createMock(Connection::class); + $connection + ->expects($this->once()) + ->method('isBound')->willReturn(true); + + $entry = new Entry('$$$$$$'); + $entryManager = new EntryManager($connection); + $entryManager->move($entry, 'a'); + } + /** * @expectedException \Symfony\Component\Ldap\Exception\NotBoundException * @expectedExceptionMessage Query execution is not possible without binding the connection first.