PHP Testbench is a set of common testing utilities we use at Craftzing across all of our PHP projects.
- Immutable object factories with an API similar to Laravel's Eloquent Factories.
- Custom PHPUnit constraints.
- Extended PHPUnit constraints for Laravel.
- Common test doubles.
Important
This package has not been released yet. However, as it merely contains testing utilities, it can safely be installed as a dev dependency. Make sure to add the following configuration to your composer.json:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/craftzing/php-testbench.git"
}
],
This package requires:
- PHP 8.4
You can install this package using Composer by running the following command:
composer require craftzing/php-testbench --dev
Check out our Change log for information on what has changed recently.
Have an idea for a feature? Wanna improve the docs? Found a bug? Check out our Contributing guide.
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.