Ejemplo n.º 1
0
 public function testCanNotRemoveWhenReadOnly()
 {
     $list = new TList(array(1, 2, 3), true);
     try {
         $list->remove(2);
         self::fail('An expected TInvalidOperationException was not raised');
     } catch (TInvalidOperationException $e) {
     }
     $list = new TList(array(1, 2, 3), true);
     try {
         $list->remove(10);
         self::fail('An expected TInvalidOperationException was not raised');
     } catch (TInvalidOperationException $e) {
     }
 }