The Principal Dev – Masterclass for Tech Leads

The Principal Dev – Masterclass for Tech LeadsJuly 17-18

Join

Top PHP Testing Libraries 2025

GitHub Libraries PHP Testing Libraries

sebastianbergmann/phpunit 19K +4

added 3 months ago

PHPUnit is a programmer-oriented testing framework for PHP

mockery/mockery 10K +2

added 3 months ago

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework

pestphp/pest 10K +48

added 3 months ago

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

phpspec/prophecy 8K -2

added 3 months ago

Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking framework

sj26/mailcatcher 6K +8

added 3 months ago

Catches mail and serves it through a dream.

codeception/codeception 4K +2

added 3 months ago

Codeception is a modern full-stack testing framework for PHP. Inspired by BDD, it provides an absolutely new way of writing acceptance, functional and even unit tests.

fakerphp/faker 3K +9

added 3 months ago

Faker is a PHP library that generates fake data for you

symfony/panther 3K +1

added 3 months ago

A browser testing and web crawling library for PHP and Symfony

nelmio/alice 2K +1

added 3 months ago

Alice allows you to create a ton of fixtures/fake data for use while developing or testing your project.

paratestphp/paratest 2K +4

added 3 months ago

The objective of ParaTest is to support parallel testing in PHPUnit. Provided you have well-written PHPUnit tests, you can drop paratest in your project and start using it with no additional bootstrap or configurations!

infection/infection 2K +4

added 3 months ago

PHP Mutation Testing library

phpspec/phpspec 1K +2

added 3 months ago

A php toolset to drive emergent design by specification.

spatie/phpunit-watcher 869 +1

added 3 months ago

A tool to automatically rerun PHPUnit tests when source code changes

nette/tester 470

added 3 months ago

Enjoyable unit testing in PHP with code coverage reporter.

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.