承接 akeneo/phpspec-skip-example-extension 相关项目开发

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

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

akeneo/phpspec-skip-example-extension

Composer 安装命令:

composer require akeneo/phpspec-skip-example-extension

包简介

Skip your PhpSpec examples through annotations

README 文档

README

This PhpSpec extension allows to skip example through user-friendly annotations. Build Status

Installation

Once you have installed PhpSpec (following the documentation on the official website), add the extension requirement to your composer.json:

Using phpspec 4.x,

{
    "require": {
        "akeneo/phpspec-skip-example-extension": "^3.0"
    }
}

Using phpspec 5.x,

{
    "require": {
        "akeneo/phpspec-skip-example-extension": "^4.0"
    }
}

And run composer update:

$ php composer.phar update akeneo/phpspec-skip-example-extension

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!

统计信息

  • 总下载量: 987.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 34
  • 点击次数: 2
  • 依赖项目数: 11
  • 推荐数: 0

GitHub 信息

  • Stars: 33
  • Watchers: 46
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固