PHP Testing

Open-source PHP projects categorized as Testing

Top 23 PHP Testing Projects

  • PHPUnit

    The PHP Unit Testing framework.

    Project mention: Setup local development environment and run tests of PHP Twig | dev.to | 2023-03-19

    Finally we install the command line version of php (no web server is needed for this project), composer which is a package management system for PHP and PHP Unit, the testing framework of PHP.

  • PHPStan

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

    Project mention: TIL how PHP type hinting works | reddit.com/r/PHP | 2023-03-23

    Psalm is great as someone pointed out, and there is also https://phpstan.org/

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

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

  • Prophecy

    Highly opinionated mocking framework for PHP 5.3+

  • 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: Pest 2.0 is now generally available 🐛 | dev.to | 2023-03-22

    Pest 2.0 has just been released, and it's here to make your PHP testing experience more enjoyable and efficient. We will dive into the world of Pest and explore what makes it stand out from PHPUnit. Plus, we'll check out the latest features in Pest 2.0! 🚀

  • php-webdriver

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

    Project mention: Can anyone help me setup Selenium for PHP? Step-by-step of what I'm doing below | reddit.com/r/AskProgramming | 2022-08-15

    Creating a file named "example.php" and copying and pasting the code from this page in C:\xampp\htdocs\sel: https://github.com/php-webdriver/php-webdriver/blob/main/example.php

  • Codeception

    Full-stack testing PHP framework

    Project mention: PHPUnit, do i need to learn it? | reddit.com/r/PHP | 2023-01-06

    Codeception: https://codeception.com/

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • Behat

    BDD in PHP

  • php-ddd-example

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

  • Alice

    Expressive fixtures generator (by nelmio)

  • ParaTest

    :computer: Parallel testing for PHPUnit

    Project mention: laravel parallel testing doesnt work | reddit.com/r/laravel | 2022-04-14

    I haven’t tried it with the MySQL-connection, I use the in-memory version, but paratest (https://github.com/paratestphp/paratest) has never failed me. Not an answer to your question, but an answer to your problem I guess.

  • phoronix-test-suite

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

    Project mention: Orange Pi 4 vs 5? | reddit.com/r/OrangePI | 2023-01-31

    I grabbed the https://www.phoronix-test-suite.com/ on a whim.

  • testbench

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

  • Infection

    PHP Mutation Testing library

    Project mention: Collecting line, branch, and path coverage with PHPUnit | reddit.com/r/PHP | 2023-03-23

    IMO code coverage is a very flawed metric on its own. A high percentage doesn't guarantee that the tests actually test the right things, and it would be much more efficient if mutation testing was used (e.g. Infection). It still uses the generated code coverage reports, but only as a base for its own metrics.

  • PHPSpec

    SpecBDD Framework for PHP

    Project mention: Atoum or PHPUnit | reddit.com/r/PHP | 2022-04-28

    I like phpspec.

  • dusk

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

    Project mention: FYI for anyone wanting to use Laravel 9/Inertia/Vue3/Sail/Dusk | reddit.com/r/laravel | 2022-08-22

    Not sure if this is the issue you opened, but this helped me: https://github.com/laravel/dusk/issues/992

  • 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

  • phpunit-watcher

    A tool to automatically rerun PHPUnit tests when source code changes

  • PHP Architecture Tester

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

    Project mention: PHPStan 1.9.0 With PHPDoc Asserts, List Type, and More! | reddit.com/r/PHP | 2022-11-04

    After that, consider using a PHPStan rules framework like PHP Architecture Tester to enforce architectural decisions made by your team.

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

    Project mention: Phabricator replacement? | Or OpenProject alternative? | issue tracking/code | reddit.com/r/selfhosted | 2022-08-02

    PHP Censor - Tests code for you

  • 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 2023-03-23.

PHP Testing related posts

Index

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

Project Stars
1 PHPUnit 18,989
2 PHPStan 11,755
3 Mockery 10,377
4 Prophecy 8,537
5 Pest 6,564
6 php-webdriver 4,787
7 Codeception 4,658
8 Behat 3,817
9 php-ddd-example 2,581
10 Alice 2,429
11 ParaTest 2,088
12 phoronix-test-suite 1,945
13 testbench 1,922
14 Infection 1,846
15 PHPSpec 1,836
16 dusk 1,732
17 Atoum 1,436
18 VFS Stream 1,359
19 Kahlan 1,140
20 phpunit-watcher 829
21 PHP Architecture Tester 791
22 AspectMock 781
23 PHP Censor 662
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com