From 81c22699e355acdd9d798e738aa64eeaf3fbc0c1 Mon Sep 17 00:00:00 2001 From: Marco van 't Wout Date: Mon, 23 Jul 2018 14:20:42 +0200 Subject: [PATCH] Update Descriptor.php Switch to solution https://github.com/Codeception/Codeception/issues/4913#issuecomment-407014807 --- src/Codeception/Test/Descriptor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codeception/Test/Descriptor.php b/src/Codeception/Test/Descriptor.php index 04e23703e0..81ca09b770 100644 --- a/src/Codeception/Test/Descriptor.php +++ b/src/Codeception/Test/Descriptor.php @@ -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);