Compatibility with PHPUnit 9.5+ and more
๐ Version 3.3.0 has been released! ๐
If you encounter issues please open a new Issue or create a new Discussion.
How do I upgrade?
Version 3.3.0 is backwards compatible with all prior version 3.0 releases. There are no breaking changes.
{
"require": {
"johnkary/phpunit-speedtrap": "^3.3"
}
}
$ composer update johnkary/phpunit-speedtrap
Compatibility with PHPUnit 9.5+
Thank you @mvorisek for communicating with Sebastian on the fix and proposing PR #73 fixing the issue. And thank you to everyone upvoting that the fix worked!
New Feature: Disable slowness profiling using an environment variable
SpeedTrapListener profiles for slow tests when enabled in phpunit.xml. But using an environment variable named PHPUNIT_SPEEDTRAP can enable or disable the listener.
$ PHPUNIT_SPEEDTRAP="disabled" ./vendor/bin/phpunit
Use case: Disable profiling in development, but profile with Travis CI
Travis CI is popular for running tests in the cloud after pushing new code to a repository.