gpt4 book ai didi

php - 为什么, fatal error : Class 'PHPUnit_Framework_TestCase' not found in . ..?

转载 作者:IT老高 更新时间:2023-10-28 11:48:32 24 4
gpt4 key购买 nike

为什么我会收到这个 PHP 错误?

Fatal error: Class 'PHPUnit_Framework_TestCase' not found in ...

最佳答案

对于那些在将 phpunit 更新到 2017 年 2 月 3 日发布的版本 6 或更高版本(例如使用 composer)后到达这里的人,您可能会收到此错误,因为 phpunit 代码现在已命名空间(检查 changelog )。

您需要将 \PHPUnit_Framework_TestCase 等内容重构为 \PHPUnit\Framework\TestCase

关于php - 为什么, fatal error : Class 'PHPUnit_Framework_TestCase' not found in . ..?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6065730/

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