SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 PHP Testing Projects
-
One of biggest advantages of Symfony is the support to do tests integrated with PHPUnit and with a functional kernel to do the bootstrap necessary for the tests.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
PHPStan: composer require --dev phpstan/phpstan
-
Mockery
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Install Mockery: composer require --dev mockery/mockery
-
Pest
Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
Laravel also has out-of-the-box testing tools like Pest and PHPUnit and functionalities to enable expressive testing. It also supports executing automated testing sessions that are more precise than manual ones.
-
-
-
-
InfluxDB
InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
-
-
-
phoronix-test-suite
The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.
Project mention: C4D VMs on Google Cloud: Breaking Records Again with EPYC Turin | dev.to | 2025-04-16To setup the phoronix test suite:
-
-
-
Project mention: Testando e Implementando Pacotes Laravel: Um Guia Passo a Passo | dev.to | 2024-07-30
-
consider adding mutation tests
-
Project mention: Laravel x GPT-4o” Makes Browser Testing Super Efficient! Introducing the most powerful tool! | dev.to | 2025-03-23
Laravel Dusk Official Documentation
-
-
-
VFS Stream
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.
-
-
-
Project mention: How to build a Laravel app using TDD that won't hurt you in the future | dev.to | 2025-03-03
To avoid constant tests relaunch we will use a tests watcher by Spatie that will automatically rerun them in case of any file change.
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
PHP Testing discussion
PHP Testing related posts
-
How to Build a Blog with Laravel (& Send Slack Notifications)
-
How To Mock a Nested Laravel Artisan Command
-
Insights from the PHP Foundation Executive Director
-
Laravel x GPT-4o” Makes Browser Testing Super Efficient! Introducing the most powerful tool!
-
Configurando Ambiente em PHP no Windows
-
How to build a Laravel app using TDD that won't hurt you in the future
-
Late Night Refactors #1: Composer Packages
-
A note from our sponsor - SaaSHub
www.saashub.com | 23 Apr 2025
Index
What are some of the best open-source Testing projects in PHP? This list will help you:
# | Project | Stars |
---|---|---|
1 | PHPUnit | 19,842 |
2 | PHPStan | 13,312 |
3 | Mockery | 10,691 |
4 | Pest | 10,159 |
5 | Prophecy | 8,517 |
6 | php-webdriver | 5,183 |
7 | Codeception | 4,805 |
8 | Behat | 3,931 |
9 | php-ddd-example | 3,039 |
10 | phoronix-test-suite | 2,672 |
11 | Alice | 2,525 |
12 | ParaTest | 2,364 |
13 | testbench | 2,167 |
14 | Infection | 2,084 |
15 | dusk | 1,912 |
16 | PHPSpec | 1,888 |
17 | Atoum | 1,443 |
18 | VFS Stream | 1,430 |
19 | PHP Architecture Tester | 1,158 |
20 | Kahlan | 1,146 |
21 | phpunit-watcher | 866 |
22 | arkitect | 791 |
23 | AspectMock | 786 |