spec\LdapTools\Operation\Invoker\LdapOperationInvokerSpec::let PHP Метод

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

public let ( LdapTools\Connection\LdapConnectionInterface $connection, LdapTools\Event\EventDispatcherInterface $dispatcher, LdapTools\Log\LdapLoggerInterface $logger )
$connection LdapTools\Connection\LdapConnectionInterface
$dispatcher LdapTools\Event\EventDispatcherInterface
$logger LdapTools\Log\LdapLoggerInterface
    function let(LdapConnectionInterface $connection, EventDispatcherInterface $dispatcher, LdapLoggerInterface $logger)
    {
        $connection->getConfig()->willReturn(new DomainConfiguration('example.local'));
        $connection->getConnection()->willReturn(null);
        $connection->isBound()->willReturn(true);
        $connection->getServer()->willReturn('foo');
        $connection->getIdleTime()->willReturn(1);
        $this->setConnection($connection);
        $this->setEventDispatcher($dispatcher);
        $this->setLogger($logger);
    }