PHP code example of graze / hamcrest-test-listener

1. Go to this page and download the library: Download graze/hamcrest-test-listener 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/ */

    

graze / hamcrest-test-listener example snippets

xml
<phpunit
    beStrictAboutTestsThatDoNotTestAnything="false"> <!-- PHPUnit will not consider Hamcrest assertions -->
    
    <listeners>
        <listener class="\Hamcrest\Adapter\PHPUnit\TestListener"/>
    </listeners>
</phpunit>