Ejemplo n.º 1
0
 public function clear()
 {
     parent::clear();
     if ($this->_o instanceof INamingContainer) {
         $this->_o->clearNamingContainer();
     }
 }
Ejemplo n.º 2
0
 public function testCanNotClearWhenReadOnly()
 {
     $list = new TList(array(1, 2, 3), true);
     try {
         $list->clear();
     } catch (TInvalidOperationException $e) {
         return;
     }
     self::fail('An expected TInvalidOperationException was not raised');
 }