Server IP : 185.86.78.101 / Your IP : 216.73.216.171 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/vendor/yiisoft/yii2/test/ |
Upload File : |
<?php /** * @link https://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license https://www.yiiframework.com/license/ */ namespace yii\test; use yii\base\Component; /** * Fixture represents a fixed state of a test environment. * * Each fixture instance represents a particular aspect of a test environment. For example, * you may use `UserFixture` to initialize the user database table with a set of known data. You may * load the fixture when running every test method so that the user table always contains the fixed data * and thus allows your test predictable and repeatable. * * A fixture may depend on other fixtures, specified via the [[depends]] property. When a fixture is being loaded, * its dependent fixtures will be automatically loaded BEFORE the fixture; and when the fixture is being unloaded, * its dependent fixtures will be unloaded AFTER the fixture. * * You should normally override [[load()]] to specify how to set up a fixture; and override [[unload()]] * for clearing up a fixture. * * For more details and usage information on Fixture, see the [guide article on fixtures](guide:test-fixtures). * * @author Qiang Xue <qiang.xue@gmail.com> * @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() { } }