function it_should_throw_an_exception_when_passing_an_invalid_object_to_create() { $this->shouldThrow('\\LdapTools\\Exception\\InvalidArgumentException')->duringCreate(new DomainConfiguration('foo.bar')); }