spec\LdapTools\Hydrator\OperationHydratorSpec::let PHP Метод

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

public let ( LdapTools\Connection\LdapConnectionInterface $connection, LdapObject $rootdse )
$connection LdapTools\Connection\LdapConnectionInterface
$rootdse LdapTools\Object\LdapObject
    function let(LdapConnectionInterface $connection, LdapObject $rootdse)
    {
        $domain = new DomainConfiguration('example.local');
        $domain->setUseTls(true);
        $connection->getConfig()->willReturn($domain);
        $connection->getRootDse()->willReturn($rootdse);
        $config = new Configuration();
        $this->parser = new SchemaYamlParser($config->getSchemaFolder());
        $this->schema = $this->parser->parse('ad', 'user');
    }