[limb-svn] r6548 - 3.x/trunk/limb/core/tests/cases
svn at limb-project.com
svn at limb-project.com
Tue Nov 27 12:22:16 MSK 2007
Author: serega
Date: 2007-11-27 12:22:16 +0300 (Tue, 27 Nov 2007)
New Revision: 6548
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6548
Modified:
3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php
Log:
-- lmbObjectTest improved: it proves that we can't use isset($this->attribute) for cheching if lmbObject object has property or not
Modified: 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php
===================================================================
--- 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php 2007-11-26 16:05:57 UTC (rev 6547)
+++ 3.x/trunk/limb/core/tests/cases/lmbObjectTest.class.php 2007-11-27 09:22:16 UTC (rev 6548)
@@ -55,6 +55,14 @@
$this->assertTrue($object->has('bar'));
}
+ function testHasAttributeForNullValue()
+ {
+ $object = new lmbObject();
+ $object->set('bar', null);
+
+ $this->assertTrue($object->has('bar'));
+ }
+
function testHasAttributeForExistingButNullProperty()
{
$object = new lmbObject();
More information about the limb-svn
mailing list