Unit tests for HTML Output?

后端 未结 9 1672
无人共我
无人共我 2021-02-19 00:49

This may be a dumb question, but do you make unit tests for the HTML output of your PHP functions/scripts?

I try to keep my HTML and my PHP separate - i.e. HTML includes

9条回答
  •  忘掉有多难
    2021-02-19 01:25

    There is an extension for PHPUnit that does html validation here: https://github.com/xvoland/html-validate

提交回复
热议问题