From: Chuck Hagenbuch Date: Mon, 28 Sep 2009 15:44:03 +0000 (-0400) Subject: Change test helper method name to avoid conflicts with PHPUnit's throwException method X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=61971d6d5400bb47a18b3937a3c7a48aa622f1d9;p=horde.git Change test helper method name to avoid conflicts with PHPUnit's throwException method --- 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(); }