function let(\LdapTools\Connection\LdapConnectionInterface $connection) { $connection->getConfig()->willReturn(new DomainConfiguration('example.local')); }