利用codeception过程中遇到的问题及解决方式

来源:互联网 发布:淘宝嘻哈风的店铺 编辑:程序博客网 时间:2024/05/01 04:54

1. 利用sendpost,send pdf 文件

$files = ["name" => $I->getRandom()."instant.pdf",            "type" => "application/pdf",            "tmp_name" => $filepath,            "error" => 0,            "size" => filesize($filepath)];$I->sendPOST("/share/upload-instant?csrf=skip", null, ["file"=>$files]);


0 0