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

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

    function it_should_throw_an_exception_when_parsing_whether_the_old_rdn_should_be_deleted_and_it_is_not_valid()
    {
        $ldif = file_get_contents(__DIR__ . '/../../resources/ldif/fail_invalid_deleteoldrdn.txt');
        $e = new LdifParserException('Expected "0" or "1" but got: false on line number 4 near "deleteoldrdn: false"');
        $this->shouldThrow($e)->duringParse($ldif);
    }