Open Journal Systems  3.3.0
Guzzle\Tests\Plugin\Cache\CachePluginTest Class Reference
Inheritance diagram for Guzzle\Tests\Plugin\Cache\CachePluginTest:
Guzzle\Tests\GuzzleTestCase

Public Member Functions

 satisfiableOnErrorProvider ()
 
 satisfiableProvider ()
 
 satisfyFailedProvider ()
 
 satisfyProvider ()
 
 testAddsCallbackCollaborators ()
 
 testAddsDefaultCollaborators ()
 
 testAddsDefaultStorage ()
 
 testAutoPurgesRequests ()
 
 testCachesResponsesWhenCacheable ()
 
 testCanPassCacheAsOnlyArgumentToConstructor ()
 
 testChecksIfResponseCanSatisfyFailedRequest ($request, $response, $can)
 
 testChecksIfResponseCanSatisfyRequest ($request, $response, $can, $revalidates)
 
 testDoesNothingWhenRequestIsNotCacheable ()
 
 testDoesNotInjectUnsatisfiableResponsesOnError ($requestCanCache, $requestHeaders, $cacheResponse)
 
 testDoesNotInjectUnsatisfiableResponsesOnException ($requestCanCache, $requestHeaders, $responseParts)
 
 testInjectsSatisfiableResponses ($response)
 
 testInjectsSatisfiableResponsesOnError ($cacheResponse)
 
 testInjectsSatisfiableResponsesOnException ($cacheResponse)
 
 testPurgesRequests ()
 
 testUsesCreatedCacheStorage ()
 
 testUsesProvidedOptions ()
 
 unsatisfiableOnErrorProvider ()
 
- 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 
- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Protected Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

@group server

See also
Guzzle\Plugin\Cache\CachePlugin
Guzzle\Plugin\Cache\DefaultRevalidation

Definition at line 21 of file CachePluginTest.php.

Member Function Documentation

◆ satisfiableOnErrorProvider()

Guzzle\Tests\Plugin\Cache\CachePluginTest::satisfiableOnErrorProvider ( )

Definition at line 233 of file CachePluginTest.php.

◆ satisfiableProvider()

Guzzle\Tests\Plugin\Cache\CachePluginTest::satisfiableProvider ( )

Definition at line 185 of file CachePluginTest.php.

◆ satisfyFailedProvider()

Guzzle\Tests\Plugin\Cache\CachePluginTest::satisfyFailedProvider ( )

Definition at line 134 of file CachePluginTest.php.

◆ satisfyProvider()

Guzzle\Tests\Plugin\Cache\CachePluginTest::satisfyProvider ( )

Definition at line 83 of file CachePluginTest.php.

◆ testAddsCallbackCollaborators()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testAddsCallbackCollaborators ( )

◆ testAddsDefaultCollaborators()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testAddsDefaultCollaborators ( )

◆ testAddsDefaultStorage()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testAddsDefaultStorage ( )

Definition at line 23 of file CachePluginTest.php.

◆ testAutoPurgesRequests()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testAutoPurgesRequests ( )

Definition at line 428 of file CachePluginTest.php.

◆ testCachesResponsesWhenCacheable()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testCachesResponsesWhenCacheable ( )

Definition at line 399 of file CachePluginTest.php.

◆ testCanPassCacheAsOnlyArgumentToConstructor()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testCanPassCacheAsOnlyArgumentToConstructor ( )

Definition at line 56 of file CachePluginTest.php.

◆ testChecksIfResponseCanSatisfyFailedRequest()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testChecksIfResponseCanSatisfyFailedRequest (   $request,
  $response,
  $can 
)

@dataProvider satisfyFailedProvider

Definition at line 161 of file CachePluginTest.php.

◆ testChecksIfResponseCanSatisfyRequest()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testChecksIfResponseCanSatisfyRequest (   $request,
  $response,
  $can,
  $revalidates 
)

@dataProvider satisfyProvider

Definition at line 109 of file CachePluginTest.php.

◆ testDoesNothingWhenRequestIsNotCacheable()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testDoesNothingWhenRequestIsNotCacheable ( )

Definition at line 168 of file CachePluginTest.php.

◆ testDoesNotInjectUnsatisfiableResponsesOnError()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testDoesNotInjectUnsatisfiableResponsesOnError (   $requestCanCache,
  $requestHeaders,
  $cacheResponse 
)

@dataProvider unsatisfiableOnErrorProvider

Definition at line 353 of file CachePluginTest.php.

◆ testDoesNotInjectUnsatisfiableResponsesOnException()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testDoesNotInjectUnsatisfiableResponsesOnException (   $requestCanCache,
  $requestHeaders,
  $responseParts 
)

@dataProvider unsatisfiableOnErrorProvider

Definition at line 377 of file CachePluginTest.php.

◆ testInjectsSatisfiableResponses()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testInjectsSatisfiableResponses (   $response)

@dataProvider satisfiableProvider

Definition at line 200 of file CachePluginTest.php.

References Guzzle\Common\Version\VERSION.

◆ testInjectsSatisfiableResponsesOnError()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testInjectsSatisfiableResponsesOnError (   $cacheResponse)

@dataProvider satisfiableOnErrorProvider

Definition at line 249 of file CachePluginTest.php.

References Guzzle\Common\Version\VERSION.

◆ testInjectsSatisfiableResponsesOnException()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testInjectsSatisfiableResponsesOnException (   $cacheResponse)

@dataProvider satisfiableOnErrorProvider

Definition at line 284 of file CachePluginTest.php.

References Guzzle\Common\Version\VERSION.

◆ testPurgesRequests()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testPurgesRequests ( )

Definition at line 417 of file CachePluginTest.php.

◆ testUsesCreatedCacheStorage()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testUsesCreatedCacheStorage ( )

Definition at line 62 of file CachePluginTest.php.

◆ testUsesProvidedOptions()

Guzzle\Tests\Plugin\Cache\CachePluginTest::testUsesProvidedOptions ( )

Definition at line 70 of file CachePluginTest.php.

◆ unsatisfiableOnErrorProvider()

Guzzle\Tests\Plugin\Cache\CachePluginTest::unsatisfiableOnErrorProvider ( )

Definition at line 324 of file CachePluginTest.php.


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