function it_should_return_a_single_result_when_calling_getSingleResult($connection)
{
$result = $this->ldapEntries;
$result['count'] = 1;
unset($result[1]);
$this->operation->setAttributes(['objectGuid']);
$connection->execute(Argument::that(function ($op) {
return $op->getAttributes() == ['objectGuid'];
}))->willReturn($result);
$this->getSingleResult()->shouldReturnAnInstanceOf('\\LdapTools\\Object\\LdapObject');
$this->getSingleResult(HydratorFactory::TO_ARRAY)->shouldBeArray();
}