Unit tests for HTML Output?

后端 未结 9 1178
-上瘾入骨i
-上瘾入骨i 2021-02-19 00:39

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:10

    You can use PHPUnit. It has Output testing.

    http://www.phpunit.de/manual/3.0/en/testcase-extensions.html

提交回复
热议问题