timitao/behatplaceholderextension 问题修复 & 功能扩展

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

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

timitao/behatplaceholderextension

最新稳定版本:v1.0.0

Composer 安装命令:

composer require timitao/behatplaceholderextension

包简介

README 文档

README

License Latest Stable Version Latest Unstable Version Total Downloads SensioLabsInsight Scrutinizer Code Quality

BehatPlaceholderExtension

Add functionality to replace some placeholders with special data. Default are added 2:

  • PHP consts - NULL, TRUE, FALSE
  • Configuration consts - defined at config file

Purpose of this is that usually i use in system non meaning const data, like default system admin. Addictionally extend placoholder from others extension. Over testing on local machine is okey, but when need run over some dump, user probably will change and i don't need to change scenarios.

Installing extension

The easiest way to install is by using Composer:

$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar require timitao/behatplaceholderextension='1.0.*'

or composer.json

"require": {
    "timitao/behatplaceholderextension": "1.0.*"
},

Extending

If you need owc placeholder, only need to add this due extension using tag placeholder.object_mapper.register and implement interface. Look for consts example

Example

PHP Consts

  • placeholder(NULL) - at context arrive NULL
  • placeholder(TRUE) - at context arrive TRUE

Configuration consts - given example

Behat\PlaceholderExtension\ServiceContainer\Extension:
    defaults:
      key1: value1
      key2: value2
  • placeholder(key1) - at context arrive value1
  • placeholder(key2) - at context arrive value2

Versioning

This repository will follow Semantic Versioning v2.0.0.

Contributors

  • Tomasz Kunicki TimiTao [lead developer]

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固