zoukankan      html  css  js  c++  java
  • 安装最新版本的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日停止支持

    顺带分享一下搜集到的一些安装教程

    PHPUnit.rar

    也可以从这个地址下载http://download.csdn.net/download/loneleaf1/7466543

  • 相关阅读:
    对SpringIOC、AOP的理解
    Java后台与VUE跨域交接
    贼简单的Shiro框架之粗粒度控制菜单栏
    Json
    Spring MVC小DEMO
    面试问题
    多线程理解
    了解java语言
    单点登录如何设计
    进程的创建和调度分析
  • 原文地址:https://www.cnblogs.com/php-rearch/p/4199312.html
Copyright © 2011-2022 走看看