Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 916 Bytes

mocking_systems.rst

File metadata and controls

20 lines (15 loc) · 916 Bytes

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.

Warning

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