diff --git a/src/Codeception/Specify.php b/src/Codeception/Specify.php index fdc3bc2..f0c2086 100644 --- a/src/Codeception/Specify.php +++ b/src/Codeception/Specify.php @@ -42,7 +42,8 @@ function specify($specification, \Closure $callable = null, $params = []) $throws = $this->getSpecifyExpectedException($params); $examples = $this->getSpecifyExamples($params); - foreach ($examples as $example) { + foreach ($examples as $idx => $example) { + $this->setName($name.' | '.$specification .' | examples index '. $idx); // copy current object properties $this->specifyCloneProperties($properties);