public function testSameValueAs()
 {
     $aUUID = Uuid::uuid4();
     $anotherUUID = Uuid::uuid4();
     $aWorkflowRunId = new WorkflowRunId($aUUID);
     $equalWorkflowRunId = new WorkflowRunId($aUUID);
     $anotherWorkflowRunId = new WorkflowRunId($anotherUUID);
     $this->assertTrue($aWorkflowRunId->sameValueAs($equalWorkflowRunId));
     $this->assertFalse($aWorkflowRunId->sameValueAs($anotherWorkflowRunId));
 }
 /**
  * @param EntityInterface $other
  * @return boolean
  */
 public function sameIdentityAs(EntityInterface $other)
 {
     if (!$other instanceof WorkflowRun) {
         return false;
     }
     return $this->workflowRunId->sameValueAs($other->workflowRunId());
 }
 public function testWorkflowRunId()
 {
     $this->assertTrue($this->workflowRunId->sameValueAs($this->command->workflowRunId()));
 }