Пример #1
0
 function testMergeWithGuardedProps()
 {
     $ds = new lmbSet(array('test' => 'value'));
     $ds->_test = 100;
     $ds->merge(array('foo' => 'bar', '_test' => 10));
     $this->assertEqual($ds->getPropertyList(), array('test', 'foo'));
     $this->assertEqual($ds->get('test'), 'value');
     $this->assertEqual($ds->get('foo'), 'bar');
     $this->assertEqual($ds->_test, 100);
 }