public function testRemove()
 {
     $collection = new CAttributeCollection();
     $collection->add('Property', 'value');
     $collection->remove('Property');
     $this->assertEquals(0, count($collection));
 }
Beispiel #2
0
 /**
  * Unsets the element at the specified offset.
  * This method is required by the interface ArrayAccess.
  * @param mixed $offset the offset to unset element
  */
 public function offsetUnset($offset)
 {
     $this->_attributes->remove($offset);
 }