PHP Testing

Open-source PHP projects categorized as Testing

Top 23 PHP Testing Projects

  1. PHPUnit

    The PHP Unit Testing framework.

    Project mention: Integration tests on Symfony with Testcontainers | dev.to | 2024-09-11

    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.

  2. 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.

    CodeRabbit logo
  3. PHPStan

    PHP Static Analysis Tool - discover bugs in your code without running it!

    Project mention: PHP: errors to avoid with constructors | dev.to | 2025-03-04

    PHPStan: composer require --dev phpstan/phpstan

  4. 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).

    Project mention: How To Mock a Nested Laravel Artisan Command | dev.to | 2025-04-20

    Install Mockery: composer require --dev mockery/mockery

  5. Pest

    Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.

    Project mention: 19+ Laravel Best Practices for Developers in 2024 | dev.to | 2025-03-14

    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.

  6. Prophecy

    Highly opinionated mocking framework for PHP 5.3+

  7. php-webdriver

    PHP client for Selenium/WebDriver protocol. Previously facebook/php-webdriver

  8. Codeception

    Full-stack testing PHP framework

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. Behat

    BDD in PHP

  11. php-ddd-example

    🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 7

  12. 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-16

    To setup the phoronix test suite:

  13. Alice

    Expressive fixtures generator (by nelmio)

  14. ParaTest

    :computer: Parallel testing for PHPUnit

  15. testbench

    Laravel Testing Helper for Packages Development

    Project mention: Testando e Implementando Pacotes Laravel: Um Guia Passo a Passo | dev.to | 2024-07-30
  16. Infection

    PHP Mutation Testing library

    Project mention: PHP: testing, "Attention please!" | dev.to | 2024-05-01

    consider adding mutation tests

  17. dusk

    Laravel Dusk provides simple end-to-end testing and browser automation.

    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

  18. PHPSpec

    SpecBDD Framework for PHP

  19. Atoum

    The modern, simple and intuitive PHP unit testing framework.

  20. 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.

  21. PHP Architecture Tester

    ✔️ PHP Architecture Tester - Easy architecture testing for PHP

  22. Kahlan

    :heavy_check_mark: PHP Test Framework for Freedom, Truth, and Justice

  23. phpunit-watcher

    A tool to automatically rerun PHPUnit tests when source code changes

    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.

  24. arkitect

    Put your architectural rules under test!

  25. AspectMock

    The most powerful and flexible mocking framework for PHPUnit / Codeception.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP Testing discussion

Log in or Post with

PHP Testing related posts

  • How to Build a Blog with Laravel (& Send Slack Notifications)

    5 projects | dev.to | 21 Apr 2025
  • How To Mock a Nested Laravel Artisan Command

    1 project | dev.to | 20 Apr 2025
  • Insights from the PHP Foundation Executive Director

    3 projects | dev.to | 14 Apr 2025
  • Laravel x GPT-4o” Makes Browser Testing Super Efficient! Introducing the most powerful tool!

    2 projects | dev.to | 23 Mar 2025
  • Configurando Ambiente em PHP no Windows

    2 projects | dev.to | 3 Mar 2025
  • How to build a Laravel app using TDD that won't hurt you in the future

    7 projects | dev.to | 3 Mar 2025
  • Late Night Refactors #1: Composer Packages

    4 projects | dev.to | 6 Feb 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 23 Apr 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
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.
coderabbit.ai