[limb-svn] r6892 - 3.x/trunk/limb/toolkit/tests/cases

svn at limb-project.com svn at limb-project.com
Wed Apr 2 08:46:57 MSD 2008


Author: pachanga
Date: 2008-04-02 08:46:56 +0400 (Wed, 02 Apr 2008)
New Revision: 6892
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6892

Modified:
   3.x/trunk/limb/toolkit/tests/cases/lmbToolkitTest.class.php
Log:
-- fixing test for older versions of PHP

Modified: 3.x/trunk/limb/toolkit/tests/cases/lmbToolkitTest.class.php
===================================================================
--- 3.x/trunk/limb/toolkit/tests/cases/lmbToolkitTest.class.php	2008-04-01 21:44:38 UTC (rev 6891)
+++ 3.x/trunk/limb/toolkit/tests/cases/lmbToolkitTest.class.php	2008-04-02 04:46:56 UTC (rev 6892)
@@ -73,7 +73,9 @@
 
   function testInstance()
   {
-    $this->assertIdentical(lmbToolkit :: instance(), lmbToolkit :: instance());
+    //there is a weird "recursion too deep" error on older versions of PHP
+    if(version_compare(phpversion(), '5.2.0', '>'))
+      $this->assertIdentical(lmbToolkit :: instance(), lmbToolkit :: instance());
   }
 
   function testNoSuchMethod()



More information about the limb-svn mailing list