Method | Description | |
---|---|---|
mockApplication ( array $config = [], string $appClass = '\yii\console\Application' ) | Populates Yii::$app with a new application The application will be destroyed on tearDown() automatically. | |
tearDown ( ) | Clean up after test. |
Method | Description | |
---|---|---|
destroyApplication ( ) | Destroys application in Yii::$app by setting it to null. |
protected mockApplication ( array $config = [], string $appClass = '\yii\console\Application' ) | ||
$config | array | The application configuration, if needed |
$appClass | string | name of the application class to create |
protected tearDown ( ) |