| 1 | <?php |
||
| 11 | class TestCase extends \PHPUnit\Framework\TestCase |
||
| 12 | { |
||
| 13 | protected function setUp() |
||
| 19 | |||
| 20 | protected function tearDown() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Populates Yii::$app with a new application |
||
| 27 | * The application will be destroyed on tearDown() automatically. |
||
| 28 | * |
||
| 29 | * @param array $config The application configuration, if needed |
||
| 30 | * @param string $appClass name of the application class to create |
||
| 31 | */ |
||
| 32 | protected function mockApplication($config = [], $appClass = '\yii\console\Application') |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string vendor path |
||
| 54 | */ |
||
| 55 | protected function getVendorPath() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Destroys application in Yii::$app by setting it to null. |
||
| 62 | */ |
||
| 63 | protected function destroyApplication() |
||
| 67 | } |
||
| 68 |