From 144c2901a7429ef0591232b5eb66c7fb09b75880 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Tue, 24 Oct 2017 09:21:33 -0400 Subject: [PATCH] CRM-18048 - only pop the global stack once. This change avoids breaking other report tests. --- tests/phpunit/CiviTest/CiviReportTestCase.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviReportTestCase.php b/tests/phpunit/CiviTest/CiviReportTestCase.php index f926fcbc068f..22ca50d4b557 100644 --- a/tests/phpunit/CiviTest/CiviReportTestCase.php +++ b/tests/phpunit/CiviTest/CiviReportTestCase.php @@ -61,12 +61,8 @@ public function getReportOutputAsCsv($reportClass, $inputParams) { file_put_contents($tmpFile, $csvContent); } catch (Exception $e) { - // print_r($e->getCause()->getUserInfo()); - CRM_Utils_GlobalStack::singleton()->pop(); throw $e; } - CRM_Utils_GlobalStack::singleton()->pop(); - return $tmpFile; }