定制 ralfmaxxx/behat_multidimensional_extension 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ralfmaxxx/behat_multidimensional_extension

最新稳定版本:0.1.2

Composer 安装命令:

composer require ralfmaxxx/behat_multidimensional_extension

包简介

It allows you to create multidimensional TableNode based on dot notation

README 文档

README

Latest Stable VersionTotal Downloads Latest Unstable Version License

Installation

In your behat.yml file just add this:

default:
    extensions:
         TableNode\Extension\NestedTableNodeExtension: ~

From now each TableNode object will be replaced by NestedTableNode instance, which adds one additional method: getNestedHash().

How to use it?

After you install this extension, you can describe your data with dot notation: model.value.something like in this example:

Feature: Something

    Scenario:
        When i do something with article:
            | article.name | author.id |
            | test         | 2         |

And you can take advantage of that in your step definition:

/**
 * @When i do something with article:
 */
public function iDoSomethingWithArticle(NestedTableNode $table)
{
    $table->getNestedHash();
}

Or just you do up to this point:

/**
 * @When i do something with article:
 */
public function iDoSomethingWithArticle(TableNode $table)
{
    /**
    * @var NestedTableNode
    */
    $table->getNestedHash();
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2015-08-02