Blame | Letzte Änderung | Log anzeigen | RSS feed
.. index::single: Mocking; Public PropertiesMocking Public Properties=========================Mockery allows us to mock properties in several ways. One way is that we can seta public property and its value on any mock object. The second is that we canuse the expectation methods ``set()`` and ``andSet()`` to set property values ifthat expectation is ever met.You can read more about :ref:`expectations-setting-public-properties`... note::In general, Mockery does not support mocking any magic methods since theseare generally not considered a public API (and besides it is a bit difficultto differentiate them when you badly need them for mocking!). So please mockvirtual properties (those relying on ``__get()`` and ``__set()``) as if theywere actually declared on the class.