diff --git a/example/phpunit-symfony/README.md b/example/phpunit-symfony/README.md index 924cf67..245c097 100644 --- a/example/phpunit-symfony/README.md +++ b/example/phpunit-symfony/README.md @@ -115,6 +115,13 @@ App\Dice\Dice We can generate code coverage as HTML. To do so we update the configuration file `phpunit.xml.dist` with a report instruction on the code coverage. +```xml + + + + +``` + You should place that section within the `` and ``. You can see a complete configuration filen in [`phpunit.xml.dist`](phpunit.xml.dist). ```xml @@ -127,6 +134,12 @@ You should place that section within the `` and ``. You can ``` +You can now execute the test suite and generate the code coverage report. + +``` +XDEBUG_MODE=coverage bin/phpunit +``` + When the test suite is executed and the code coverage reports are generated it might look like this in the output. ```