curl_setopt():文件名不能为空

回首
回首
订阅者
268
文章
0
粉丝
测试交流评论173字数 63阅读0分12秒阅读模式
摘要我尝试运行测试并得到这个错误 接受。php第97行: curl_setopt():文件名不能为空 我接受。PHP文件 $imgPath=codecept_output_dir()....

我尝试运行测试并得到这个错误

In Acceptance.php line 97:

curl_setopt():文件名不能为空文章源自玩技e族-https://www.playezu.com/205942.html

我接受。PHP文件文章源自玩技e族-https://www.playezu.com/205942.html

 $imgPath = codecept_output_dir() .'debug/fail.png';
curl_setopt($ch, CURLOPT_POSTFIELDS, [
        'chat_id'   => $chatID,
        'photo'     => new CURLFile(realpath($imgPath))
    ]);

软件测试工具功能文章源自玩技e族-https://www.playezu.com/205942.html 文章源自玩技e族-https://www.playezu.com/205942.html

 
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证