Open Journal Systems
3.3.0
|
Public Member Functions | |
onRequestRetry (Event $event) | |
setUp () | |
testCreatesDefaultExponentialBackoffPlugin () | |
testDoesNothingWhenNotRetryingAndPollingRequest () | |
testDoesNotRetryUnlessStrategyReturnsNumber () | |
testDoesNotSeekOnRequestsWithNoBodyWhenRetrying () | |
testFailsOnTruncation () | |
testHasEventList () | |
testRetriesPooledRequestsUsingDelayAndPollingEvent () | |
testRetriesRequests () | |
testRetriesRequestsWhenInParallel () | |
testSeeksToBeginningOfRequestBodyWhenRetrying () | |
testUpdatesRequestForRetry () | |
![]() | |
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 | getServer () |
static | getServiceBuilder () |
static | setMockBasePath ($path) |
static | setServiceBuilder (ServiceBuilderInterface $builder) |
Protected Member Functions | |
getMockEvent (RequestInterface $request) | |
![]() | |
hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber) | |
Protected Attributes | |
$retried | |
Additional Inherited Members | |
![]() | |
$mockObserver | |
![]() | |
static | $server |
static | $serviceBuilder |
![]() | |
static | $mockBasePath |
@group server
Definition at line 25 of file BackoffPluginTest.php.
|
protected |
Definition at line 281 of file BackoffPluginTest.php.
References Guzzle\Http\Curl\CurlMultiInterface\POLLING_REQUEST.
Referenced by Guzzle\Tests\Plugin\Backoff\BackoffPluginTest\testDoesNotSeekOnRequestsWithNoBodyWhenRetrying(), and Guzzle\Tests\Plugin\Backoff\BackoffPluginTest\testSeeksToBeginningOfRequestBodyWhenRetrying().
|
static |
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
Implements Symfony\Component\EventDispatcher\EventSubscriberInterface.
Definition at line 34 of file BackoffPluginTest.php.
References Guzzle\Plugin\Backoff\BackoffPlugin\RETRY_EVENT.
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::onRequestRetry | ( | Event | $event | ) |
Definition at line 39 of file BackoffPluginTest.php.
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::setUp | ( | ) |
Definition at line 29 of file BackoffPluginTest.php.
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testCreatesDefaultExponentialBackoffPlugin | ( | ) |
Definition at line 49 of file BackoffPluginTest.php.
References Guzzle\Plugin\Backoff\BackoffPlugin\getExponentialBackoff().
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testDoesNothingWhenNotRetryingAndPollingRequest | ( | ) |
Definition at line 122 of file BackoffPluginTest.php.
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testDoesNotRetryUnlessStrategyReturnsNumber | ( | ) |
Definition at line 66 of file BackoffPluginTest.php.
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testDoesNotSeekOnRequestsWithNoBodyWhenRetrying | ( | ) |
Definition at line 272 of file BackoffPluginTest.php.
References Guzzle\Plugin\Backoff\BackoffPlugin\DELAY_PARAM, and Guzzle\Tests\Plugin\Backoff\BackoffPluginTest\getMockEvent().
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testFailsOnTruncation | ( | ) |
@expectedException \Guzzle\Http\Exception\ServerErrorResponseException
Definition at line 166 of file BackoffPluginTest.php.
References Guzzle\Tests\GuzzleTestCase\getServer().
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testHasEventList | ( | ) |
Definition at line 44 of file BackoffPluginTest.php.
References Guzzle\Plugin\Backoff\BackoffPlugin\getAllEvents().
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testRetriesPooledRequestsUsingDelayAndPollingEvent | ( | ) |
Definition at line 233 of file BackoffPluginTest.php.
References Guzzle\Tests\GuzzleTestCase\getServer().
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testRetriesRequests | ( | ) |
Definition at line 129 of file BackoffPluginTest.php.
References Guzzle\Tests\GuzzleTestCase\getServer(), and Guzzle\Plugin\Backoff\BackoffPlugin\RETRY_PARAM.
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testRetriesRequestsWhenInParallel | ( | ) |
Definition at line 187 of file BackoffPluginTest.php.
References Guzzle\Tests\GuzzleTestCase\getServer().
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testSeeksToBeginningOfRequestBodyWhenRetrying | ( | ) |
Definition at line 255 of file BackoffPluginTest.php.
References Guzzle\Plugin\Backoff\BackoffPlugin\DELAY_PARAM, and Guzzle\Tests\Plugin\Backoff\BackoffPluginTest\getMockEvent().
Guzzle\Tests\Plugin\Backoff\BackoffPluginTest::testUpdatesRequestForRetry | ( | ) |
Definition at line 85 of file BackoffPluginTest.php.
|
protected |
Definition at line 27 of file BackoffPluginTest.php.