[limb-svn] r7006 - 3.x/trunk/limb/core/tests/cases
svn at limb-project.com
svn at limb-project.com
Mon May 12 12:19:11 MSD 2008
Author: korchasa
Date: 2008-05-12 12:19:10 +0400 (Mon, 12 May 2008)
New Revision: 7006
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7006
Modified:
3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php
Log:
-- add test for setRaw/getRaw methods
Modified: 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php
===================================================================
--- 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php 2008-05-12 07:33:46 UTC (rev 7005)
+++ 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php 2008-05-12 08:19:10 UTC (rev 7006)
@@ -63,6 +63,16 @@
$this->getter_called_count++;
return $this->protected;
}
+
+ function rawSet($value)
+ {
+ $this->_setRaw('protected', $value);
+ }
+
+ function rawGet()
+ {
+ return $this->_getRaw('protected');
+ }
}
class lmbObjectTest extends UnitTestCase
@@ -402,5 +412,13 @@
$this->assertEqual($obj->setter_called_count, 2);
$this->assertEqual($obj->get('protected'), 'value2');
}
+
+ function testRawSetDoNotCallTheMagick()
+ {
+ $obj = new ObjectTestVersion3();
+ $obj->rawSet($obj->rawGet());
+ $this->assertFalse($obj->setter_called);
+ $this->assertFalse($obj->getter_called);
+ }
}
More information about the limb-svn
mailing list