예제 #1
0
 function testRemove()
 {
     $object = new lmbObject();
     $object->set('bar', 1);
     $object->set('foo', 2);
     $object->remove('bar');
     $this->assertEqual($object->get('foo'), 2);
     $this->assertTrue($object->has('foo'));
     $this->assertFalse($object->has('bar'));
 }