Getting Started
Installation
Install the package via composer into your project:
composer require code-distortion/adapt --dev
WARNING
Please specify --dev
, so Adapt isn't installed in your production environment.
Config
If you'd like to tweak the default settings, publish the config/code_distortion.adapt.php
config file:
php artisan vendor:publish --provider="CodeDistortion\Adapt\AdaptLaravelServiceProvider" --tag="config"
NOTE
Add custom environment values to your .env.testing
file (instead of .env
).
See the usage section to see how to apply Adapt to your tests.
See the troubleshooting section if you're using an old version of Laravel or PHPUnit.