thattomperson/workbench

This package is abandoned and no longer maintained. No replacement package was suggested.

Wrapper for Laravel while writing packages

dev-master 2015-05-06 02:32 UTC

This package is not auto-updated.

Last update: 2017-01-24 06:55:42 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

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

inspiration

https://laracasts.com/discuss/channels/general-discussion/guide-how-to-run-integration-tests-from-a-package