johnkary / phpunit-speedtrap

Reports on slow-running tests in your PHPUnit test suite
MIT License
782 stars 62 forks source link

Documentation usage example #100

Open netdjw opened 1 year ago

netdjw commented 1 year ago

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>
tn3rb commented 1 year ago

ya they changed the namespace back in March 2021 but didn't update the docs: https://github.com/johnkary/phpunit-speedtrap/commit/8c280eed9e447f366bbfb2584622b4a956c395f0

ggilder commented 1 year ago

I just hit this issue; seems like if @johnkary just published a new release this would be resolved...