How to register failures in php module?

How to register only crashes in an external file, from php unit? I want complete information, including the actual value, expected value, line number, etc. Now I am using fwrite and logging all the pass and fail tests to a file, is there a better way to do this?

+3
source share
1 answer

See the chapter in the “Registering with the PHPUnit Guide” section .

The “right” way to do this is to write your own Logger and connect it to the PHPUnit Logging API. Or extend the PHPUnit standard Listener to write any errors to a file.

phpunit.xml. . PHPUnit :

HTML XSLT, :

+4

Source: https://habr.com/ru/post/1749297/


All Articles