spec\LdapTools\Ldif\LdifParserSpec::it_should_throw_an_exception_when_parsing_a_modify_type_and_the_keys_following_the_directive_do_not_match_the_attribute PHP Метод

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

    function it_should_throw_an_exception_when_parsing_a_modify_type_and_the_keys_following_the_directive_do_not_match_the_attribute()
    {
        $ldif = file_get_contents(__DIR__ . '/../../resources/ldif/fail_modify_invalid_attribute.txt');
        $e = new LdifParserException('Attribute "bar" does not match "postaladdress" for adding values. on line number 4 near "foo: bar"');
        $this->shouldThrow($e)->duringParse($ldif);
    }