function it_should_use_the_connect_timeout_value_from_the_config(TcpSocket $tcp)
{
$tcp->connect('foo', 389, 5)->shouldBeCalled()->willReturn(true);
$tcp->close()->shouldBeCalled();
$config = (new DomainConfiguration('example.com'))->setConnectTimeout(5)->setServers(['foo']);
$this->beConstructedWith($config, $tcp);
$this->getServer()->shouldReturn('foo');
}