public function it_will_create_remote_commit_status_value_object(StatusPayload $statusPayload)
 {
     $statusPayload->getState()->willReturn('state');
     $statusPayload->getDescription()->willReturn('description');
     $statusPayload->getTargetUrl()->willReturn('url');
     $result = $this->create($statusPayload);
     $result->shouldReturnAnInstanceOf('DevBoard\\GithubRemote\\ValueObject\\CommitStatus\\CommitStatus');
     $result->getStatus()->shouldReturn('state');
     $result->getDescription()->shouldReturn('description');
 }
 /**
  * @param StatusPayload $statusPayload
  *
  * @return CommitStatus
  */
 public function create(StatusPayload $statusPayload)
 {
     return new CommitStatus($statusPayload->getState(), $statusPayload->getDescription(), $statusPayload->getTargetUrl());
 }