spec\LdapTools\Hydrator\ArrayHydratorSpec::it_should_respect_the_case_the_attribute_was_selected_by_when_hydrating PHP Метод

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

    function it_should_respect_the_case_the_attribute_was_selected_by_when_hydrating()
    {
        $schema = new LdapObjectSchema('ad', 'user');
        $schema->setAttributeMap(['firstName' => 'givenName', 'lastName' => 'sn']);
        $this->setLdapObjectSchema($schema);
        $this->setSelectedAttributes(['givenName', 'lastName']);
        $this->hydrateFromLdap($this->ldapEntries[0])->shouldHaveKey('givenName');
        $this->setSelectedAttributes(['GivenName', 'lastName']);
        $this->hydrateFromLdap($this->ldapEntries[0])->shouldHaveKey('GivenName');
        $this->setSelectedAttributes(['givenName', 'LastName']);
        $this->hydrateFromLdap($this->ldapEntries[0])->shouldHaveKey('LastName');
    }