1 | <?php |
||
22 | class TestCase extends BaseTestCase |
||
23 | { |
||
24 | |||
25 | |||
26 | public function setUp(): void |
||
32 | |||
33 | public function tearDown(): void |
||
39 | |||
40 | /** |
||
41 | * Populates Yii::$app with a new application |
||
42 | * The application will be destroyed on tearDown() automatically. |
||
43 | * @param array $config The application configuration, if needed |
||
44 | * @param string $appClass name of the application class to create |
||
45 | */ |
||
46 | protected function mockApplication($config = [], $appClass = '\yii\console\Application') |
||
55 | |||
56 | /** |
||
57 | * Destroys application in Yii::$app by setting it to null. |
||
58 | */ |
||
59 | protected function destroyApplication() |
||
63 | |||
64 | /** |
||
65 | * @param array $config |
||
66 | * @param string $controllerClass |
||
67 | * @return \yii\console\Controller |
||
68 | */ |
||
69 | protected function mockController($config = [], $controllerClass = '\vxm\test\unit\consoleMenu\TestController') |
||
73 | } |
||
74 |