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

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

    function it_should_convert_values_when_hydrating_to_ldap()
    {
        $schema = new LdapObjectSchema('ad', 'user');
        $schema->setAttributeMap(['foo' => 'bar']);
        $schema->setConverterMap(['foo' => 'bool']);
        $this->setLdapObjectSchema($schema);
        $attributes = $this->objectToLdap;
        $attributes['foo'] = true;
        $this->hydrateToLdap($attributes)->shouldContain('TRUE');
    }