Open Journal Systems  3.3.0
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest Class Reference
Inheritance diagram for Guzzle\Tests\Plugin\Backoff\BackoffPluginTest:
Guzzle\Tests\GuzzleTestCase Symfony\Component\EventDispatcher\EventSubscriberInterface

Public Member Functions

 onRequestRetry (Event $event)
 
 setUp ()
 
 testCreatesDefaultExponentialBackoffPlugin ()
 
 testDoesNothingWhenNotRetryingAndPollingRequest ()
 
 testDoesNotRetryUnlessStrategyReturnsNumber ()
 
 testDoesNotSeekOnRequestsWithNoBodyWhenRetrying ()
 
 testFailsOnTruncation ()
 
 testHasEventList ()
 
 testRetriesPooledRequestsUsingDelayAndPollingEvent ()
 
 testRetriesRequests ()
 
 testRetriesRequestsWhenInParallel ()
 
 testSeeksToBeginningOfRequestBodyWhenRetrying ()
 
 testUpdatesRequestForRetry ()
 
- 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)
 

Static Public Member Functions

static getSubscribedEvents ()
 
- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 

Protected Member Functions

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

Protected Attributes

 $retried
 

Additional Inherited Members

- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

@group server

See also
Guzzle\Plugin\Backoff\BackoffPlugin

Definition at line 25 of file BackoffPluginTest.php.

Member Function Documentation

◆ getMockEvent()

◆ getSubscribedEvents()

static Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::getSubscribedEvents ( )
static

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be:

  • The method name to call (priority defaults to 0)
  • An array composed of the method name to call and the priority
  • An array of arrays composed of the method names to call and respective priorities, or 0 if unset

For instance:

  • array('eventName' => 'methodName')
  • array('eventName' => array('methodName', $priority))
  • array('eventName' => array(array('methodName1', $priority), array('methodName2')))
Returns
array The event names to listen to

Implements Symfony\Component\EventDispatcher\EventSubscriberInterface.

Definition at line 34 of file BackoffPluginTest.php.

References Guzzle\Plugin\Backoff\BackoffPlugin\RETRY_EVENT.

◆ onRequestRetry()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::onRequestRetry ( Event  $event)

Definition at line 39 of file BackoffPluginTest.php.

◆ setUp()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::setUp ( )

Definition at line 29 of file BackoffPluginTest.php.

◆ testCreatesDefaultExponentialBackoffPlugin()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testCreatesDefaultExponentialBackoffPlugin ( )

◆ testDoesNothingWhenNotRetryingAndPollingRequest()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testDoesNothingWhenNotRetryingAndPollingRequest ( )

Definition at line 122 of file BackoffPluginTest.php.

◆ testDoesNotRetryUnlessStrategyReturnsNumber()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testDoesNotRetryUnlessStrategyReturnsNumber ( )

Definition at line 66 of file BackoffPluginTest.php.

◆ testDoesNotSeekOnRequestsWithNoBodyWhenRetrying()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testDoesNotSeekOnRequestsWithNoBodyWhenRetrying ( )

◆ testFailsOnTruncation()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testFailsOnTruncation ( )

@expectedException \Guzzle\Http\Exception\ServerErrorResponseException

Definition at line 166 of file BackoffPluginTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testHasEventList()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testHasEventList ( )

◆ testRetriesPooledRequestsUsingDelayAndPollingEvent()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testRetriesPooledRequestsUsingDelayAndPollingEvent ( )
See also
Guzzle\Plugin\Backoff\BackoffPlugin
Guzzle\Http\Curl\CurlMulti

Definition at line 233 of file BackoffPluginTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testRetriesRequests()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testRetriesRequests ( )

◆ testRetriesRequestsWhenInParallel()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testRetriesRequestsWhenInParallel ( )

Definition at line 187 of file BackoffPluginTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testSeeksToBeginningOfRequestBodyWhenRetrying()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testSeeksToBeginningOfRequestBodyWhenRetrying ( )

◆ testUpdatesRequestForRetry()

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testUpdatesRequestForRetry ( )

Definition at line 85 of file BackoffPluginTest.php.

Field Documentation

◆ $retried

Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::$retried
protected

Definition at line 27 of file BackoffPluginTest.php.


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