PHP Testing

Open-source PHP projects categorized as Testing

Top 23 PHP Testing Projects

  • PHPUnit

    The PHP Unit Testing framework.

    Project mention: 8 Essential Tools Every PHP Developer Needs | | 2024-02-27

    PHPUnit is the de facto standard for PHP unit testing. It provides a framework for writing and running tests, helping developers quickly discover and fix errors. PHPUnit encourages developers to write testable code and adopt a test-driven development approach, resulting in higher-quality code and reduced chances of errors in production.

  • PHPStan

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

    Project mention: 8 Essential Tools Every PHP Developer Needs | | 2024-02-27

    PHPStan focuses on finding errors in PHP code without running it. It captures all types of errors, even before you write tests. It brings PHP closer to compiled languages by checking the correctness of each line of code before execution.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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

  • 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: Simplifying API Integration with Laravel's Http Facade | | 2023-11-10

    Below, I added some examples for testing the request and client classes. For the tests, I am using Pest PHP which provides a clean syntax and additional features on top of PHPUnit.

  • Prophecy

    Highly opinionated mocking framework for PHP 5.3+

  • php-webdriver

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

  • Codeception

    Full-stack testing PHP framework

    Project mention: Any good resources on how to do “interaction” tests? | /r/PHP | 2023-05-27
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • Behat

    BDD in PHP

  • php-ddd-example

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

    Project mention: Hexagonal Architecture, DDD and CQRS in PHP | | 2023-10-28
  • Alice

    Expressive fixtures generator (by nelmio)

  • phoronix-test-suite

    The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.

    Project mention: Best way to benchmark PCs under Linux, with CPU/GPU/disk/RAM testing? | /r/linuxquestions | 2023-12-11

    phoronix test suite has a benchmark for pretty much everything

  • ParaTest

    :computer: Parallel testing for PHPUnit

  • testbench

    Laravel Testing Helper for Packages Development (by orchestral)

  • Infection

    PHP Mutation Testing library

    Project mention: Who tests the tests? Mutation testing with Infection in PHP | | 2023-11-08

    Obviously, we can not generate mutants manually. For that purpose, there are mutation testing utilities. For PHP, we have Infection.

  • PHPSpec

    SpecBDD Framework for PHP

  • dusk

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

  • Atoum

    The modern, simple and intuitive PHP unit testing framework.

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

  • Kahlan

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

  • PHP Architecture Tester

    PHP Architecture Tester - Easy to use architectural testing tool for PHP :heavy_check_mark:

    Project mention: Enforce architecture rules with Deptrac | | 2023-10-31

    PHP Architecture Tester (as a PHPStan plugin)

  • phpunit-watcher

    A tool to automatically rerun PHPUnit tests when source code changes

  • AspectMock

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

  • PHP Censor

    PHP Censor is an open source self-hosted continuous integration server for PHP projects.

  • SaaSHub

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

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). The latest post mention was on 2024-02-27.

PHP Testing related posts


What are some of the best open-source Testing projects in PHP? This list will help you:

Project Stars
1 PHPUnit 19,532
2 PHPStan 12,444
3 Mockery 10,542
4 Pest 8,607
5 Prophecy 8,532
6 php-webdriver 5,002
7 Codeception 4,737
8 Behat 3,876
9 php-ddd-example 2,874
10 Alice 2,461
11 phoronix-test-suite 2,260
12 ParaTest 2,226
13 testbench 2,038
14 Infection 1,964
15 PHPSpec 1,862
16 dusk 1,810
17 Atoum 1,436
18 VFS Stream 1,395
19 Kahlan 1,138
20 PHP Architecture Tester 982
21 phpunit-watcher 842
22 AspectMock 787
23 PHP Censor 665
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives