public function testToAndFromArray()
 {
     $aMetaInformationArray = $this->metaInformation->toArray();
     $newMetaInformation = MetaInformation::fromArray($aMetaInformationArray);
     $this->assertTrue($this->metaInformation->sameValueAs($newMetaInformation));
 }
 /**
  * @param QueryResultId   $aQueryResultId
  * @param MetaInformation $aMetaInformation
  * @param Result          $aResult
  */
 public function __construct(QueryResultId $aQueryResultId, MetaInformation $aMetaInformation, Result $aResult)
 {
     $this->update(new QueryResultCreated(array('queryResultId' => $aQueryResultId->toString(), 'metaInformation' => $aMetaInformation->toArray(), 'result' => array('resultClass' => get_class($aResult), 'data' => $aResult->toJSON()))));
 }
 public function testMetaInformation()
 {
     $this->assertTrue($this->metaInformation->sameValueAs($this->queryResultCreated->metaInformation()));
 }
 /**
  * @return MetaInformation
  */
 public function metaInformation()
 {
     return MetaInformation::fromArray($this->payload['metaInformation']);
 }