teardown
Class: matlab.unittest.fixtures.Fixture
Namespace: matlab.unittest.fixtures
Tear down fixture
Syntax
Description
teardown(
restores the environment to
its original state when the testing framework tears down the fixture.fixture
)
To specify teardown code, you can implement this method in your Fixture
subclass. Alternatively, you can call the addTeardown
method within the setup
method.
Input Arguments
Examples
Tips
Only the testing framework calls the
teardown
method when tearing down the fixture. You cannot directly call the method in your code. To perform the teardown actions inteardown
, use the fixture by calling theapplyFixture
method.
Version History
Introduced in R2014a