Main Content

matlab.mock.InteractionHistory Class

Namespace: matlab.mock

Interface for mock object interaction history

Description

matlab.mock.InteractionHistory is the interface for representing interactions with mock objects. Interactions include method calls, property modifications, and property accesses. The framework constructs instances of the class, so there is no need to construct it directly.

Properties

expand all

This property is read-only.

Method or property name, returned as a string scalar. Name indicates the mock object method or property that was involved in the interaction.

Methods

forMockReturn history from mock object

Copy Semantics

Value. To learn how value classes affect copy operations, see Copying Objects.

Version History

Introduced in R2018a