spec\LdapTools\Hydrator\LdapObjectHydratorSpec::it_should_hydrate_a_ldap_object_wihtout_a_schema_with_batch_modification PHP Метод

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

    function it_should_hydrate_a_ldap_object_wihtout_a_schema_with_batch_modification()
    {
        $ldapObject = new LdapObject(['dn' => 'cn=foo,dc=foo,dc=bar'], [], 'user', '');
        $ldapObject->set('givenName', 'Chad');
        $ldapObject->add('sn', 'Sikorra');
        $ldapObject->remove('sAMAccountName', 'csikorra');
        $ldapObject->reset('mail');
        $this->hydrateToLdap($ldapObject)->shouldBeEqualTo($this->batch);
        $this->hydrateToLdap($ldapObject)->shouldHaveCount(4);
    }