Testing

Libraries for testing codebases and generating test data.

Newest releases

voduytuan httpdock Very simple mock HTTP Server for testing Restful API, running via Docker. Start Server Starting this server via command: docker run -ti -d -p
 
218

lmc-eu Steward: easy and robust testing with Selenium WebDriver + PHPUnit Steward is a set of libraries made to simplify writing and running robust functiona
 

ergebnis data-provider Installation Run composer require --dev ergebnis/data-provider Usage This package provides the following generic data providers: Ergebni
 
587

carlosas Easy to use architecture testing tool for PHP ⚠ PHP 8 supported temporarily in the package version v0.8.x-dev Introduction 📜 PHP Architecture Tester
 
1.5k

infection Infection - Mutation Testing framework Please read documentation here: infection.github.io Twitter: @infection_php Discord: https://discord.gg/ZUmyHTJ
 
15

claudiodekker inertiajs/inertia-laravel Testing Helpers NOTE: This package WILL be deprecated once ANY official testing helpers become available in inertiajs/inerti
 
33

recca0120 it can run async request in laravel feature testing
 
20

slope-it ClockMock provides a way for mocking the current timestamp used by PHP for \DateTime(Immutable) objects and date/time related functions.
 
1.3k

rialto-php A Puppeteer bridge for PHP, supporting the entire API.
 
191

AndreasElia Generate a Postman collection automatically from your Laravel API
 
1.3k

ssl ezXSS is an easy way for penetration testers and bug bounty hunters to test (blind) Cross Site Scripting.
 
18

stephenjude A collection of helper methods for testing and debugging API endpoints.
 
70

BadApple9 speedtest-x 使用文件数据库来保存来自不同用户的测速结果,方便您查看全国不同地域与运营商的测速效果。
 
18

arryanggaputra This Shop Directory project was built for the purpose of testing the modern monolith architecture that is quite popular today, the stacks used for this project are Laravel, InertiaJS, ReactJS, TypeScript, and TailwindCSS.
 
48

mattiasgeniar A custom assertion for phpunit that allows you to count the number of SQL queries used in a test. Can be used to enforce certain performance characteristics (ie: limit queries to X for a certain action).
 
18

Roave Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis
 

pestphp Pest is an elegant PHP Testing Framework with a focus on simplicity. It was carefully crafted to bring the joy of testing to PHP.
 
Popular
8.3k

sebastianbergmann SebastianBergmann\CodeCoverage SebastianBergmann\CodeCoverage is a library that provides collection, processing, and rendering functionality for PHP code coverage information. Installation You c
 
343

nunomaduro Pest was created by, and is maintained by Nuno Maduro and is an enjoyable PHP testing solution. Works out of the box for any PHPUnit project. 🚀 Installation & Usage Requires PHP 7.2+ and p
 
1.7k

laravel Introduction Laravel Dusk provides an expressive, easy-to-use browser automation and testing API. By default, Dusk does not require you to install JDK or Selenium on your machine. Instead, Dusk uses a sta
 
464

Roave roave/no-leaks This library is a PHPUnit plugin that detects memory leaks in tested code or tests. Installation composer require --dev roave/no-leaks Usage In your phpunit.xml configuration, a
 
550

beyondcode Laravel Dusk Dashboard A beautiful dashboard for your Dusk test suites. Installation You can install the package via composer: composer require beyondcode/dusk-dashboard --dev Next up, you need to
 
31

spatie PHP Selenium client Selenium is a great tool for testing. This package gives you a boilerplate setup to automate UI testing tasks you'd do manually otherwise. For example: you can make a scenario to test the flow of a
 
162

beyondcode Laravel Visual Diff This package can create a visual diff of two screenshots of your Laravel application. It works for both - regular HTTP tests, as well as tests using Laravel Dusk. Behind the scenes, it uses Pixe
 
47

zabaala Laravel pre-commit A Laravel package to analyze your PHP code and check your PHPUnit tests before commit your code. Requirements PHP >= 7.0.0 phpunit/phpunit ~6.0 squizlabs/php_codesniffer ~6.0
 
1.2k

mikeerickson CD PHPUnit Pretty Result Printer Version 0.27 Extend the default PHPUnit Result Printer with a modern, pretty printer! 📦 PHPUnit Pretty Result Printer -- Packagist Installation Installation is pro
 
109

matthiasnoback Live code coverage This library should help you generate code coverage reports on a live server (it doesn't have to be a production server of course). Install this library using: composer require matthiasnoback/li
 
727

antonioribeiro TDDD - Test Driven Development Dashboard A Self-Hosted TDD Dashboard & Tests Watcher What is it? TDD Dashboard, is an app (built as a Laravel PHP package) to watch and run all your tests
 
801

spatie Automatically rerun PHPUnit tests when source code changes Wouldn't it be great if your PHPUnit tests would be automatically rerun whenever you change some code? This package can do exactly that. With the package
 
319

php-mock PHP-Mock: mocking built-in PHP functions PHP-Mock is a testing library which mocks non deterministic built-in PHP functions like time() or rand(). This is achieved by PHP's namespace fallback policy: PHP will fall b
 
248

jwage PHPChunkit PHPChunkit is a library that sits on top of PHPUnit and adds additional functionality to make it easier to work with large unit and functional test suites. The primary feature is test chunking and databas
 
1.1k

kahlan Kahlan is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward. Kahlan lets you stub or monkey patch your code directly like in Rub