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

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

    function it_should_throw_an_exception_when_parsing_the_criticality_for_a_ldap_control_and_it_is_not_valid()
    {
        $ldif = file_get_contents(__DIR__ . '/../../resources/ldif/fail_invalid_control_criticality.txt');
        $e = new LdifParserException('Expected "true" or "false" but got foo on line number 3 near "control: 1.2.840.113556.1.4.805 foo"');
        $this->shouldThrow($e)->duringParse($ldif);
    }