thattomperson / workbench
Wrapper for Laravel while writing packages
Requires
- laravel/laravel: ~5.0
This package is not auto-updated.
Last update: 2017-01-24 06:55:42 UTC
README
Workbench is a wrapper for laravel to help you write integration test with the laravel framework
Installation
add workbench to your composer file
{
"require-dev": {
"thattomperson/workbench": "dev-master"
}
}
then composer update
this will install the laravel framework for you and add some nice wrappers
you can run ./vendor/bin/artisan
to run artisan commands from your package directory
now from all of your phpunit tests you can extend ThatTomPerson\Workbench\Phpunit\LaravelTestCase
to boot laravel before your test
and if you need database access during your test you can extend ThatTomPerson\Workbench\Phpunit\DbTestCase
both of these classes require you to have a getServiceProvider
method that returns a string of the path to your service provider
this will boot your service provider