1 | <?php |
||
12 | class TestCase extends \PHPUnit\Framework\TestCase |
||
13 | { |
||
14 | protected function setUp() |
||
22 | |||
23 | protected function tearDown() |
||
27 | |||
28 | /** |
||
29 | * Populates Yii::$app with a new application |
||
30 | * The application will be destroyed on tearDown() automatically. |
||
31 | * |
||
32 | * @param array $config The application configuration, if needed |
||
33 | * @param string $appClass name of the application class to create |
||
34 | */ |
||
35 | protected function mockApplication($config = [], $appClass = '\yii\console\Application') |
||
55 | |||
56 | /** |
||
57 | * @return string vendor path |
||
58 | */ |
||
59 | protected function getVendorPath() |
||
63 | |||
64 | /** |
||
65 | * Destroys application in Yii::$app by setting it to null. |
||
66 | */ |
||
67 | protected function destroyApplication() |
||
71 | |||
72 | /** |
||
73 | * Setup tables for test ActiveRecord |
||
74 | */ |
||
75 | protected function setupTestDbData() |
||
105 | } |
||
106 |