定制 zorbus/behat-contexts 二次开发

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

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

zorbus/behat-contexts

最新稳定版本:0.2.5

Composer 安装命令:

composer require zorbus/behat-contexts

包简介

Contexts for functional testing with behat

README 文档

README

Contexts for Behat 3.

At the moment, just a Doctrine 2 context is included.

Instalation

composer require zorbus/behat-contexts

Example

Check the FeatureContext.php for an example on how to instantiate the database context.

In case you are using the Symfony2 extension, you can pass the services defined in the container, no need to create the connection and entity manager manually.

Check database.feature for a real example of the defined steps.

Usage

Tag your scenarios with @database to make clean the database.

Test

In the root of the package, run:

touch data/db.sqlite php vendor/bin/behat --suite=sqlite

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-15