<?php/* * This file is part of the overtrue/socialite. * * (c) overtrue <i@overtrue.me> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */useOvertrue\Socialite\AccessToken;useOvertrue\Socialite\User;usePHPUnit\Framework\TestCase;classUserTestextendsTestCase{publicfunctiontestJsonserialize(){$this->assertSame('[]',json_encode(newUser([])));$this->assertSame('{"token":"mock-token"}',json_encode(newUser(['token'=>newAccessToken(['access_token'=>'mock-token'])])));}}