GitHub - craftzing/php-testbench: Toolkit with testing utilities for php and Laravel

Laravel Abilities banner Laravel Abilities banner

tests static-analysis license

PHP Testbench is a set of common testing utilities we use at Craftzing across all of our PHP projects.

🔥 Features

  • Immutable object factories with an API similar to Laravel's Eloquent Factories.
  • Custom PHPUnit constraints.
  • Extended PHPUnit constraints for Laravel.
  • Common test doubles.

🏁 Getting started

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:

You can install this package using Composer by running the following command:

composer require craftzing/php-testbench --dev

📝 Changelog

Check out our Change log for information on what has changed recently.

🤝 How to contribute

Have an idea for a feature? Wanna improve the docs? Found a bug? Check out our Contributing guide.

💙 Thanks to...

👮 Security

If you discover any security-related issues, please email security@craftzing.com instead of using the issue tracker.

🔑 License

The MIT License (MIT). Please see License File for more information.