Sindbad~EG File Manager

Current Path : /var/www/html/logros.sumar.com.py/vendor/mockery/mockery/docs/cookbook/
Upload File :
Current File : /var/www/html/logros.sumar.com.py/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);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists