behat/environment-loader
最新稳定版本:1.2
Composer 安装命令:
composer require behat/environment-loader
包简介
Environment processor and contexts autoloader
README 文档
README
This tool - is a Behat library for auto loading context classes of extension to context environment.
Usage
See examples here:
namespace Behat\ExampleExtension\ServiceContainer; // ... class ExampleExtension implements Extension { // ... /** * {@inheritdoc} */ public function load(ContainerBuilder $container, array $config) { // Load all context classes from "Behat\ExampleExtension\Context\*" namespace. $loader = new EnvironmentLoader($this, $container, $config); // Your own environment reader can be easily added. // $loader->addEnvironmentReader(); $loader->load(); } // ... }
Here is a good "how to" about extension creation and usage of this library.
统计信息
- 总下载量: 129.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-01