davedevelopment/behat-registry 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

davedevelopment/behat-registry

Composer 安装命令:

composer require davedevelopment/behat-registry

包简介

Inject a registry in to feature contexts

关键字:

README 文档

README

What is it?

A little extension that allows a simple registry to be injected in to FeatureContexts, allowing steps to share data across contexts if necessary

Installation

The only documented way to install behat-registry is with composer

$ composer.phar require --dev davedevelopment/behat-registry:* 

Usage

Add the extension to your behat.yml file:

default:
    extensions:
        DaveDevelopment\BehatRegistry\Extension:

If you implement the DaveDevelopment\BehatRegistry\Context\Initializer\RegistryAwareInterface with your Context classes, they will have a Registry injected.

<?php 

use DaveDevelopment\BehatRegistry\Context\Initializer\RegistryAwareInterface;
use DaveDevelopment\BehatRegistry\Registry;

class FeatureContext implements RegistryAwareInterface
{
    public function setRegistry(Registry $registry)
    {
        $this->registry = $registry;
    }

If you want some items to persist between scenarios, call the persist method with the key.

<?php

    $this->registry->userId = 123;
    $this->registry->persist("userId");

Copyright

Copyright (c) 2012 Dave Marshall. See LICENCE for further details

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固