PHP code example of webberwu / phpunit-pretty-print

1. Go to this page and download the library: Download webberwu/phpunit-pretty-print library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webberwu / phpunit-pretty-print example snippets

bash
php vendor/bin/phpunit --printer 'Webber\PHPUnitPrettyPrinter\PrettyPrinter' tests/
xml
<phpunit
    bootstrap="bootstrap.php"
    colors="true"
    printerClass="Webber\PHPUnitPrettyPrinter\PrettyPrinter">