| 
									
										
										
										
											2012-11-22 13:18:56 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-08 10:32:26 +00:00
										 |  |  | use JacobKiers\OAuth\Client; | 
					
						
							| 
									
										
										
										
											2012-11-22 13:18:56 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | class ClientTest extends PHPUnit_Framework_TestCase | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	public function testKeyAndSecretAreSet() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $client = new Client('foo', 'bar'); | 
					
						
							|  |  |  |         $this->assertEquals('foo', $client->getKey()); | 
					
						
							|  |  |  |         $this->assertEquals('bar', $client->getSecret()); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function testCallbackUrlIsSet() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $client = new Client('foo', 'bar', 'http://example.com/foobar'); | 
					
						
							|  |  |  |         $this->assertEquals('http://example.com/foobar', $client->getCallbackUrl()); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |