Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class JohnKary\PHPUnit\Extension\SpeedTrap does not exist #104

Open
f-laino opened this issue Jun 18, 2024 · 1 comment
Open

Class JohnKary\PHPUnit\Extension\SpeedTrap does not exist #104

f-laino opened this issue Jun 18, 2024 · 1 comment

Comments

@f-laino
Copy link

f-laino commented Jun 18, 2024

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

@umpirsky
Copy link

umpirsky commented Aug 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants