Download the PHP package rezzza/mock-extension without Composer
On this page you can find all versions of the php package rezzza/mock-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rezzza/mock-extension
More information about rezzza/mock-extension
Files in rezzza/mock-extension
Package mock-extension
Short Description Mock extension for Behat
License MIT
Homepage https://github.com/rezzza/mock-extension
Informations about the package mock-extension
Behat Mock Extension
DEPRECATED We no longer provide support for this extension. Feel free to fork.
Let the mock engine that you want coming to help you in your behat tests by mocking the Symfony services.
- dev-master : Behat 2.5.x
- dev-behat3 : Behat 3.0.x
Adapters
- Atoum : https://github.com/atoum/atoum
Setup
1 - Declare to use the extension in your behat.yml
2 - Implements Rezzza\MockExtension\MockAware
interface on your context.
3 - Override AppKernel::getContainerBaseClass
Usage
In your context create mock for your services :
Then follow the instructions of your mock engine to use the result
Contribute
If you want to see your prefered mock engine, you can make a PR by creation the adapter.
It just needs to follow Rezzza\MockExtension\MockEngine
interface.
Credit
Initial concept come from : https://github.com/PolishSymfonyCommunity/Symfony2MockerExtension
but Mockery drives me crazy...
All versions of mock-extension with dependencies
behat/behat Version ~3.0
behat/symfony2-extension Version ~2.0
atoum/atoum Version ~1.0|~2.0