function it_should_error_if_a_LdapObject_is_missing_a_DN($connection)
{
$ldapObject = new LdapObject(['cn' => 'foo'], ['user'], 'user', 'user');
$this->setOptions(['foo' => ['attribute' => 'cn', 'filter' => ['objectClass' => 'bar']]]);
$this->setAttribute('foo');
$this->setLdapConnection($connection);
$this->shouldThrow('\\LdapTools\\Exception\\AttributeConverterException')->duringToLdap($ldapObject);
}