/**
  * Deserializes a given object tree and reinjects all dependencies.
  *
  * @param array $dataArray The serialized objects array
  * @return array The deserialized objects in an array
  * @author Andreas Förthner <*****@*****.**>
  */
 public function deserializeObjectsArray(array $dataArray)
 {
     $this->objectsAsArray = $dataArray;
     $objects = array();
     foreach ($this->objectsAsArray as $objectName => $objectData) {
         if (!$this->objectManager->isObjectRegistered($objectName)) {
             continue;
         }
         $objects[$objectName] = $this->reconstituteObject($objectData);
     }
     return $objects;
 }
 /**
  * @test
  * @author Robert Lemke <*****@*****.**>
  */
 public function setObjectConfigurationRegistersYetUnknownObjectsFromObjectConfiguration()
 {
     $objectManager = new \F3\FLOW3\Object\ObjectManager();
     $this->assertFalse($objectManager->isObjectRegistered('Foo'));
     $configuration = new \F3\FLOW3\Object\Configuration\Configuration('Foo');
     $objectManager->setObjectConfiguration($configuration);
     $this->assertTrue($objectManager->isObjectRegistered('Foo'));
 }