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

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

    function it_should_convert_values_if_a_converter_was_defined_for_an_attribute()
    {
        $schema = new LdapObjectSchema('ad', 'user');
        $schema->setAttributeMap(['firstName' => 'givenName', 'lastName' => 'sn', 'created' => 'whenCreated']);
        $schema->setConverterMap(['created' => 'generalized_time']);
        $this->setLdapObjectSchema($schema);
        $this->setSelectedAttributes(['givenName', 'lastName', 'created']);
        $this->hydrateFromLdap($this->ldapEntries[0])->shouldHaveKeyWithDateTime('created');
    }