Skip to content

Commit

Permalink
Return setUp and tearDown methods in proper order.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Apr 13, 2015
1 parent 0791eda commit d1ecee6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AnnotationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public function having($annotation)
}
}

return $methods;
// We'll reverse the results to ensure that this package's
// hooks are called *before* the user's.

return array_reverse($methods);
}

/**
Expand Down

0 comments on commit d1ecee6

Please sign in to comment.