matlab.mock.TestCase Class
Namespace: matlab.mock
Superclasses: matlab.unittest.TestCase
Class for writing tests with mocking framework
Description
The matlab.mock.TestCase class lets you write tests that use the mocking
framework. Because the matlab.mock.TestCase class derives from the
matlab.unittest.TestCase class, your tests have access to the features of the
unit testing framework, such as qualifications, fixtures, and plugins. For more information
about mocking dependencies in tests, see Create Mock Object.
The matlab.mock.TestCase class is a handle class.
Creation
In most cases, you are not required to create an instance of the
matlab.mock.TestCase class directly. The mocking framework automatically
creates matlab.mock.TestCase instances when running the tests.
To create a matlab.mock.TestCase instance for interactive, command-line
testing, use the forInteractiveUse static method.
Methods
Examples
Version History
Introduced in R2017a