PHPUnit

The PHP Unit Testing framework. (by sebastianbergmann)

PHPUnit Alternatives

Similar projects and alternatives to PHPUnit

  1. Laravel

    431 PHPUnit VS Laravel

    Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. starter-workflows

    Accelerating new GitHub Actions workflows

  4. PHPT

    320 PHPUnit VS PHPT

    The PHP Interpreter

  5. MongoDB

    317 PHPUnit VS MongoDB

    The MongoDB Database

  6. Composer

    Dependency Manager for PHP

  7. Symfony

    184 PHPUnit VS Symfony

    The Symfony PHP framework

  8. Rector

    123 PHPUnit VS Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. Packagist

    Package Repository Website - try https://packagist.com if you need your own -

  11. PHPStan

    71 PHPUnit VS PHPStan

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

  12. Twig

    63 PHPUnit VS Twig

    Twig, the flexible, fast, and secure template language for PHP

  13. Pest

    41 PHPUnit VS Pest

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

  14. PHP Code Sniffer

    PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

  15. Psalm

    49 PHPUnit VS Psalm

    A PHP static analysis tool for finding errors and security vulnerabilities in PHP applications

  16. PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

  17. xDebug

    33 PHPUnit VS xDebug

    Xdebug — Step Debugger and Debugging Aid for PHP

  18. GrumPHP

    26 PHPUnit VS GrumPHP

    A PHP code-quality tool

  19. Codeception

    Full-stack testing PHP framework

  20. Mockery

    5 PHPUnit VS 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).

  21. PHP Mess Detector

    PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.

  22. PHPSpec

    1 PHPUnit VS PHPSpec

    SpecBDD Framework for PHP

  23. SaaSHub

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

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better PHPUnit alternative or higher similarity.

PHPUnit discussion

  1. User avatar
    nicholascn
    · over 1 year ago
    · Reply

    Review ★★★★★ 10/10

  2. User avatar
    deligoez
    · over 1 year ago
    · Reply

    Review ★★★★★ 10/10

PHPUnit reviews and mentions

Posts with mentions or reviews of PHPUnit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-06-21.
  • Top 16 Must-Have Resources for Advanced PHP Backend Development (Laravel & Symfony)
    5 projects | dev.to | 21 Jun 2025
    PHPUnit: PHPUnit is the indispensable unit testing framework for PHP. Mastering it is not just about writing tests; it's about adopting a disciplined approach to development, ensuring code quality, and facilitating refactoring. It's fundamental for building robust and reliable backend systems. Explore PHPUnit
  • Integration tests on Symfony with Testcontainers
    13 projects | dev.to | 11 Sep 2024
    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.
  • Testes de Integração no Symfony com Testcontainers
    12 projects | dev.to | 29 Aug 2024
  • 8 Essential Tools Every PHP Developer Needs
    6 projects | dev.to | 27 Feb 2024
    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.
  • How to migrate from Api Platform v2 to v3?
    2 projects | dev.to | 29 Nov 2023
    Before updating Api Platform, you should make sure that your Api Platform routes are fully covered by tests. You can define integration tests with PHPUnit, Behat or Pest, depending on the tool you’re most comfortable with.
  • How To Write Better and Quality Code
    5 projects | dev.to | 5 Nov 2023
    PHP popular tools for testing: PHPUnit
  • PHP libraries and tools
    47 projects | dev.to | 18 Oct 2023
    PHPUnit: PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. Extensions/tools: brianium/paratest: Parallel testing for PHPUnit johnkary/phpunit-speedtrap: Reports on slow-running tests in your PHPUnit test suite. robiningelbrecht/phpunit-pretty-print: Better PHPUnit CLI output with Collision roave/no-leaks: PHPUnit Plugin for detecting Memory Leaks in code and tests
  • PHPUnit 10 - Coverage attributes
    1 project | /r/PHP | 23 Jun 2023
    We want to start migrating to Attributes because of the announcement made here that in PHPUnit 12 support for metadata in docblocks will be removed: https://github.com/sebastianbergmann/phpunit/issues/4502
  • Top 6 PHP code quality tools 2023
    7 projects | dev.to | 30 May 2023
    PHPUnit: PHPUnit PHPUnit is a testing framework for PHP. It enables developers to write unit tests, integration tests, and functional tests to verify the correctness of their code. It offers a wide range of assertions, test runners, and mocking capabilities. Documentation: Explore PHPUnit's capabilities and learn how to write effective tests in the official documentation: PHPUnit Repository
  • I created a PHPUnit 10 extension to prettify CLI output
    6 projects | /r/PHP | 25 Apr 2023
    I really like how Pest PHP formats and outputs test results, but I still prefer to use PHPUnit. Luckily there's Collision. This package is designed to give you beautiful error reporting when interacting with your app through the command line.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 23 Dec 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic PHPUnit repo stats
50
19,976
10.0
6 days ago

sebastianbergmann/phpunit is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.

The primary programming language of PHPUnit is PHP.


Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that PHP is
the 14th most popular programming language
based on number of references?