我正在阅读敏捷 Web 应用程序开发书,并且我已经完成了关于测试的部分。在这本书中他们推荐安装 Selenium 和 PHPUnit 我已经成功安装了 Selenium RC 和 PHPUnit
然后我运行了这个命令:
c:\wamp\www\yii\agile\protected\tests>phpunit functional/SiteTest.php
但它不起作用。我收到了这个错误:
Warning: include(PHPUnit_Extensions_SeleniumTestCase_Driver.php):
failed to open stream: No such file or directory in
F:\xampp\htdocs\yii\framework\YiiBase.php on line 418
Warning: include(): Failed opening 'PHPUnit_Extensions_SeleniumTestCase_Driver.php'
for inclusion (include_path='.;
F:\xampp\htdocs\yii\app\protected\modules\user\components;
F:\xampp\htdocs\yii\app\protected\modules\user\models;
F:\xampp\htdocs\yii\app\protected\components;
F:\xampp\htdocs\yii\app\protected\models;
F:\xampp\php\PEAR')
in F:\xampp\htdocs\yii\framework\YiiBase.php on line 418
Fatal error: Class 'PHPUnit_Extensions_SeleniumTestCase_Driver' not found in
F:\xampp\php\PEAR\PHPUnit\Extensions\SeleniumTestCase.php on line 602
有谁知道如何解决这个问题?