johnkary / phpunit-speedtrap

Reports on slow-running tests in your PHPUnit test suite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation usage example

netdjw opened this issue · comments

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:
8c280ee