public function testCanNotRemoveWhenReadOnly() { $list = new CList(array(1, 2, 3), true); $this->setExpectedException('CException'); $list->removeAt(2); }