snicco/better-wp-cli-testing
最新稳定版本:v2.0.0-beta.9
Composer 安装命令:
composer require snicco/better-wp-cli-testing
包简介
Provides test utilities for snicco/better-wp-cli
README 文档
README
This package provides a CommandTester class that allows testing CLI-commands
created with snicco/better-wp-cli without having
to run the entire wp runner from end-to-end.
Installation
composer require snicco/better-wp-cli-testing
Usage
use Snicco\Component\BetterWPCLI\Testing\CommandTester; $tester = new CommandTester(new CreateUserCommand()); $tester->run(['calvin', 'calvin@snicco.io'], ['send-email' => true]); $tester->assertCommandIsSuccessful(); $tester->assertStatusCode(0); $tester->seeInStdout('User created!'); $tester->dontSeeInStderr('Fail');
Contributing
This repository is a read-only split of the development repo of the Snicco project.
This is how you can contribute.
Reporting issues and sending pull requests
Please report issues in the Snicco monorepo.
Security
If you discover a security vulnerability, please follow our disclosure procedure.
统计信息
- 总下载量: 7.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2022-08-09