8000 Encode binary data in test signature (#6708) · Codeception/Codeception@afb948b · GitHub
[go: up one dir, main page]

Skip to content < 8000 span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full">

Commit afb948b

Browse files
authored
Encode binary data in test signature (#6708)
1 parent 7d754d1 commit afb948b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Test/Descriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function getTestSignatureUnique(SelfDescribing $testCase): string
4949
method_exists($testCase, 'getMetaData')
5050
&& !empty($testCase->getMetadata()->getCurrent('example'))
5151
) {
52-
$currentExample = json_encode($testCase->getMetadata()->getCurrent('example'), JSON_THROW_ON_ERROR);
52+
$currentExample = json_encode($testCase->getMetadata()->getCurrent('example'), JSON_THROW_ON_ERROR | JSON_INVALID_UTF8_SUBSTITUTE);
5353
$example = ':' . substr(sha1($currentExample), 0, 7);
5454
}
5555

0 commit comments

Comments
 (0)
0