#101934Cleanup code for ContentObjectRenderer::listNum and add tests
Description
- Add unit tests for function ContentObjectRenderer::listNum.
- Improve code by renaming function argument ($char => $delimeter)
- Make sure arguments are always passed as strings (and not null)
(as declared in PHPDoc)
- Improve clarity of description in PHPDoc
In the future typehints can be added for function arguments and
return type.