polishsymfonycommunity / symfony2-mocker-extension
Behat extension for mocking services defined in the Symfony2 dependency injection container.
Installs: 248 611
Dependents: 2
Suggesters: 0
Security: 0
Stars: 27
Watchers: 3
Forks: 7
Open Issues: 0
Requires
- php: ^5.5|^7.0
- behat/behat: ^3.0
- behat/mink: ^1.4
- behat/mink-browserkit-driver: ^1.0
- behat/mink-extension: ^2.0
- behat/symfony2-extension: ^2.0
- mockery/mockery: ~0.7
- polishsymfonycommunity/symfony-mocker-container: ^1.0
README
Behat extension for mocking services defined in the Symfony2 dependency injection container.
This extension was always a hack. For a better approach try https://github.com/docteurklein/TestDoubleBundle.
Use it sparingly. Mocking a service container is not a good practice. Most of the time if there's a need for this, the problem can be better solved by improving the design instead.
Internally it uses Mockery and SymfonyMockerContainer.