function it_should_error_when_a_required_attribute_is_missing_going_to_ldap() { $schema = new LdapObjectSchema('ad', 'user'); $schema->setRequiredAttributes(['foo']); $this->setLdapObjectSchema($schema); $this->shouldThrow('\\LogicException')->duringHydrateToLdap($this->objectToLdap); }