Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 834 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 834 Bytes

Symfony2 Mocker Extension

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