X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/mockery/mockery/docs/reference
home
/
prisjneg
/
public_html
/
vendor
/
mockery
/
mockery
/
docs
/
reference
/
📁
..
📄
alternative_should_receive_syntax.rst
(2.33 KB)
📄
argument_validation.rst
(10.49 KB)
📄
creating_test_doubles.rst
(14.12 KB)
📄
demeter_chains.rst
(1.6 KB)
📄
expectations.rst
(15.57 KB)
📄
final_methods_classes.rst
(1.32 KB)
📄
index.rst
(421 B)
📄
instance_mocking.rst
(805 B)
📄
magic_methods.rst
(687 B)
📄
map.rst.inc
(550 B)
📄
partial_mocks.rst
(4.19 KB)
📄
pass_by_reference_behaviours.rst
(4.22 KB)
📄
phpunit_integration.rst
(4.74 KB)
📄
protected_methods.rst
(668 B)
📄
public_properties.rst
(821 B)
📄
public_static_properties.rst
(701 B)
📄
spies.rst
(4.63 KB)
Editing: public_static_properties.rst
.. index:: single: Mocking; Public Static Methods Mocking Public Static Methods ============================= Static methods are not called on real objects, so normal mock objects can't mock them. Mockery supports class aliased mocks, mocks representing a class name which would normally be loaded (via autoloading or a require statement) in the system under test. These aliases block that loading (unless via a require statement - so please use autoloading!) and allow Mockery to intercept static method calls and add expectations for them. See the :ref:`creating-test-doubles-aliasing` section for more information on creating aliased mocks, for the purpose of mocking public static methods.
Upload File
Create Folder