rezzza / moco-behat-extension
Helper to use moco with behat
Installs: 21 729
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 7
Forks: 1
Type:behat-extension
Requires
- php: >=5.5.9
- behat/behat: ~3.0
Requires (Dev)
- atoum/atoum: ^3.2
- guzzlehttp/psr7: ^1.4
- php-http/curl-client: ^1.7
- symfony/process: ^3.0
- ubirak/rest-api-behat-extension: ^7.0
Replaces
This package is not auto-updated.
Last update: 2022-02-01 12:56:48 UTC
README
Moco is a stub server we used to use in test env.
Here is a small extension to make its usage more friendly.
Warning
Vendor namespace changed from Rezzza
to Ubirak
in 2.0
Usage
default: extensions: Ubirak\MocoBehatExtension\MocoExtension: json_file: features/fixtures.json hostname: 127.0.0.1 port: 9997 suites: default: contexts: - Ubirak\MocoBehatExtension\MocoContext
Then you just need to add MocoWriter
as an argument of your context and tag your scenario with @moco
See tests for more details