I try to run test and get this error
In Acceptance.php line 97:
curl_setopt(): Filename cannot be empty
My Acceptence.php file
$imgPath = codecept_output_dir() .'debug/fail.png';
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'chat_id' => $chatID,
'photo' => new \CURLFile(realpath($imgPath))
]);
I solved this problem, the fact was that the function "codecept_output_dir()" was pulling the wrong path and an error occurred because of this. Thank you for your advice-answers)