phpunit-pear方式从3.7升级到4.0的问题
上一篇 /
下一篇 2014-05-06 09:24:43
/ 个人分类:phpunit
执行
phpunit时,提示如下信息:
PHPUnit 4.0.17 by Sebastian Bergmann.
You have installed PHPUnit via PEAR. This installation method is no longer
supported and http://pear.phpunit.de/ will be shut down no later than
December, 31 2014.
Please read http://phpunit.de/manual/current/en/installation.html and
learn how to use PHPUnit from a PHAR or install it via Composer.提示信息大意为:
你通过pear方式安装的phpunit,这种安装方法将不再长久支持,而且http://pear.phpunit.de/将在2014-12-31后关闭。
请阅读:http://phpunit.de/manual/current/en/installation.html,并
学习如何通过phar使用phpunit,及通过Composer安装它。
另外,原来phpunit的
测试代码,会在头部引入TestCase.php
require_once 'PHPUnit/Framework/TestCase.php';
升级到4.0后,会出现错误提示如下:
Fatal error: Call to undefined method PHPUnit_Util_Test::getOutputBufferingSettings() in D:\xampp\php\pear\PHPUnit\Framework\TestCase.php on line 536注释该require_once即可解决;
相关阅读:
- selenium学习笔记(4)-结合phpunit常见问题 分析 (dj7491916, 2012-6-14)
- JMeter初体验——问题记录1(重定向问题) (fairylly, 2012-6-15)
- JMeter初体验——问题记录2(HTTP请求中文乱码问题) (fairylly, 2012-6-18)
- loadrunner11.0安装和出现的问题 (张亚洲, 2013-2-01)
- outlook 文本修改插入文字后面文字消失问题 (luoriver, 2013-3-14)
- QC10升级到ALM11.0遇到的问题及解决 (test5152, 2013-4-26)
- puppet3.3.1-(六)-puppet&Dashboard问题记录1 (fairylly, 2013-11-05)
- puppet3.3.1-(六)-puppet&Dashboard问题记录2 (fairylly, 2013-11-06)
- phpunit 单元测试案例--签到任务 (zaza9084, 2013-12-23)
- TortoiseSVN-查看日志时查看不到最近的日志问题解决记录 (fairylly, 2014-3-05)
收藏
举报
TAG:
升级
问题
phpunit
pear