update 1.0.8.0
Commits for version update
This commit is contained in:
		
							
								
								
									
										76
									
								
								vendor/league/oauth1-client/tests/stubs/ServerStub.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								vendor/league/oauth1-client/tests/stubs/ServerStub.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,76 @@ | ||||
| <?php | ||||
|  | ||||
| namespace League\OAuth1\Client\Tests; | ||||
|  | ||||
| use League\OAuth1\Client\Credentials\TokenCredentials; | ||||
| use League\OAuth1\Client\Server\Server; | ||||
| use League\OAuth1\Client\Server\User; | ||||
|  | ||||
| class ServerStub extends Server | ||||
| { | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function urlTemporaryCredentials() | ||||
|     { | ||||
|         return 'http://www.example.com/temporary'; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function urlAuthorization() | ||||
|     { | ||||
|         return 'http://www.example.com/authorize'; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function urlTokenCredentials() | ||||
|     { | ||||
|         return 'http://www.example.com/token'; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function urlUserDetails() | ||||
|     { | ||||
|         return 'http://www.example.com/user'; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function userDetails($data, TokenCredentials $tokenCredentials) | ||||
|     { | ||||
|         $user = new User; | ||||
|         $user->firstName = $data['foo']; | ||||
|         return $user; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function userUid($data, TokenCredentials $tokenCredentials) | ||||
|     { | ||||
|         return isset($data['id']) ? $data['id'] : null; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function userEmail($data, TokenCredentials $tokenCredentials) | ||||
|     { | ||||
|         return isset($data['contact_email']) ? $data['contact_email'] : null; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * {@inheritDoc} | ||||
|      */ | ||||
|     public function userScreenName($data, TokenCredentials $tokenCredentials) | ||||
|     { | ||||
|         return isset($data['username']) ? $data['username'] : null; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma