phpunit-speedtrap
phpunit-speedtrap copied to clipboard
Class JohnKary\PHPUnit\Extension\SpeedTrap does not exist
My phpunit.xml:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
</include>
</coverage>
<extensions>
<extension class="JohnKary\PHPUnit\Extension\SpeedTrap" />
</extensions>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
</php>
</phpunit>
I also tried with backslash: <extension class="\JohnKary\PHPUnit\Extension\SpeedTrap" />
phpunit version 9.5.4 php 7.3 on Laravel 5.8
It exists, but only in master branch. Follow the docs from the version you are using https://github.com/johnkary/phpunit-speedtrap/tree/v4.0.1