/** * Test offset set sets both new & existing values * * @return void */ public function testOffsetSet() { $this->collection->offsetSet('new', 7); $this->assertEquals(7, $this->collection->offsetGet('new')); $this->assertEquals(2, $this->collection->offsetGet(1)); $this->collection->offsetSet(1, 9); $this->assertEquals(9, $this->collection->offsetGet(1)); }