thattomperson/workbench
Composer 安装命令:
composer require thattomperson/workbench
包简介
Wrapper for Laravel while writing packages
README 文档
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
inspiration
统计信息
- 总下载量: 155
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-15