We have gone over a lot of PHPUnit functionality and how to use this functionality to build a test suite. Once you have a test suite created it is good to understand how effective your unit tests are. One way you can measure the effectiveness of your tests is by seeing how much of your code is actually under test. This is commonly referred to as your test suite's code coverage. PHPUnit has very useful reporting tools to help measure and monitor this coverage.
To generate code coverage reports you must have XDebug installed. This can typically be accomplished using your operating system's packaging system.
Make the following modifications to the
phpunit.xml.dist file as shown by the highlighted ...