public function testUserDetails() { $tokenMock = $this->getAccessTokenMock(); $reponseMock = $this->getResponseMock(); $oauth = new Strava\API\OAuth(array()); $output = $oauth->userDetails($reponseMock, $tokenMock); $this->assertInstanceOf('stdClass', $output); }
public function testUserDetails() { $tokenMock = $this->getAccessTokenMock(); $reponseMock = $this->getResponseMock(); $oauth = new Strava\API\OAuth(array()); $output = $oauth->userDetails($reponseMock, $tokenMock); $this->assertInstanceOf('League\\OAuth2\\Client\\Entity\\User', $output); }