PHP Class Elgg\Application\ServeFileHandlerTest

Inheritance: extends Elgg\TestCase
Afficher le fichier Open project: elgg/elgg

Protected Properties

Свойство Type Description
$file ElggFile
$handler ServeFileHandler

Méthodes publiques

Méthode Description
createRequest ( File $file )
setUp ( )
testInvalidDisposition ( )
testResponseCodesOnSessionRestartWithCookieEnabledForFileUrls ( )
testResponseHeadersMatchFileAttributesForAttachmentUrls ( )
testResponseHeadersMatchFileAttributesForInlineUrls ( )
testSend400WhenUrlIsMalformmatted ( )
testSend403OnUrlExpiration ( )
testSends304WithIfNoneMatchHeadersIncluded ( )
testSends304WithIfNoneMatchHeadersIncludedAndDeflationEnabled ( )
testSends403OnFileModificationTimeMismatch ( )

Method Details

createRequest() public méthode

public createRequest ( File $file )
$file Elgg\FileService\File

setUp() public méthode

public setUp ( )

testInvalidDisposition() public méthode

testResponseCodesOnSessionRestartWithCookieEnabledForFileUrls() public méthode

testResponseHeadersMatchFileAttributesForAttachmentUrls() public méthode

testResponseHeadersMatchFileAttributesForInlineUrls() public méthode

testSend400WhenUrlIsMalformmatted() public méthode

testSend403OnUrlExpiration() public méthode

testSends304WithIfNoneMatchHeadersIncluded() public méthode

testSends304WithIfNoneMatchHeadersIncludedAndDeflationEnabled() public méthode

testSends403OnFileModificationTimeMismatch() public méthode

Property Details

$file protected_oe property

protected ElggFile $file
Résultat ElggFile

$handler protected_oe property

protected ServeFileHandler,Elgg\Application $handler
Résultat ServeFileHandler