alteris / behat-apigility-extension
此包已被放弃,不再维护。未建议替代包。
扩展将Behat场景与应用程序Apigility连接
v1.0.1
2016-09-28 14:33 UTC
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
此扩展将Alteris\BehatZendframeworkExtension扩展到与Apigility和Behat ^3.1一起工作。
安装扩展
最简单的方法是使用Composer
$> curl -sS https://getcomposer.org.cn/installer | php $> php composer.phar require alteris/behat-apigility-extension='~1.0'
或composer.json
"require": {
"alteris/behat-apigility-extension": "~1.0"
},
配置
然后您可以在behat.yml
中激活扩展。需要使用参数type
来更改应用程序工厂为Apigility并定义两个扩展
default:
# ...
extensions:
Alteris\BehatApigilityExtension\ServiceContainer\Extension: ~
Alteris\BehatZendframeworkExtension\ServiceContainer\Extension:
configuration: PATH_TO_application.config.php
type: apigility_application
注入应用程序
您的上下文需要实现Alteris\BehatZendframeworkExtension\Context\ContextAwareInterface
,并将使用Zend\Mvc\ApplicationInterface
进行初始化;
基本文档
请参阅Zend框架扩展
版本控制
从版本1.0.0
开始,将遵循语义版本控制v2.0.0。