phpunit-speedtrap
phpunit-speedtrap copied to clipboard
Documentation usage example
On the GitHub repository main page currently is the example under "Usage" section:
<phpunit bootstrap="vendor/autoload.php">
...
<extensions>
<extension class="JohnKary\PHPUnit\Extension\SpeedTrap" />
</extensions>
</phpunit>
I tried this code and failed. But this one is worked:
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener" />
</listeners>
ya they changed the namespace back in March 2021 but didn't update the docs: https://github.com/johnkary/phpunit-speedtrap/commit/8c280eed9e447f366bbfb2584622b4a956c395f0
I just hit this issue; seems like if @johnkary just published a new release this would be resolved...