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
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
其他信息
- 授权协议: proprietary
- 更新时间: 2015-08-02