我在Mandriva 2011上运行服务器
Apache 2.2.22
PHP 5.3.14
PHPUnit版本3.3.17
Selenium Server 2.24.2
Yii 1.1.10
我把一些工作带到我家看看,我不能进行标准测试..
PHPUnit 3.3.17 by Sebastian Bergmann.
.EE
Time: 33 seconds
There were 2 errors:
1) testContact(SiteTest)
BadMethodCallException: Method waitForTextPresent not defined.
/home/user/server/hosts/cmf/www/framework/test/CWebTestCase.php:63
/home/user/server/hosts/cmf/www/protected/tests/functional/SiteTest.php:21
/home/user/server/hosts/cmf/www/protected/tests/functional/SiteTest.php:21
2) testLoginLogout(SiteTest)
BadMethodCallException: Method waitForTextPresent not defined.
/home/user/server/hosts/cmf/www/framework/test/CWebTestCase.php:63
/home/user/server/hosts/cmf/www/protected/tests/functional/SiteTest.php:36
/home/user/server/hosts/cmf/www/protected/tests/functional/SiteTest.php:36
FAILURES!
Tests: 3, Assertions: 4, Errors: 2.
我该怎么做才能解决这个问题?
答案 0 :(得分:0)
我刚从pear将PHPUnit升级到v.3.6.11。问题解决了 奇怪的是它没有从mandriva回购中恢复过来。