/** * @param GithubPullRequestDataInterface $remote * @param GithubPullRequest $entity * * @return bool */ public function map(GithubPullRequestDataInterface $remote, GithubPullRequest $entity) { $entity->setTitle($remote->getTitle()); return true; }
public function it_will_map_property_values_from_remote_to_entity(GithubPullRequestDataInterface $remote, GithubPullRequest $entity) { $remote->getTitle()->willReturn('name'); $entity->setTitle('name')->shouldBeCalled(); $this->map($remote, $entity)->shouldReturn(true); }