PHP 클래스 Neos\Flow\Tests\Unit\Http\CookieTest

상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 메소드들

메소드 설명
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

메소드 상세

constructorAcceptsValidCookieNames() 공개 메소드

public constructorAcceptsValidCookieNames ( string $cookieName )
$cookieName string

constructorThrowsExceptionOnInvalidCookieNames() 공개 메소드

public constructorThrowsExceptionOnInvalidCookieNames ( string $cookieName )
$cookieName string

constructorThrowsExceptionOnInvalidDomain() 공개 메소드

constructorThrowsExceptionOnInvalidExpiresParameter() 공개 메소드

constructorThrowsExceptionOnInvalidMaximumAgeParameter() 공개 메소드

constructorThrowsExceptionOnInvalidPath() 공개 메소드

cookiesAndTheirStringRepresentations() 공개 메소드

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() 공개 메소드

public getPathReturnsPath ( )

getValueReturnsTheSetValue() 공개 메소드

invalidCookieNames() 공개 메소드

public invalidCookieNames ( ) : array
리턴 array

invalidDomains() 공개 메소드

public invalidDomains ( ) : array
리턴 array

invalidExpiresParameters() 공개 메소드

public invalidExpiresParameters ( ) : array
리턴 array

invalidPaths() 공개 메소드

public invalidPaths ( ) : array
리턴 array

isExpiredTellsIfTheCookieIsExpired() 공개 메소드

isHttpOnlyReturnsHttpOnlyFlag() 공개 메소드

isSecureReturnsSecureFlag() 공개 메소드

stringRepresentationOfCookieIsValidSetCookieFieldValue() 공개 메소드

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
리턴 void

validCookieNames() 공개 메소드

public validCookieNames ( ) : array
리턴 array