public function testUnsetElement() { $this->_populateSampleStructure(); // non-recursively $this->assertTrue($this->_structure->unsetElement('six', false)); $this->assertFalse($this->_structure->unsetElement('six', false)); $this->assertSame(array(5), $this->_structure->getElement('five')); // recursively $this->assertTrue($this->_structure->unsetElement('four')); $this->assertSame(array('one' => array(), 'five' => array(5)), $this->_structure->exportElements()); }