我使用的是widows系统。本来3.7.8版本的Phpunit用的是非常顺畅的,最近重新安装phpunit,安装了最小版本,然后在使用的时候就会报很多各种错误。无奈之下只能降版本到3.7.8
首先要卸载PHPUnit 4.0的所有依赖
pear uninstall phpunit/PHPUnitpear uninstall phpunit/DbUnitpear uninstall phpunit/PHP_CodeCoveragepear uninstall phpunit/File_Iteratorpear uninstall phpunit/Text_Templatepear uninstall phpunit/PHP_Timerpear uninstall phpunit/PHPUnit_MockObjectpear uninstall phpunit/PHPUnit_Seleniumpear uninstall pear.symfony-project.com/YAML