Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

Mocking systems

Mocks are virtual class, created on the fly. They are used to isolate your test from the behaviour of the other classes. atoum has a powerful and easy-to-implement mock system allowing you to generate mocks from classes or interfaces that exist, are virtual, are abstract or an interface.

With these mocks, you can simulate behaviours by redefining the public methods of your classes. For the private & protected method, use the visibility extension.


Most of method that configure the mock, apply only for the next mock generation!