curl_setopt():文件名不能为空

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

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

In Acceptance.php line 97:

curl_setopt():文件名不能为空

我接受。PHP文件

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

软件测试工具功能

 
匿名

发表评论

匿名网友
确定

拖动滑块以完成验证