如题
我之前写过一篇文章,针对mac的,你看下吧,或许有帮助
http://yiiblog.info/blog/2012/01/setup-unit-test-environment-for-yii-on-mac/