From 61971d6d5400bb47a18b3937a3c7a48aa622f1d9 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Mon, 28 Sep 2009 11:44:03 -0400 Subject: [PATCH] Change test helper method name to avoid conflicts with PHPUnit's throwException method --- framework/Support/test/Horde/Support/BacktraceTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Support/test/Horde/Support/BacktraceTest.php b/framework/Support/test/Horde/Support/BacktraceTest.php index 5dd4f3bb0..251f558aa 100644 --- a/framework/Support/test/Horde/Support/BacktraceTest.php +++ b/framework/Support/test/Horde/Support/BacktraceTest.php @@ -42,14 +42,14 @@ class Horde_Support_BacktraceTest extends PHPUnit_Framework_TestCase public function testCreateFromException() { try { - $this->throwException(); + $this->generateUncaughtException(); } catch (Exception $e) { } $trace = new Horde_Support_Backtrace($e); $caller = $trace->getCurrentContext(); - $this->assertEquals('throwException', $caller['function']); + $this->assertEquals('generateUncaughtException', $caller['function']); $caller = $trace->getCallingContext(); $this->assertEquals(__FUNCTION__, $caller['function']); @@ -75,7 +75,7 @@ class Horde_Support_BacktraceTest extends PHPUnit_Framework_TestCase return debug_backtrace(); } - public function throwException() + public function generateUncaughtException() { throw new Exception(); } -- 2.11.0