alteris/behat-apigility-extension

Extension connect Behat scenario with Apigility application

v1.0.1 2016-09-28 14:33 UTC

This package is not auto-updated.

Last update: 2021-06-04 20:22:21 UTC


README

This extension extends Alteris\BehatZendframeworkExtension to work with Apigility and Behat ^3.1.

Installing extension

The easiest way to install is by using Composer:

$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar require alteris/behat-apigility-extension='~1.0'

or composer.json

"require": {
    "alteris/behat-apigility-extension": "~1.0"
},

Configuration

You can then activate the extension in your behat.yml. Need to use parameter type to change Application factory to Apigility and define both Extensions:

    default:
        # ...
        extensions:
            Alteris\BehatApigilityExtension\ServiceContainer\Extension: ~
            Alteris\BehatZendframeworkExtension\ServiceContainer\Extension:
                configuration: PATH_TO_application.config.php
                type: apigility_application

Injecting Application

Your context need to implement Alteris\BehatZendframeworkExtension\Context\ContextAwareInterface and will be intialized with Zend\Mcv\ApplicationInterface;

Base documentation

See Zend framework Extension

Versioning

Staring version 1.0.0, will follow Semantic Versioning v2.0.0.

Contributors