protected function mockApplication($config = [], $appClass = '\\yii\\console\\Application') { new $appClass(ArrayHelper::merge(['id' => 'testapp', 'basePath' => __DIR__, 'vendorPath' => dirname(__DIR__) . '/vendor'], $config)); }