PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
mockery
/
mockery
/
docs
/
cookbook
.. 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);
[-] map.rst.inc
[edit]
[-] default_expectations.rst
[edit]
[-] not_calling_the_constructor.rst
[edit]
[+]
..
[-] class_constants.rst
[edit]
[-] mocking_hard_dependencies.rst
[edit]
[-] mockery_on.rst
[edit]
[-] index.rst
[edit]
[-] big_parent_class.rst
[edit]
[-] mocking_class_within_class.rst
[edit]
[-] detecting_mock_objects.rst
[edit]