Skip to content

Testing

phil/markup-bundle
AreaWhat is covered
PhilMarkupBundle, MarkupServicesThe services, their aliases and arguments; the formats, a format named twice, a later file replacing an earlier one, the default format and one not enabled; the levels, a level or format refused; the media hosts and those refused
MarkupFormats, UnavailableFormatThe enabled formats, the default one, a format unknown or not enabled, the levels lowered to each ceiling, the format of an add-on and its label
UjoConverterEvery enabled format into a document and its JSON, the metadata, pretty JSON, raw HTML up to the ceiling, a format not enabled, a UJO source not valid
MarkupFormatTypeThe enabled formats offered in order with their labels, a format submitted, one not enabled, a label for every format, the format of an add-on with its label
MarkupExtensionThe three filters, their defaults, the ceilings, null, a format not enabled
MediaHostsPassThe hosts given to an adapter another bundle registered, a purifier built otherwise left alone
A whole applicationFrameworkBundle with forms and a French translator, and TwigBundle: a template that compiles BBCode at two levels, purifies a stored text and writes UJO; the converter; the form type rendered with its French labels
vendor/bin/phpunit packages/markup-bundle/tests

Benchmarks

MarkupExtensionBench runs the three Twig filters on Markdown and BBCode, from a comment to a long post. From the monorepo root:

composer bench -- packages/markup-bundle/tests/Benchmark