PHP Testing

Open-source PHP projects categorized as Testing | Edit details

Top 23 PHP Testing Projects

  • GitHub repo PHPUnit

    The PHP Unit Testing framework.

    Project mention: Hi guys. After working few years with other languages, returning to PHP, then, I created this library, suggestions are appreciated | | 2021-11-30
  • GitHub repo 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: I share my authentication server. | | 2021-12-20

    Continuous Integration - Testify, sqlmock, Mockery, Github Actions

  • Cloudways

    Managed Cloud Hosting Platform. Deploy PHP applications on Cloudways web hosting platform to get high uptime and optimized performance. Use the BFCM promo "BFCM2021" to get 40% FLAT discount for FOUR months straight.

  • GitHub repo Prophecy

    Highly opinionated mocking framework for PHP 5.3+

    Project mention: Test doubles | | 2021-03-18

    Prophecy is a framework for creating test doubles that was initially built for the requirements of phpspec, but it can be used with any other PHP testing framework. Since PHPUnit 4.5 it bundles Prophecy within PHPUnit itself, but as of PHPUnit 9.x this bundling is deprecated and set to be removed in PHPUnit 10.

  • GitHub repo php-webdriver

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

    Project mention: Shellnium: Simple Selnium WebDriver for Bash | | 2021-02-24

    For example, if you want to use php, you can use facebook-webdriver like this.

  • GitHub repo Codeception

    Full-stack testing PHP framework

    Project mention: Testing strategies | | 2021-09-08


  • GitHub repo Pest

    Pest is an elegant PHP Testing Framework with a focus on simplicity

    Project mention: Pest – An Elegant PHP Testing Framework | | 2022-01-16
  • GitHub repo Behat

    BDD in PHP

    Project mention: When Symfony Http Kernel is a Too Big Hammer to Use | | 2022-01-03

    An example of a big CLI project using this with great success is Behat:

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo Alice

    Expressive fixtures generator (by nelmio)

    Project mention: Hautelook's AliceBundle has disappeared :O | | 2021-09-10

    Some information from theofidry and a temporary solution >

  • GitHub repo php-ddd-example

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

    Project mention: DDD / Hexagonal Architecture | | 2021-02-13

    Have a look at (and all resources from Matthias Noback including books, tweets and blogposts). Also check: - - - (needs to be translated from french, but really good one). - (and all resources/tweets/blogposts from Mathias Verraes who has really good knowledge on DDD topics)

  • GitHub repo ParaTest

    :computer: Parallel testing for PHPUnit

    Project mention: Parallel tests and the new M1 Pro/Max | | 2021-10-25

    Pretty sure it has always supported multiple cores, judging by the documentation of the underlying library :

  • GitHub repo PHPSpec

    SpecBDD Framework for PHP

  • GitHub repo testbench

    [Package] Laravel Testing Helper for Packages Development (by orchestral)

    Project mention: Testing packages with Pest + orchestral/testbench? | | 2021-12-27

    Did you see anyone using pest and orchestral/testbench together? Maybe you even tried it? Any takeaways?

  • GitHub repo dusk

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

    Project mention: 10+ Best Laravel Dev Tools For Faster Development🚀 2021 | | 2021-10-26
  • GitHub repo Infection

    PHP Mutation Testing library

    Project mention: Codewars Kata. It uses 100 random tests for a boolean. | | 2021-10-09

    The only one that I've used is infection for PHP.

  • GitHub repo phoronix-test-suite

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

    Project mention: Phoronix Test Suite | | 2021-11-21
  • GitHub repo Atoum

    The modern, simple and intuitive PHP unit testing framework.

    Project mention: 10 Of The Best PHP Testing Frameworks For 2021 | | 2021-02-17

    Before installation, make sure you have the latest version of PHP installed in your system. You can set up an Atoumframework by either one of the ways.

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

  • GitHub repo puphpeteer

    A Puppeteer bridge for PHP, supporting the entire API.

    Project mention: Best alternative to DomPDF? | | 2021-12-25
  • GitHub repo Kahlan

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

  • GitHub repo phpunit-watcher

    A tool to automatically rerun PHPUnit tests when source code changes

    Project mention: A tool to automatically rerun PHPUnit tests when source code changes | | 2022-01-10
  • GitHub repo AspectMock

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

  • GitHub repo PHP Censor

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

  • GitHub repo PHP Architecture Tester

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

    Project mention: arkitect VS PHP Architecture Tester - a user suggested alternative | | 2021-09-16

    Easy to use architecture testing tool for PHP

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 2022-01-16.

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 18,181
2 Mockery 10,080
3 Prophecy 8,318
4 php-webdriver 4,499
5 Codeception 4,417
6 Pest 3,869
7 Behat 3,709
8 Alice 2,303
9 php-ddd-example 1,993
10 ParaTest 1,861
11 PHPSpec 1,795
12 testbench 1,714
13 dusk 1,657
14 Infection 1,594
15 phoronix-test-suite 1,551
16 Atoum 1,405
17 VFS Stream 1,324
18 puphpeteer 1,186
19 Kahlan 1,094
20 phpunit-watcher 773
21 AspectMock 760
22 PHP Censor 638
23 PHP Architecture Tester 633
Find remote jobs at our new job board There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.