caxy / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
http://php-htmldiff.caxy.com
GNU General Public License v2.0
202 stars 51 forks source link

Configurable functional tests #103

Closed SavageTiger closed 3 years ago

SavageTiger commented 3 years ago

Description

In preparation for rewriting the convertHtmlToListOfWords() method I added the ability to apply configure flags to the functional tests.

This way its possible to set custom config flags, and test the effects of those config flags on the output.

I added the test scenario to this PR for the keep-new-lines feature, to make sure it still works after the rewrite.