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).
Library that provides collection, processing, and rendering functionality for PHP code coverage information.
Highly opinionated mocking framework for PHP 5.3+
BDD in PHP
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.
Generate Laravel test factories from your existing models
A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.
PHP Mocking Framework
Mock built-in PHP functions (e.g. time(), exec() or rand())
- php
- mock
- builtin-functions
Playwright PHP library for browser automation: navigation, E2E tests, assertions, screenshots, and so much more!