PHP Class Neos\Flow\Tests\Unit\Http\HeadersTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Public Methods

Method Description
cacheControlHeaderPassedToSetIsParsedCorrectly ( $rawFieldValue, $renderedFieldValue )
cacheControlHeaders ( ) Data provider with valid cache control headers
cacheDirectivesAndExampleValues ( ) Data provider for the test below
cookiesCanBeRemoved ( )
cookiesCanBeSetThroughTheCookieHeader ( )
cookiesWithEmptyNameAreIgnored ( ) See FLOW-12
createFromServerCreatesFieldsFromSpecifiedServerSuperglobal ( )
createFromServerSimulatesAuthorizationHeaderIfPHPAuthVariablesArePresent ( )
getAllAddsCacheControlHeaderIfCacheDirectivesHaveBeenSet ( )
getAllReturnsAllHeaderFields ( )
getCacheControlDirectiveReturnsTheSpecifiedDirectiveValueIfPresent ( $name, $value )
getCookiesReturnsAllCookies ( )
getReturnsNullForNonExistingHeader ( )
headerFieldsCanBeReplaced ( )
headerFieldsCanBeSpecifiedToTheConstructor ( )
headerFieldsCanExistMultipleTimes ( )
maxAgeAndSMaxAgeIsRenderedCorrectly ( ) (RFC 2616 / 14.9.3)
mustRevalidateAndProxyRevalidateAreRenderedCorrectly ( ) (RFC 2616 / 14.9.4)
noStoreCacheDirectiveCanBeSetAndRemoved ( ) (RFC 2616 / 14.9.2)
noTransformCacheDirectiveIsRenderedCorrectly ( ) (RFC 2616 / 14.9.5)
removeCacheControlDirectiveRemovesVisibilityCorrectly ( ) (RFC 2616 / 14.9.1)
removeRemovesTheSpecifiedHeader ( )
setCacheControlDirectiveSetsVisibilityCorrectly ( ) (RFC 2616 / 14.9.1)
setExceptsHttpsHeaders ( )
setGetAndGetAllConvertDatesFromDateObjectsToStringAndViceVersa ( ) (RFC 2616 3.3.1)
setOverridesAnyPreviouslyDefinedCacheControlDirectives ( )
singleCookieCanBeSetAndRetrieved ( )

Method Details

cacheControlHeaderPassedToSetIsParsedCorrectly() public method

public cacheControlHeaderPassedToSetIsParsedCorrectly ( $rawFieldValue, $renderedFieldValue )

cacheControlHeaders() public method

Data provider with valid cache control headers
public cacheControlHeaders ( )

cacheDirectivesAndExampleValues() public method

Data provider for the test below

cookiesCanBeRemoved() public method

public cookiesCanBeRemoved ( )

cookiesCanBeSetThroughTheCookieHeader() public method

cookiesWithEmptyNameAreIgnored() public method

See FLOW-12

createFromServerCreatesFieldsFromSpecifiedServerSuperglobal() public method

createFromServerSimulatesAuthorizationHeaderIfPHPAuthVariablesArePresent() public method

getAllAddsCacheControlHeaderIfCacheDirectivesHaveBeenSet() public method

getAllReturnsAllHeaderFields() public method

getCacheControlDirectiveReturnsTheSpecifiedDirectiveValueIfPresent() public method

getCookiesReturnsAllCookies() public method

getReturnsNullForNonExistingHeader() public method

headerFieldsCanBeReplaced() public method

headerFieldsCanBeSpecifiedToTheConstructor() public method

headerFieldsCanExistMultipleTimes() public method

maxAgeAndSMaxAgeIsRenderedCorrectly() public method

(RFC 2616 / 14.9.3)

mustRevalidateAndProxyRevalidateAreRenderedCorrectly() public method

(RFC 2616 / 14.9.4)

noStoreCacheDirectiveCanBeSetAndRemoved() public method

(RFC 2616 / 14.9.2)

noTransformCacheDirectiveIsRenderedCorrectly() public method

(RFC 2616 / 14.9.5)

removeCacheControlDirectiveRemovesVisibilityCorrectly() public method

(RFC 2616 / 14.9.1)

removeRemovesTheSpecifiedHeader() public method

setCacheControlDirectiveSetsVisibilityCorrectly() public method

(RFC 2616 / 14.9.1)

setExceptsHttpsHeaders() public method

setGetAndGetAllConvertDatesFromDateObjectsToStringAndViceVersa() public method

This checks if set() and get() convert DateTime to an RFC 2822 compliant date / time string and vice versa. Note that the date / time passed to set() is normalized to GMT internally, so that get() will return the same point in time, but not in the same timezone, if it was not GMT previously.

setOverridesAnyPreviouslyDefinedCacheControlDirectives() public method

singleCookieCanBeSetAndRetrieved() public method