public function testOffsetUnset() { $this->object['foo'] = 'bar'; $this->object->offsetUnset('foo'); $this->assertArrayNotHasKey('foo', (array) $this->object); }