polishsymfonycommunity/symfony2-mocker-extension

Behat extension for mocking services defined in the Symfony2 dependency injection container.

Maintainers

Package info

github.com/PolishSymfonyCommunity/Symfony2MockerExtension

Homepage

pkg:composer/polishsymfonycommunity/symfony2-mocker-extension

Statistics

Installs: 253 056

Dependents: 3

Suggesters: 0

Stars: 26

Open Issues: 0

v2.0.0 2016-03-04 08:57 UTC

This package is auto-updated.

Last update: 2026-03-05 21:28:40 UTC


README

Build Status

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.

Documentation

Official documentation