安装最新版本的PHPUnit后,不能使用
我使用的是widows系统。本来3.7.8版本的Phpunit用的是非常顺畅的,最近重新安装phpunit,安装了最小版本,然后在使用的时候就会报很多各种错误。无奈之下只能降版本到3.7.8
首先要卸载PHPUnit 4.0的所有依赖
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
然后挨个安装组件,按照自己的情况安装吧
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日停止支持
顺带分享一下搜集到的一些安装教程
也可以从这个地址下载http://download.csdn.net/download/loneleaf1/7466543
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· dotnet 源代码生成器分析器入门
· ASP.NET Core 模型验证消息的本地化新姿势
· 对象命名为何需要避免'-er'和'-or'后缀
· SQL Server如何跟踪自动统计信息更新?
· AI与.NET技术实操系列:使用Catalyst进行自然语言处理
· dotnet 源代码生成器分析器入门
· 官方的 MCP C# SDK:csharp-sdk
· 一款 .NET 开源、功能强大的远程连接管理工具,支持 RDP、VNC、SSH 等多种主流协议!
· 一步一步教你部署ktransformers,大内存单显卡用上Deepseek-R1
· 一次Java后端服务间歇性响应慢的问题排查记录