function it_should_throw_an_exception_when_parsing_an_entry_where_the_changetype_is_redefined() { $ldif = file_get_contents(__DIR__ . '/../../resources/ldif/fail_redefined_changetype.txt'); $e = new LdifParserException('The changetype directive has already been defined on line number 3 near "changetype: add"'); $this->shouldThrow($e)->duringParse($ldif); }