1

我在 yii 中使用带有 selenium 的 phpunit 来测试默认创建的测试用例。

当我尝试从测试文件夹运行 SiteTest.php 文件时,它会给出错误,例如致命错误:无法在第 17 行的 C:\wamp\www\testapp\protected\tests\WebTest ase.php 中重新声明类 WebTestCase,当我在试图从功能文件夹运行,然后显示 CWebTestCase 未定义

我正在从命令行 protected\test>phpunit functional/SiteTest.php 运行此命令

系统配置窗口 7 64 位 phpunit 已安装 selenium 已安装 pear 已安装所有最新版本以及最新版本的 yii。请尽快帮助我。

关于阿尼尔

4

0 回答 0