Skip to content

Commit

Permalink
Merge pull request #19 from zszucs/zszucs/add_index_to_examples_array
Browse files Browse the repository at this point in the history
[zszucs]add index to failed tests if examples array is used
  • Loading branch information
DavertMik committed Nov 26, 2015
2 parents 0809e02 + 36aa19e commit 8efcd01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Codeception/Specify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8efcd01

Please sign in to comment.