Explorar o código

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

Frank Brückner %!s(int64=11) %!d(string=hai) anos
pai
achega
1ef20a225a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
             ) {