public function let(GithubUserId $githubUserId) { $githubUserId->__toString()->willReturn('6789'); $this->beConstructedWith($name = 'John Doe', $email = '*****@*****.**', $githubUserId, $username = '******', $avatarUrl = 'http://..'); }
public function let(GithubUserId $githubUserId, GithubTypeOrganization $githubType) { $githubUserId->__toString()->willReturn('6789'); $githubType->__toString()->willReturn('Organization'); $this->beConstructedWith($githubUserId, $username = '******', $avatarUrl = 'http://...', $githubType); }