Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 448 Bytes

File metadata and controls

14 lines (8 loc) · 448 Bytes

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.

assert($mightBeMocked instanceof \Mockery\MockInterface);

← Previous | Contents | Next →