enlitepro/enlite-behat-extension 问题修复 & 功能扩展

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

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

enlitepro/enlite-behat-extension

Composer 安装命令:

composer require enlitepro/enlite-behat-extension

包简介

Behat extension for integration Zend Framework 2 application

README 文档

README

Provides integration layer for Zend Framework 2:

  • Integration into Zend Framework module structure - you can run an isolated module suite by name, classname and even full path

  • ApplicationAwareInterface, which provides booted application for your context

  • Zend\ServiceManager\ServiceLocatorAwareInterface, which provides service locator for your context

Installation

Add yo your composer.json

{
    "require": {
        "enlitepro/enlite-behat-extension": "1.0.*"
    }
}

and add in your behat.yml

default:
  extensions:
    EnliteBehatExtension\Zf2Extension: ~
      # module: moduleName
      # config: path_to_application.config.php
      # environment: testing

Usage

# create directory structure and context file in module Application
behat --init "@Application"

# You can use short module notation to run features
behat "@Application"

There are two interface, which you can implement for your context

  1. EnliteBehatExtension\Context\ApplicationAwareInterface - inject Zend\Mvc\Application. Your can use trait EnliteBehatExtension\Context\ApplicationAwareTrait to implement required methods

  2. Zend\ServiceManager\ServiceLocatorAwareInterface - inject service manager.

Credits

Inspired by Symfony2Extension

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固