afragen/wp-cli-runner 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

afragen/wp-cli-runner

Composer 安装命令:

composer require --dev afragen/wp-cli-runner

包简介

Helper to test custom WP-CLI commands by bootstrapping WP-CLI

README 文档

README

Helper to test custom WP-CLI commands by bootstrapping WP-CLI.

Forked from https://github.com/polevaultweb/phpunit-wp-cli-runner

Installation

To install simply require the package in the composer.json file like

"require-dev":
{
"afragen/wp-cli-runner": "^0.1"
}

Then use composer update to fetch the package.

Bootstrap

In your PHPUnit bootstrap.php file you will need add the following:

$vendorDir = '/path/to/vendor';
\Fragen\WP_CLI_Runner\Runner::init( $vendorDir );

Then WP-CLI will be loaded whenever you instantiate your custom CLI command classes in your unit tests cases.

See the blog post for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2019-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固