Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Commit

Permalink
Fixes #467 - [Zend_Test] Debug_backtrace() called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
froschdesign committed Nov 27, 2014
1 parent 80b6fda commit 1ef20a2
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 1ef20a2

Please sign in to comment.