jamband\schemadump\tests\TestCase::mockApplication PHP Метод

mockApplication() защищенный Метод

Populates Yii::$app with a new application The application will be destroyed on tearDown() automatically.
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 function mockApplication($config = [], $appClass = '\\yii\\console\\Application')
    {
        new $appClass(ArrayHelper::merge(['id' => 'testapp', 'basePath' => __DIR__, 'vendorPath' => dirname(__DIR__) . '/vendor'], $config));
    }