Skip to content

Commit

Permalink
Update Descriptor.php
Browse files Browse the repository at this point in the history
Switch to solution Codeception#4913 (comment)
  • Loading branch information
marcovtwout committed Jul 23, 2018
1 parent 3f91bea commit 81c2269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Test/Descriptor.php
Expand Up @@ -34,7 +34,7 @@ public static function getTestSignatureUnique(\PHPUnit\Framework\SelfDescribing
{
$example = null;

if ($testCase instanceof TestInterface
if (method_exists($testCase, 'getMetaData')
&& $example = $testCase->getMetadata()->getCurrent('example')
) {
$example = ':' . substr(sha1(json_encode($example)), 0, 7);
Expand Down

0 comments on commit 81c2269

Please sign in to comment.