SapiEmitterTest
extends UtilTestAbstract
in package
FinalYes
Table of Contents
Constants
- CACERT = __DIR__ . '/cacert.pem'
Properties
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
CACERT
protected
mixed
CACERT
= __DIR__ . '/cacert.pem'
Properties
$emitter
protected
ResponseEmitterInterface
$emitter
Methods
contentRangeProvider()
public
static contentRangeProvider() : Generator
Return values
GeneratortestEmit()
public
testEmit() : void
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'
testEmitPartialContent()
public
testEmitPartialContent() : void
testInvalidContentRangeRemovesHeader()
public
testInvalidContentRangeRemovesHeader() : void
testPreviousOutputException()
public
testPreviousOutputException() : void
testSetHeaders()
public
testSetHeaders() : 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
ResponseEmitterInterfacesetUp()
protected
setUp() : void