ResponseCacheStrategyTest
extends TestCase
in package
Table of Contents
- cacheControlMergingProvider() : mixed
- testCacheControlMerging() : mixed
- testEmbeddingPrivateResponseMakesMainResponsePrivate() : mixed
- testEmbeddingPublicResponseDoesNotMakeMainResponsePublic() : mixed
- testMasterResponseIsNotCacheableWhenEmbeddedResponseIsNotCacheable() : mixed
- testMasterResponseNotCacheableWhenEmbeddedResponseRequiresValidation() : mixed
- testMasterResponseWithExpirationIsUnchangedWhenThereIsNoEmbeddedResponse() : mixed
- testMasterResponseWithValidationIsUnchangedWhenThereIsNoEmbeddedResponse() : mixed
- testMinimumSharedMaxAgeWins() : mixed
- testResponseIsExiprableWhenEmbeddedResponseCombinesExpiryAndValidation() : mixed
- testResponseIsExpirableButNotValidateableWhenMasterResponseCombinesExpirationAndValidation() : mixed
- testSharedMaxAgeNotSetIfNotSetInAnyEmbeddedRequest() : mixed
- testSharedMaxAgeNotSetIfNotSetInMasterRequest() : mixed
- testValidationOnMasterResponseIsNotPossibleWhenItContainsEmbeddedResponses() : mixed
Methods
cacheControlMergingProvider()
public
cacheControlMergingProvider() : mixed
Return values
mixed —testCacheControlMerging()
public
testCacheControlMerging(array<string|int, mixed> $expects, array<string|int, mixed> $master, array<string|int, mixed> $surrogates) : mixed
Parameters
- $expects : array<string|int, mixed>
- $master : array<string|int, mixed>
- $surrogates : array<string|int, mixed>
Tags
Return values
mixed —testEmbeddingPrivateResponseMakesMainResponsePrivate()
public
testEmbeddingPrivateResponseMakesMainResponsePrivate() : mixed
Return values
mixed —testEmbeddingPublicResponseDoesNotMakeMainResponsePublic()
public
testEmbeddingPublicResponseDoesNotMakeMainResponsePublic() : mixed
Return values
mixed —testMasterResponseIsNotCacheableWhenEmbeddedResponseIsNotCacheable()
public
testMasterResponseIsNotCacheableWhenEmbeddedResponseIsNotCacheable() : mixed
Return values
mixed —testMasterResponseNotCacheableWhenEmbeddedResponseRequiresValidation()
public
testMasterResponseNotCacheableWhenEmbeddedResponseRequiresValidation() : mixed
Return values
mixed —testMasterResponseWithExpirationIsUnchangedWhenThereIsNoEmbeddedResponse()
public
testMasterResponseWithExpirationIsUnchangedWhenThereIsNoEmbeddedResponse() : mixed
Return values
mixed —testMasterResponseWithValidationIsUnchangedWhenThereIsNoEmbeddedResponse()
public
testMasterResponseWithValidationIsUnchangedWhenThereIsNoEmbeddedResponse() : mixed
Return values
mixed —testMinimumSharedMaxAgeWins()
public
testMinimumSharedMaxAgeWins() : mixed
Return values
mixed —testResponseIsExiprableWhenEmbeddedResponseCombinesExpiryAndValidation()
public
testResponseIsExiprableWhenEmbeddedResponseCombinesExpiryAndValidation() : mixed
Return values
mixed —testResponseIsExpirableButNotValidateableWhenMasterResponseCombinesExpirationAndValidation()
public
testResponseIsExpirableButNotValidateableWhenMasterResponseCombinesExpirationAndValidation() : mixed
Return values
mixed —testSharedMaxAgeNotSetIfNotSetInAnyEmbeddedRequest()
public
testSharedMaxAgeNotSetIfNotSetInAnyEmbeddedRequest() : mixed
Return values
mixed —testSharedMaxAgeNotSetIfNotSetInMasterRequest()
public
testSharedMaxAgeNotSetIfNotSetInMasterRequest() : mixed
Return values
mixed —testValidationOnMasterResponseIsNotPossibleWhenItContainsEmbeddedResponses()
public
testValidationOnMasterResponseIsNotPossibleWhenItContainsEmbeddedResponses() : mixed