1 | <?php |
||
24 | class TestCase extends BaseTestCase |
||
25 | { |
||
26 | /** |
||
27 | * @var Stopwatch |
||
28 | */ |
||
29 | protected $stopwatch; |
||
30 | |||
31 | public function setUp(): void |
||
38 | |||
39 | public function tearDown(): void |
||
46 | |||
47 | /** |
||
48 | * Populates Yii::$app with a new application |
||
49 | * The application will be destroyed on tearDown() automatically. |
||
50 | * @param array $config The application configuration, if needed |
||
51 | * @param string $appClass name of the application class to create |
||
52 | */ |
||
53 | protected function mockApplication($config = [], $appClass = '\yii\console\Application'): void |
||
68 | |||
69 | /** |
||
70 | * Destroys application in Yii::$app by setting it to null. |
||
71 | */ |
||
72 | protected function destroyApplication(): void |
||
76 | |||
77 | |||
78 | } |
||
79 |