alteris / behat-apigility-extension
Extension connect Behat scenario with Apigility application
Installs: 1 105
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:lib
pkg:composer/alteris/behat-apigility-extension
Requires
- alteris/behat-zendframework-extension: ~1.0
- behat/behat: ^3.1
- zfcampus/zf-apigility: ^1.1
Requires (Dev)
- phpunit/phpunit: ~4.5
- symfony/process: ~2.1|~3.0
This package is not auto-updated.
Last update: 2024-01-27 08:33:42 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
Versioning
Staring version 1.0.0, will follow Semantic Versioning v2.0.0.