We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 62f8573 + 031e27c commit 1bbdbf1Copy full SHA for 1bbdbf1
src/Magento/FunctionalTestingFramework/Allure/AllureHelper.php
@@ -23,7 +23,11 @@ class AllureHelper
23
public static function addAttachmentToCurrentStep($data, $caption): void
24
{
25
if (!is_string($data)) {
26
- $data = serialize($data);
+ try {
27
+ $data = serialize($data);
28
+ } catch (\Exception $exception) {
29
+ throw new \Exception($data->getMessage());
30
+ }
31
}
32
if (@file_exists($data) && is_file($data)) {
33
Allure::attachmentFile($caption, $data);
0 commit comments