We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36a47aa + c4c2bfe commit 031e27cCopy full SHA for 031e27c
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