public function testCreate() { $target = new UserFacadeFactory(new KnpLabsClientFactory()); $result = $target->create($this->provideTestUser()); self::assertInstanceOf('DevBoardLib\\GithubApiFacade\\User\\PaginatedKnpLabsUserFacade', $result); }
/** * @param GithubAccessToken $user * * @return SimpleUserFacade */ public function create(GithubAccessToken $user) { return new SimpleUserFacade($this->wrappedUserFacadeFactory->create($user), new GithubRepoConverter()); }