graham-campbell/phpspec-skip-example-extension
最新稳定版本:v5.1.1
Composer 安装命令:
composer require graham-campbell/phpspec-skip-example-extension
包简介
Skip your PhpSpec examples through annotations
README 文档
README
This Phpspec extension allows to skip example through user-friendly annotations.
Installation
$ composer require "graham-campbell/phpspec-skip-example-extension:^5.1"
Configuration
You can now activate the extension by creating a phpspec.yml file at the root of your project:
extensions: Akeneo\SkipExampleExtension: ~
Usage
@require
Skips all the spec example if the class or interface is not available
/** * @require Vendor\Builder\ToolInterface */ class BridgeBuilderSpec extends ObjectBehavior { // Will be skipped if the Vendor\Builder\ToolInterface interface does not exist function it_builds_a_brige() { } // Will be skipped if the Vendor\Builder\ToolInterface interface does not exist function it_builds_the_road() { } //... }
Contributions
Feel free to contribute to this extension if you find some interesting ways to improve it!
统计信息
- 总下载量: 4.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-10