Change test helper method name to avoid conflicts with PHPUnit's throwException method
authorChuck Hagenbuch <chuck@horde.org>
Mon, 28 Sep 2009 15:44:03 +0000 (11:44 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 28 Sep 2009 15:44:03 +0000 (11:44 -0400)
framework/Support/test/Horde/Support/BacktraceTest.php

index 5dd4f3b..251f558 100644 (file)
@@ -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();
     }