2017 © Pedro Peláez
 

behat-context behatplaceholderextension

image

timitao/behatplaceholderextension

  • Wednesday, February 11, 2015
  • by timiTao
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

License Latest Stable Version Latest Unstable Version Total Downloads SensioLabsInsight Scrutinizer Code Quality, (*1)

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, (*2)

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., (*3)

Installing extension

The easiest way to install is by using Composer:, (*4)

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

or composer.json, (*5)

"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, (*6)

Example

PHP Consts * placeholder(NULL) - at context arrive NULL * placeholder(TRUE) - at context arrive TRUE, (*7)

Configuration consts - given example, (*8)

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., (*9)

Contributors

  • Tomasz Kunicki TimiTao [lead developer]

The Versions

11/02 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

test extension behat gui

11/02 2015

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

test extension behat gui