public function testOffsetSetReplace() { $list = new CList(array(1, 2, 3)); $list->offsetSet(1, 4); $this->assertEquals(array(1, 4, 3), $list->toArray()); }