Exemplo n.º 1
0
 /**
  * @test
  */
 public function removeEmptyElementsRecursivelyRemovesEmptySubArrays()
 {
     $array = array('EmptyElement' => array(), 'Foo' => array('Bar' => array('Baz' => array('AnotherEmptyElement' => null))), 'NotNull' => 123);
     $expectedResult = array('NotNull' => 123);
     $actualResult = \TYPO3\CMS\Extbase\Utility\ArrayUtility::removeEmptyElementsRecursively($array);
     $this->assertSame($expectedResult, $actualResult);
 }