/** @test */
 public function removeDataFromNamespaceTree()
 {
     $sampleArray = array('key1' => array('key2' => array('key3' => 'testData1', 'key4' => 'testData2'), 'key5' => 'testData3'));
     $testArray = $sampleArray;
     unset($testArray['key1']['key2']['key3']);
     $nameSpaceString = 'key1.key2.key3';
     $alteredArray = Tx_PtExtbase_Utility_NameSpace::removeDataFromNamespaceTree($nameSpaceString, $sampleArray);
     $this->assertEquals($alteredArray, $testArray);
 }
 /**
  * Remove session data by given namespace
  *
  * @param string $namespaceString
  */
 public function removeSessionDataByNamespace($namespaceString)
 {
     $this->sessionData = Tx_PtExtbase_Utility_NameSpace::removeDataFromNamespaceTree($namespaceString, $this->sessionData);
 }