Blame | Letzte Änderung | Log anzeigen | RSS feed
.. index::single: Mocking; Public Static MethodsMocking Public Static Methods=============================Static methods are not called on real objects, so normal mock objects can'tmock them. Mockery supports class aliased mocks, mocks representing a classname which would normally be loaded (via autoloading or a require statement)in the system under test. These aliases block that loading (unless via arequire statement - so please use autoloading!) and allow Mockery to interceptstatic method calls and add expectations for them.See the :ref:`creating-test-doubles-aliasing` section for more information oncreating aliased mocks, for the purpose of mocking public static methods.