PHP Package: johnkary/phpunit-speedtrap

PHPUnit extension providing detailed performance metrics and warnings for slow tests

Current Version: 4.0.0
Last Updated: 2021-05-03
PHP Requirement: >=7.1
Dependencies:
phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PHPUnit-SpeedTrap is a performance monitoring tool for PHPUnit that captures detailed metrics on test execution times, detects slow tests, and warns developers to optimize test suites. By identifying bottlenecks and inefficient tests, it helps improve overall test suite performance and development efficiency. This extension empowers developers to create faster, more reliable test suites by pinpointing areas that need optimization and enhancing testing workflows.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.0.0

Download Download v4.0.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/johnkary/phpunit-speedtrap/4.0.0/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';

use JohnKary\PHPUnit\SpeedTrap\SpeedTrapListener;

$obj = new SpeedTrapListener();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.