From 4b6db4f556c656696e6f730bbe7a9cbdf1bc5f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Bru=CC=88ckner?= Date: Thu, 27 Nov 2014 10:45:09 +0100 Subject: [PATCH] Fixes #467 - [Zend_Test] Debug_backtrace() called twice --- library/Zend/Test/PHPUnit/ControllerTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Test/PHPUnit/ControllerTestCase.php b/library/Zend/Test/PHPUnit/ControllerTestCase.php index 1b8827d8d0..bb54d20184 100644 --- a/library/Zend/Test/PHPUnit/ControllerTestCase.php +++ b/library/Zend/Test/PHPUnit/ControllerTestCase.php @@ -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 ) {