Where is $tmpDir defined? Is it unique for each test? I'm running into most of my problems when I run multiple yii tests in parallel.