Пример #1
0
 public function testUserDetails()
 {
     $tokenMock = $this->getAccessTokenMock();
     $reponseMock = $this->getResponseMock();
     $oauth = new Strava\API\OAuth(array());
     $output = $oauth->userDetails($reponseMock, $tokenMock);
     $this->assertInstanceOf('stdClass', $output);
 }
Пример #2
0
 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);
 }