/**
  * @test
  */
 public function convertObjectToArrayConvertsNestedObjectsToArray()
 {
     $object = new \stdClass();
     $object->a = 'v';
     $object->b = new \stdClass();
     $object->b->c = 'w';
     $object->d = array('i' => 'foo', 'j' => 12, 'k' => true, 'l' => new \stdClass());
     $array = \TYPO3\CMS\Extbase\Utility\ArrayUtility::convertObjectToArray($object);
     $expected = array('a' => 'v', 'b' => array('c' => 'w'), 'd' => array('i' => 'foo', 'j' => 12, 'k' => true, 'l' => array()));
     $this->assertSame($expected, $array);
 }