1 | <?php |
||
23 | class TestCase extends BaseTestCase |
||
24 | { |
||
25 | |||
26 | |||
27 | public function setUp(): void |
||
33 | |||
34 | public function tearDown(): void |
||
40 | |||
41 | /** |
||
42 | * Populates Yii::$app with a new application |
||
43 | * The application will be destroyed on tearDown() automatically. |
||
44 | * @param array $config The application configuration, if needed |
||
45 | * @param string $appClass name of the application class to create |
||
46 | */ |
||
47 | protected function mockApplication($config = [], $appClass = '\yii\console\Application') |
||
66 | |||
67 | /** |
||
68 | * Destroys application in Yii::$app by setting it to null. |
||
69 | */ |
||
70 | protected function destroyApplication() |
||
74 | |||
75 | } |
||
76 |