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

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

    function it_should_throw_an_exception_when_the_key_value_format_is_invalid()
    {
        $ldif = file_get_contents(__DIR__ . '/../../resources/ldif/fail_invalid_key_value_format.txt');
        $e = new LdifParserException('Expecting a LDIF directive on line number 3 near "cn;; foobar"');
        $this->shouldThrow($e)->duringParse($ldif);
    }