承接 thattomperson/workbench 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thattomperson/workbench

Composer 安装命令:

composer require thattomperson/workbench

包简介

Wrapper for Laravel while writing packages

README 文档

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

统计信息

  • 总下载量: 155
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-15