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

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/flow-development-collection

Méthodes publiques

Méthode Description
constructorAcceptsValidCookieNames ( string $cookieName )
constructorThrowsExceptionOnInvalidCookieNames ( string $cookieName )
constructorThrowsExceptionOnInvalidDomain ( mixed $domain )
constructorThrowsExceptionOnInvalidExpiresParameter ( mixed $parameter )
constructorThrowsExceptionOnInvalidMaximumAgeParameter ( )
constructorThrowsExceptionOnInvalidPath ( mixed $path )
cookiesAndTheirStringRepresentations ( ) : array Data provider with cookies and their expected string representation.
createCookieFromRawAssumesDefaultPathIfNoLeadingSlashIsPresent ( )
createCookieFromRawAssumesExpiryDateZeroIfItCannotBeParsed ( )
createCookieFromRawDoesntCareAboutUnkownAttributeValues ( )
createCookieFromRawIgnoresDomainAttributeIfValueIsEmpty ( )
createCookieFromRawIgnoresMaxAgeIfInvalid ( )
createCookieFromRawLowerCasesDomainName ( )
createCookieFromRawParsesExpiryDateCorrectly ( )
createCookieFromRawParsesMaxAgeCorrectly ( )
createCookieFromRawRemovesLeadingDotForDomainIfPresent ( )
createCookieFromRawReturnsNullIfBasicNameOrValueAreNotSatisfied ( )
createCookieFromRawSetsHttpOnlyIfPresent ( )
createCookieFromRawSetsSecureIfPresent ( )
createCookieFromRawUsesPathCorrectly ( )
getDomainReturnsDomain ( )
getExpiresAlwaysReturnsAUnixTimestamp ( )
getMaximumAgeReturnsTheMaximumAge ( )
getPathReturnsPath ( )
getValueReturnsTheSetValue ( )
invalidCookieNames ( ) : array
invalidDomains ( ) : array
invalidExpiresParameters ( ) : array
invalidPaths ( ) : array
isExpiredTellsIfTheCookieIsExpired ( )
isHttpOnlyReturnsHttpOnlyFlag ( )
isSecureReturnsSecureFlag ( )
stringRepresentationOfCookieIsValidSetCookieFieldValue ( Cookie $cookie, string $expectedString ) : void Checks if the Cookie cast to a string equals the expected string which can be used as a value for the Set-Cookie header.
validCookieNames ( ) : array

Method Details

constructorAcceptsValidCookieNames() public méthode

public constructorAcceptsValidCookieNames ( string $cookieName )
$cookieName string

constructorThrowsExceptionOnInvalidCookieNames() public méthode

public constructorThrowsExceptionOnInvalidCookieNames ( string $cookieName )
$cookieName string

constructorThrowsExceptionOnInvalidDomain() public méthode

constructorThrowsExceptionOnInvalidExpiresParameter() public méthode

constructorThrowsExceptionOnInvalidMaximumAgeParameter() public méthode

constructorThrowsExceptionOnInvalidPath() public méthode

cookiesAndTheirStringRepresentations() public méthode

Data provider with cookies and their expected string representation.

createCookieFromRawAssumesDefaultPathIfNoLeadingSlashIsPresent() public méthode

createCookieFromRawAssumesExpiryDateZeroIfItCannotBeParsed() public méthode

createCookieFromRawDoesntCareAboutUnkownAttributeValues() public méthode

createCookieFromRawIgnoresDomainAttributeIfValueIsEmpty() public méthode

createCookieFromRawIgnoresMaxAgeIfInvalid() public méthode

createCookieFromRawLowerCasesDomainName() public méthode

createCookieFromRawParsesExpiryDateCorrectly() public méthode

createCookieFromRawParsesMaxAgeCorrectly() public méthode

createCookieFromRawRemovesLeadingDotForDomainIfPresent() public méthode

createCookieFromRawReturnsNullIfBasicNameOrValueAreNotSatisfied() public méthode

createCookieFromRawSetsHttpOnlyIfPresent() public méthode

createCookieFromRawSetsSecureIfPresent() public méthode

createCookieFromRawUsesPathCorrectly() public méthode

getDomainReturnsDomain() public méthode

getExpiresAlwaysReturnsAUnixTimestamp() public méthode

getMaximumAgeReturnsTheMaximumAge() public méthode

getPathReturnsPath() public méthode

public getPathReturnsPath ( )

getValueReturnsTheSetValue() public méthode

invalidCookieNames() public méthode

public invalidCookieNames ( ) : array
Résultat array

invalidDomains() public méthode

public invalidDomains ( ) : array
Résultat array

invalidExpiresParameters() public méthode

public invalidExpiresParameters ( ) : array
Résultat array

invalidPaths() public méthode

public invalidPaths ( ) : array
Résultat array

isExpiredTellsIfTheCookieIsExpired() public méthode

isHttpOnlyReturnsHttpOnlyFlag() public méthode

isSecureReturnsSecureFlag() public méthode

stringRepresentationOfCookieIsValidSetCookieFieldValue() public méthode

Checks if the Cookie cast to a string equals the expected string which can be used as a value for the Set-Cookie header.
public stringRepresentationOfCookieIsValidSetCookieFieldValue ( Cookie $cookie, string $expectedString ) : void
$cookie Neos\Flow\Http\Cookie
$expectedString string
Résultat void

validCookieNames() public méthode

public validCookieNames ( ) : array
Résultat array