* @since 2.0 */ class Fixture extends Component { /** * @var array the fixtures that this fixture depends on. This must be a list of the dependent * fixture class names. */ public $depends = []; /** * Loads the fixture. * This method is called before performing every test method. * You should override this method with concrete implementation about how to set up the fixture. */ public function load() { } /** * This method is called BEFORE any fixture data is loaded for the current test. */ public function beforeLoad() { } /** * This method is called AFTER all fixture data have been loaded for the current test. */ public function afterLoad() { } /** * Unloads the fixture. * This method is called after every test method finishes. * You may override this method to perform necessary cleanup work for the fixture. */ public function unload() { } /** * This method is called BEFORE any fixture data is unloaded for the current test. */ public function beforeUnload() { } /** * This method is called AFTER all fixture data have been unloaded for the current test. */ public function afterUnload() { } }