[limb-svn] r6997 - 3.x/trunk/limb/core/tests/cases

svn at limb-project.com svn at limb-project.com
Sat May 10 18:34:05 MSD 2008


Author: korchasa
Date: 2008-05-10 18:34:04 +0400 (Sat, 10 May 2008)
New Revision: 6997
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6997

Modified:
   3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php
Log:
-- add some tests for magic to reassure the soul

Modified: 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php
===================================================================
--- 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php	2008-05-10 14:13:55 UTC (rev 6996)
+++ 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php	2008-05-10 14:34:04 UTC (rev 6997)
@@ -363,6 +363,16 @@
     $obj->protected = $obj->protected;
     $this->assertTrue($obj->setter_called);
     $this->assertTrue($obj->getter_called);
-  }
+    
+    $obj = new ObjectTestVersion3();
+    $obj['protected'] = $obj['protected'];
+    $this->assertTrue($obj->setter_called);
+    $this->assertTrue($obj->getter_called);
+    
+    $obj = new ObjectTestVersion3();
+    $obj->set('protected', $obj->get('protected'));
+    $this->assertTrue($obj->setter_called);
+    $this->assertTrue($obj->getter_called);    
+  }  
 }
 



More information about the limb-svn mailing list