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

Public Member Functions

 testConstructorEnsuresCallbackIsCallable ()
 
 testIntegrationWithCachePlugin ()
 
 testUsesCallback ()
 
- 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

See also
Guzzle\Plugin\Cache\CallbackCanCacheStrategy

Definition at line 16 of file CallbackCanCacheStrategyTest.php.

Member Function Documentation

◆ testConstructorEnsuresCallbackIsCallable()

Guzzle\Tests\Plugin\Cache\CallbackCanCacheStrategyTest::testConstructorEnsuresCallbackIsCallable ( )

@expectedException \Guzzle\Common\Exception\InvalidArgumentException

Definition at line 21 of file CallbackCanCacheStrategyTest.php.

◆ testIntegrationWithCachePlugin()

Guzzle\Tests\Plugin\Cache\CallbackCanCacheStrategyTest::testIntegrationWithCachePlugin ( )

The following is a bit of an integration test to ensure that the CachePlugin honors a custom can cache strategy.

Definition at line 36 of file CallbackCanCacheStrategyTest.php.

References Guzzle\Http\Message\Response\fromMessage().

◆ testUsesCallback()

Guzzle\Tests\Plugin\Cache\CallbackCanCacheStrategyTest::testUsesCallback ( )

Definition at line 26 of file CallbackCanCacheStrategyTest.php.


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