Browse Source

Fixes #467 - [Zend_Test] Debug_backtrace() called twice

Frank Brückner 11 years ago
parent
commit
1ef20a225a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Test/PHPUnit/ControllerTestCase.php

+ 1 - 1
library/Zend/Test/PHPUnit/ControllerTestCase.php

@@ -1190,7 +1190,7 @@ abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_Te
     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
             ) {