Skip to content

Commit

Permalink
Fixes zendframework#467 - [Zend_Test] Debug_backtrace() called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
froschdesign authored and Dimitris Giotas committed Jun 17, 2016
1 parent c9b5589 commit 4b6db4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/ControllerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ public function urlizeOptions($urlOptions, $actionControllerModuleOnly = true)
protected function _incrementAssertionCount()
{
$stack = debug_backtrace();
foreach (debug_backtrace() as $step) {
foreach ($stack as $step) {
if (isset($step['object'])
&& $step['object'] instanceof PHPUnit_Framework_TestCase
) {
Expand Down

0 comments on commit 4b6db4f

Please sign in to comment.