404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.143.4.111: ~ $
.. index::
    single: Cookbook; Detecting Mock Objects

Detecting Mock Objects
======================

Users may find it useful to check whether a given object is a real object or a
simulated Mock Object. All Mockery mocks implement the
``\Mockery\MockInterface`` interface which can be used in a type check.

.. code-block:: php

    assert($mightBeMocked instanceof \Mockery\MockInterface);

Filemanager

Name Type Size Permission Actions
big_parent_class.rst File 1.68 KB 0644
class_constants.rst File 4.75 KB 0644
default_expectations.rst File 774 B 0644
detecting_mock_objects.rst File 407 B 0644
index.rst File 289 B 0644
map.rst.inc File 282 B 0644
mockery_on.rst File 3.06 KB 0644
mocking_class_within_class.rst File 4.45 KB 0644
mocking_hard_dependencies.rst File 4.5 KB 0644
not_calling_the_constructor.rst File 2.16 KB 0644