Open Journal Systems  3.3.0
Guzzle\Tests\Plugin\Oauth\OauthPluginTest Class Reference
Inheritance diagram for Guzzle\Tests\Plugin\Oauth\OauthPluginTest:
Guzzle\Tests\GuzzleTestCase

Public Member Functions

 testAcceptsConfigurationData ()
 
 testConvertsBooleansToStrings ()
 
 testCreatesStringToSignFromPostRequest ()
 
 testCreatesStringToSignFromPostRequestWithCustomContentType ()
 
 testCreatesStringToSignFromPostRequestWithNullValues ()
 
 testCreatesStringToSignIgnoringPostFields ()
 
 testDoesNotAddFalseyValuesToAuthorization ()
 
 testInvalidArgumentExceptionOnMethodError ()
 
 testMultiDimensionalArray ()
 
 testMultiDimensionalArrayWithNonDefaultQueryAggregator ()
 
 testOptionalOauthParametersAreNotAutomaticallyAdded ()
 
 testSignsOauthQueryStringRequest ()
 
 testSignsOauthRequests ()
 
 testSignsStrings ()
 
 testSubscribesToEvents ()
 
- Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 addMockedRequest (RequestInterface $request)
 
 assertContainsIns ($needle, $haystack, $message=null)
 
 compareHeaders ($filteredHeaders, $actualHeaders)
 
 getMockedRequests ()
 
 getMockResponse ($path)
 
 getWildcardObserver (HasDispatcherInterface $hasDispatcher)
 
 setMockResponse (Client $client, $paths)
 

Data Fields

const NONCE = 'e7aa11195ca58349bec8b5ebe351d3497eb9e603'
 
const TIMESTAMP = '1327274290'
 
- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 

Protected Member Functions

 getRequest ()
 
- Protected Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 

Protected Attributes

 $config
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

See also
Guzzle\Plugin\Oauth\OauthPlugin

Definition at line 13 of file OauthPluginTest.php.

Member Function Documentation

◆ getRequest()

◆ testAcceptsConfigurationData()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testAcceptsConfigurationData ( )

◆ testConvertsBooleansToStrings()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testConvertsBooleansToStrings ( )

@depends testCreatesStringToSignFromPostRequest

Definition at line 107 of file OauthPluginTest.php.

References Guzzle\Tests\Plugin\Oauth\OauthPluginTest\getRequest().

◆ testCreatesStringToSignFromPostRequest()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testCreatesStringToSignFromPostRequest ( )

◆ testCreatesStringToSignFromPostRequestWithCustomContentType()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testCreatesStringToSignFromPostRequestWithCustomContentType ( )

◆ testCreatesStringToSignFromPostRequestWithNullValues()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testCreatesStringToSignFromPostRequestWithNullValues ( )

◆ testCreatesStringToSignIgnoringPostFields()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testCreatesStringToSignIgnoringPostFields ( )

◆ testDoesNotAddFalseyValuesToAuthorization()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testDoesNotAddFalseyValuesToAuthorization ( )

◆ testInvalidArgumentExceptionOnMethodError()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testInvalidArgumentExceptionOnMethodError ( )

@expectedException \InvalidArgumentException

Definition at line 287 of file OauthPluginTest.php.

References Guzzle\Tests\Plugin\Oauth\OauthPluginTest\$config, and Guzzle\Tests\Plugin\Oauth\OauthPluginTest\getRequest().

◆ testMultiDimensionalArray()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testMultiDimensionalArray ( )

@depends testCreatesStringToSignFromPostRequest

Definition at line 145 of file OauthPluginTest.php.

References Guzzle\Tests\Plugin\Oauth\OauthPluginTest\getRequest().

◆ testMultiDimensionalArrayWithNonDefaultQueryAggregator()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testMultiDimensionalArrayWithNonDefaultQueryAggregator ( )

@depends testMultiDimensionalArray

Definition at line 156 of file OauthPluginTest.php.

References Guzzle\Tests\Plugin\Oauth\OauthPluginTest\getRequest().

◆ testOptionalOauthParametersAreNotAutomaticallyAdded()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testOptionalOauthParametersAreNotAutomaticallyAdded ( )

◆ testSignsOauthQueryStringRequest()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testSignsOauthQueryStringRequest ( )

◆ testSignsOauthRequests()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testSignsOauthRequests ( )

Test that the Oauth is signed correctly and that extra strings haven't been added to the authorization header.

Definition at line 193 of file OauthPluginTest.php.

References Guzzle\Tests\Plugin\Oauth\OauthPluginTest\getRequest().

◆ testSignsStrings()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testSignsStrings ( )

@depends testCreatesStringToSignFromPostRequest

Definition at line 171 of file OauthPluginTest.php.

References Guzzle\Tests\Plugin\Oauth\OauthPluginTest\getRequest().

◆ testSubscribesToEvents()

Guzzle\Tests\Plugin\Oauth\OauthPluginTest::testSubscribesToEvents ( )

Field Documentation

◆ $config

◆ NONCE

const Guzzle\Tests\Plugin\Oauth\OauthPluginTest::NONCE = 'e7aa11195ca58349bec8b5ebe351d3497eb9e603'

Definition at line 16 of file OauthPluginTest.php.

◆ TIMESTAMP

const Guzzle\Tests\Plugin\Oauth\OauthPluginTest::TIMESTAMP = '1327274290'

Definition at line 15 of file OauthPluginTest.php.


The documentation for this class was generated from the following file: