added generated files to .gitignore
fixed some phpunit test errors
Merge pull request #16 from touhonoob/develop

- CHG: 修正一些跑phpunit的錯誤 (Thanks touhonoob)