JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "detecting_mock_objects.rst"

Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/vendor/mockery/mockery/docs/cookbook/detecting_mock_objects.rst
File size: 394 bytes
MIME-type: text/plain
Charset: utf-8

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