Patch yii config array

Like in CWebApplication in Yii, this patch allows you to also pass a configuration array to initialize the app and run the tests.