【问题标题】:PHPunit test failed with Yii frameworkYii 框架的 PHPunit 测试失败
【发布时间】:2014-05-26 14:37:01
【问题描述】:

我的本​​地系统是带有 Yii 1.1.14 的 WAMP (win 8.1)。

我已经通过 pear 安装了 PHPUnit。(CMD: pear install phpunit/PHPUnit)

但是测试失败了。 有人可以给我一些提示吗?非常感谢。

以下是错误信息。

C:\wamp\www\trackstar\protected\tests>phpunit --version
PHPUnit 4.0.14 by Sebastian Bergmann.
C:\wamp\www\trackstar\protected\tests>phpunit unit/DbTest.php
PHP Warning: require_once(PHPUnit/Extensions/SeleniumTestCase.php): failed to o
pen stream: No such file or directory in C:\wamp\www\yii\framework\test\CWebTest
Case.php on line 12 

【问题讨论】:

    标签: yii phpunit


    【解决方案1】:

    您必须安装一些扩展程序,在本例中为 Selenium。我假设你运行 selenium 测试,那就是你必须扩展它。

    在 Linux 中,您必须使用

    安装它
    pear install phpunit/PHPUnit_Selenium
    

    不太清楚 Windows 中的命令是什么。

    【讨论】:

      猜你喜欢
      • 2011-12-16
      • 2012-03-22
      • 2013-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-31
      • 2012-08-21
      • 2017-06-24
      相关资源
      最近更新 更多