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 | dev.to | 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: Rector keeps your PHP code base fresh and perfect | dev.to | 2024-03-15

    As part of the journey to PHP perfection, you should embrace Rector. It's a amazing, free, and open-source tool for migrations, code quality, type coverage, pushing PHPStan to the highest levels, and yes, it can even auto-fix your existing code! It seamlessly integrates into the CI process, making your development workflow smoother than ever.

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

    WorkOS logo
  • 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: Wordpress tests with Pest and WP Setup | dev.to | 2024-04-18

    Today, I finished the first implementation of this environment, adding Pest and PHPUnit in v10.5, which is currently not supported by default with WP Env.

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

    InfluxDB logo
  • 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 | news.ycombinator.com | 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: FreeBSD has a(nother) new C compiler: Intel oneAPI DPC++/C++ | news.ycombinator.com | 2024-03-07

    I think they do a lot of good stuff, like LTO and PGO.

    But in benchmarks you sometimes see like a 4x speedup compared to ubuntu, which is obviously not due to superior compilers.

    For example:

    https://github.com/phoronix-test-suite/phoronix-test-suite/i...

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

  • arkitect

    Put your architectural rules under test!

  • Project mention: Enforce architecture rules with Deptrac | dev.to | 2023-10-31

    PHPArkitect

  • 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 related posts

Index

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

Project Stars
1 PHPUnit 19,541
2 PHPStan 12,536
3 Mockery 10,558
4 Pest 8,831
5 Prophecy 8,533
6 php-webdriver 5,033
7 Codeception 4,740
8 Behat 3,880
9 php-ddd-example 2,901
10 Alice 2,464
11 phoronix-test-suite 2,300
12 ParaTest 2,251
13 testbench 2,058
14 Infection 1,981
15 PHPSpec 1,866
16 dusk 1,826
17 Atoum 1,437
18 VFS Stream 1,402
19 Kahlan 1,137
20 PHP Architecture Tester 1,000
21 phpunit-watcher 852
22 AspectMock 787
23 arkitect 674

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com