定制 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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固