SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 PHP PHPunit Projects
-
Project mention: Top 16 Must-Have Resources for Advanced PHP Backend Development (Laravel & Symfony) | dev.to | 2025-06-21
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
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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).
Using Mockery::spy to Verify Closures
-
-
Project mention: I Curated 106 Software Design Resources and Ranked What Actually Matters | dev.to | 2026-02-12
CodelyTV/php-ddd-example — DDD + Hexagonal in PHP/Symfony. If you're a PHP developer, start here.
-
PHP VCR
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
-
doctrine-test-bundle
Symfony bundle to isolate your app's doctrine database tests and improve the test performance
Reference: GitHub - dmaicher/doctrine-test-bundle
-
-
-
-
I was made a aware of PAO. And while it think it is a good tool I think we can do better by making it more useful for an LLM.
-
bypass-finals
Removes `final` and `readonly` keywords from source code on-the-fly and allows mocking of final methods and classes. It can be used together with any test tool such as PHPUnit or Mockery.
-
-
-
-
-
-
playwright
Playwright PHP library for browser automation: navigation, E2E tests, assertions, screenshots, and so much more! (by playwright-php)
-
-
PHPUnit-Polyfills
Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests
-
-
-
-
PHP PHPunit discussion
PHP PHPunit related posts
-
PHPUnit: Test Closures with Mockery::spy
-
Mock IteratorAggregate with Mockery to Fix foreach in Tests
-
Top 16 Must-Have Resources for Advanced PHP Backend Development (Laravel & Symfony)
-
How To Mock a Nested Laravel Artisan Command
-
How to migrate from Api Platform v2 to v3?
-
BillaBear - Design Decisions ‐ Not Using Final Classes
-
PHPUnit 10 - Coverage attributes
-
A note from our sponsor - SaaSHub
www.saashub.com | 11 Jun 2026
Index
What are some of the best open-source PHPunit projects in PHP? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | PHPUnit | 20,034 |
| 2 | Mockery | 10,722 |
| 3 | Codeception | 4,854 |
| 4 | php-ddd-example | 3,136 |
| 5 | PHP VCR | 1,207 |
| 6 | doctrine-test-bundle | 1,183 |
| 7 | phpunit-watcher | 873 |
| 8 | phpunit-speedtrap | 783 |
| 9 | wp_mock | 710 |
| 10 | pao | 632 |
| 11 | bypass-finals | 571 |
| 12 | Phake | 475 |
| 13 | laravel-vue-crud-starter | 430 |
| 14 | BrainMonkey | 339 |
| 15 | guzzler | 272 |
| 16 | Steward | 222 |
| 17 | playwright | 190 |
| 18 | phpunit-pretty-print | 186 |
| 19 | PHPUnit-Polyfills | 185 |
| 20 | php-mock-phpunit | 171 |
| 21 | paraunit | 145 |
| 22 | phpunit-architecture-test | 109 |
| 23 | laravel-dom-assertions | 106 |