Run: refactor the reverse loop slightly

This commit is contained in:
Denis Sokolov
2014-02-25 11:45:56 +01:00
parent 73c1e181aa
commit 5ffac20ad2
+1 -3
View File
@@ -239,9 +239,7 @@ class Run
// Just in case there are no handlers:
$handlerResponse = null;
for($i = count($this->handlerStack) - 1; $i >= 0; $i--) {
$handler = $this->handlerStack[$i];
foreach (array_reverse($this->handlerStack) as $handler) {
$handler->setRun($this);
$handler->setInspector($inspector);
$handler->setException($exception);