spec\LdapTools\Connection\RootDseSpec::let PHP Метод

let() публичный Метод

public let ( LdapTools\Connection\LdapConnectionInterface $connection, LdapTools\Event\EventDispatcherInterface $dispatcher )
$connection LdapTools\Connection\LdapConnectionInterface
$dispatcher LdapTools\Event\EventDispatcherInterface
    function let(LdapConnectionInterface $connection, EventDispatcherInterface $dispatcher)
    {
        $connection->execute(Argument::that(function ($operation) {
            return $operation->getFilter() == "(&(objectClass=*))" && $operation->getBaseDn() == "";
        }))->willReturn($this->entry);
        $connection->getConfig()->willReturn(new DomainConfiguration('example.local'));
        $connection->isBound()->willReturn(false);
        $connection->connect('', '', true)->willReturn(null);
        $this->beConstructedWith($connection, $dispatcher);
    }