gpt4 book ai didi

CakePHP 和 SimpleTest 未通过全新安装测试

转载 作者:行者123 更新时间:2023-12-04 15:47:50 25 4
gpt4 key购买 nike

我刚刚下载了 Cake PHP 1.3,并将 SimpleTest 1.0.1 安装到了 vendor 目录中。当我运行 cake testsuite core 时,我收到以下错误:

运行核心所有 PHP fatal error :Cannot redeclare class Article in /Users/../cake/tests/cases/libs/model/models.php on line 283
如果我单独运行测试组或测试用例,其中许多都会失败。

这是一个全新安装,除了基本配置设置(安全盐、密码种子和数据库配置)之外,我没有进行任何开发。

有没有其他人遇到过问题,你做了什么来解决它?

我找到了 this与完全相同的问题的线程,但它没有解决,或者至少该解决方案没有发布在该线程中。

最佳答案

显然,如 CakePHP 1.3 documentation 中所述:

If you run all of the core tests at once or run core test groups most of them will fail. This is known by the CakePHP developers and is normal so don't panic. Instead, try running each of the core test cases individually.



瘸。如果它们失败了,为什么还要费心进行核心测试。我只是对蛋糕失去了很多信心。但这是他们的答案...

关于CakePHP 和 SimpleTest 未通过全新安装测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6589303/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com