teardown

Class: matlab.unittest.fixtures.Fixture
Package: matlab.unittest.fixtures

Tear down fixture

Syntax

teardown(f)

Description

teardown(f) tears down a fixture by performing the defined actions to restore the environment to the initial state.

Input Arguments

f

matlab.unittest.fixtures.Fixture instance

Alternatives

Instead of defining a teardown method, you can define teardown actions within the setup method by implementing the addTeardown method.