function it_should_force_arrays_on_multivalued_attributes_when_returning_results($connection)
{
$connection->execute(Argument::any())->willReturn($this->ldapEntries);
$schema = new LdapObjectSchema('ad', 'user');
$schema->setMultivaluedAttributes(['otherHomePhone']);
$schema->setFilter(new Comparison('foo', '=', 'bar'));
$this->operation->setAttributes(['otherHomePhone']);
$this->operation->setBaseDn('dc=foo,dc=bar');
$this->filter->addLdapObjectSchema($schema);
$this->execute(HydratorFactory::TO_OBJECT)->first()->getOtherHomePhone()->shouldBeArray();
$this->execute(HydratorFactory::TO_OBJECT)->last()->getOtherHomePhone()->shouldBeArray();
}