Skip to content

Commit

Permalink
Merge pull request #2340 from guilliamxavier/patch-1
Browse files Browse the repository at this point in the history
Fix SQL queries numbering in test failure output
  • Loading branch information
deeky666 committed Jun 3, 2016
2 parents c664ce7 + 571eead commit b4e15f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/DbalFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function onNotSuccessfulTest(\Exception $e)
return var_export($p, true);
}
}, $query['params'] ?: array());
$queries .= ($i+1).". SQL: '".$query['sql']."' Params: ".implode(", ", $params).PHP_EOL;
$queries .= $i.". SQL: '".$query['sql']."' Params: ".implode(", ", $params).PHP_EOL;
$i--;
}

Expand Down

0 comments on commit b4e15f2

Please sign in to comment.