PHP Class Elgg\Application\ServeFileHandlerTest

Inheritance: extends Elgg\TestCase
Datei anzeigen Open project: elgg/elgg

Protected Properties

Property Type Description
$file ElggFile
$handler ServeFileHandler

Public Methods

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

Method Details

createRequest() public method

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

setUp() public method

public setUp ( )

testInvalidDisposition() public method

testResponseCodesOnSessionRestartWithCookieEnabledForFileUrls() public method

testResponseHeadersMatchFileAttributesForAttachmentUrls() public method

testResponseHeadersMatchFileAttributesForInlineUrls() public method

testSend400WhenUrlIsMalformmatted() public method

testSend403OnUrlExpiration() public method

testSends304WithIfNoneMatchHeadersIncluded() public method

testSends304WithIfNoneMatchHeadersIncludedAndDeflationEnabled() public method

testSends403OnFileModificationTimeMismatch() public method

Property Details

$file protected_oe property

protected ElggFile $file
return ElggFile

$handler protected_oe property

protected ServeFileHandler,Elgg\Application $handler
return ServeFileHandler