Documentation

SapiEmitterTest extends UtilTestAbstract
in package

FinalYes

Table of Contents

Constants

CACERT  = __DIR__ . '/cacert.pem'

Properties

$emitter  : ResponseEmitterInterface

Methods

contentRangeProvider()  : Generator
testEmit()  : void
testEmitContentRange()  : void
testEmitPartialContent()  : void
testInvalidContentRangeRemovesHeader()  : void
testPreviousOutputException()  : void
testSetHeaders()  : void
initEmitter()  : ResponseEmitterInterface
Returns an instance of the SapiEmitter that intercepts headers and output so that they can be examined
setUp()  : void

Constants

Properties

Methods

contentRangeProvider()

public static contentRangeProvider() : Generator
Return values
Generator

testEmitContentRange()

public testEmitContentRange(int $start, int $end, int $bufferSize, string $body, int $expectedLength, string $expected) : void
Parameters
$start : int
$end : int
$bufferSize : int
$body : string
$expectedLength : int
$expected : string
Attributes
#[DataProvider]
'contentRangeProvider'

testInvalidContentRangeRemovesHeader()

public testInvalidContentRangeRemovesHeader() : void

testPreviousOutputException()

public testPreviousOutputException() : void

initEmitter()

Returns an instance of the SapiEmitter that intercepts headers and output so that they can be examined

protected initEmitter(ResponseInterface $response[, int $bufferSize = 8192 ]) : ResponseEmitterInterface
Parameters
$response : ResponseInterface
$bufferSize : int = 8192
Return values
ResponseEmitterInterface

        
On this page

Search results