offsetUnset() public method

Implementation of ArrayAccess::offsetUnset()
public offsetUnset ( string $offset ) : void
$offset string Offset
return void
Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testOffsetUnset()
 {
     $this->object->setData('k', 'v');
     $this->object->offsetUnset('k');
     $this->assertNull($this->object->getData('k'));
 }