codeception\TestCase mockApplication()

mockApplication() protected method

Mocks up the application instance.

protected yii\web\Application|yii\console\Application mockApplication ( $config = null )
$config array

The configuration that should be used to generate the application instance. If null, $appConfig will be used.

return yii\web\Application|yii\console\Application

The application instance

throws yii\base\InvalidConfigException

if the application configuration is invalid

doc_Yii
2016-10-30 16:54:34
Comments
Leave a Comment

Please login to continue.