Ejemplo n.º 1
0
 public function setup()
 {
     $this->stubConsumer = new Consumer32874();
     $this->stubConsumer2 = new Consumer32874b();
     $this->stubHttpUtility = new HTTPUtility32874();
     OAuth\OAuth::setHttpClient(new HTTPClient32874());
 }
Ejemplo n.º 2
0
 public function testGetHttpClientResetsAuthorizationHeader()
 {
     $client = new HTTPClient19485876();
     $client->setHeaders('Authorization', 'realm="http://www.example.com",oauth_version="1.0"');
     OAuth\OAuth::setHttpClient($client);
     $resetClient = OAuth\OAuth::getHttpClient();
     $this->assertEquals(null, $resetClient->getHeader('Authorization'));
 }
Ejemplo n.º 3
0
 public function setup()
 {
     $this->stubConsumer = new Consumer39745;
     $this->stubHttpUtility = new HTTPUtility39745;
     OAuth\OAuth::setHttpClient(new HTTPClient39745);
 }