2017 © Pedro Peláez
 

library enlite-behat-extension

Behat extension for integration Zend Framework 2 application

image

enlitepro/enlite-behat-extension

Behat extension for integration Zend Framework 2 application

  • Wednesday, October 16, 2013
  • by ftdebugger
  • Repository
  • 1 Watchers
  • 0 Stars
  • 143 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

ZF2 Behat extension Build Status

Provides integration layer for Zend Framework 2:, (*1)

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

  • ApplicationAwareInterface, which provides booted application for your context, (*3)

  • Zend\ServiceManager\ServiceLocatorAwareInterface, which provides service locator for your context, (*4)

Installation

Add yo your composer.json, (*5)

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

and add in your behat.yml, (*6)

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

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

  2. Zend\ServiceManager\ServiceLocatorAwareInterface - inject service manager., (*9)

Credits

Inspired by Symfony2Extension, (*10)

The Versions

16/10 2013

dev-master

9999999-dev

Behat extension for integration Zend Framework 2 application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Evgeny Shpilevsky

15/10 2013

v1.0.0

1.0.0.0

Behat extension for integration Zend Framework 2 application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Evgeny Shpilevsky