Chapter 2.2 : Register Variables and Methods

This depends on the backend you used, but it could be interesting to register both varaibles and methods before using them to avoid push, pull or call which will definitely fail at some point because the corresponding variable or method does not exist. Typically, the default mock backend, PMockControlBackend, uses this feature.