我使用的是widows系統。原本3.7.8版本的Phpunit用的是很是順暢的,最近從新安裝phpunit,安裝了最小版本,而後在使用的時候就會報不少各類錯誤。無奈之下只能降版本到3.7.8php
首先要卸載PHPUnit 4.0的全部依賴symfony
pear uninstall phpunit/PHPUnit pear uninstall phpunit/DbUnit pear uninstall phpunit/PHP_CodeCoverage pear uninstall phpunit/File_Iterator pear uninstall phpunit/Text_Template pear uninstall phpunit/PHP_Timer pear uninstall phpunit/PHPUnit_MockObject pear uninstall phpunit/PHPUnit_Selenium pear uninstall pear.symfony-project.com/YAML
而後挨個安裝組件,按照本身的狀況安裝吧it
pear install pear.symfony-project.com/YAML pear install phpunit/PHPUnit_Selenium pear install phpunit/PHPUnit_MockObject pear install phpunit/PHP_Timer pear install phpunit/File_Iterator pear install phpunit/PHP_CodeCoverage pear install phpunit/Text_Template pear install phpunit/DbUnit pear install phpunit/PHPUnit-3.7.8
我如今使用的是pear安裝方式,這個方式將會在2014年12月31日中止支持im