PHP Class GuzzleHttp\Test\Handler\StreamHandlerTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: nystudio107/instantanalytics

Public Methods

Method Description
testAddsContentLengthByDefault ( )
testAddsContentLengthEvenWhenEmpty ( )
testAddsErrorToResponse ( )
testAddsProxy ( )
testAddsProxyButHonorsNoProxy ( )
testAddsProxyByProtocol ( )
testAddsTimeout ( )
testAutomaticallyDecompressGzip ( )
testCanSetPasswordWhenSettingCert ( )
testDebugAttributeWritesStreamInfoToBuffer ( )
testDebugAttributeWritesToStream ( )
testDoesNotAddContentTypeByDefault ( )
testDoesNotDrainWhenHeadRequest ( )
testDoesNotForceGzipDecode ( )
testDoesSleep ( )
testDrainsResponseAndReadsOnlyContentLengthBytes ( )
testDrainsResponseIntoSaveToBody ( )
testDrainsResponseIntoSaveToBodyAtNonExistentPath ( )
testDrainsResponseIntoSaveToBodyAtPath ( )
testDrainsResponseIntoTempStream ( )
testEmitsProgressInformation ( )
testEmitsProgressInformationAndDebugInformation ( )
testEnsuresOnHeadersIsCallable ( )
testEnsuresThatStreamContextIsAnArray ( )
testEnsuresVerifyOptionIsValid ( )
testInvokesOnStatsOnError ( )
testInvokesOnStatsOnSuccess ( )
testPerformsShallowMergeOfCustomContextOptions ( )
testProtocolVersion ( )
testRejectsPromiseWhenOnHeadersFails ( )
testReportsOriginalSizeAndContentEncodingAfterDecoding ( )
testReturnsResponseForSuccessfulRequest ( )
testStreamAttributeKeepsStreamOpen ( )
testStreamIgnoresZeroTimeout ( )
testSuccessfullyCallsOnHeadersBeforeWritingToSink ( )
testSupports100Continue ( )
testUsesSystemDefaultBundle ( )
testVerifiesCertIfValidPath ( )
testVerifiesVerifyIsValidIfPath ( )
testVerifyCanBeDisabled ( )
testVerifyCanBeSetToPath ( )

Protected Methods

Method Description
getSendResult ( array $opts )

Private Methods

Method Description
queueRes ( )

Method Details

getSendResult() protected method

protected getSendResult ( array $opts )
$opts array

testAddsContentLengthByDefault() public method

testAddsContentLengthEvenWhenEmpty() public method

testAddsErrorToResponse() public method

testAddsProxy() public method

public testAddsProxy ( )

testAddsProxyButHonorsNoProxy() public method

testAddsProxyByProtocol() public method

testAddsTimeout() public method

public testAddsTimeout ( )

testAutomaticallyDecompressGzip() public method

testCanSetPasswordWhenSettingCert() public method

testDebugAttributeWritesStreamInfoToBuffer() public method

testDebugAttributeWritesToStream() public method

testDoesNotAddContentTypeByDefault() public method

testDoesNotDrainWhenHeadRequest() public method

testDoesNotForceGzipDecode() public method

testDoesSleep() public method

public testDoesSleep ( )

testDrainsResponseAndReadsOnlyContentLengthBytes() public method

testDrainsResponseIntoSaveToBody() public method

testDrainsResponseIntoSaveToBodyAtNonExistentPath() public method

testDrainsResponseIntoSaveToBodyAtPath() public method

testDrainsResponseIntoTempStream() public method

testEmitsProgressInformation() public method

testEmitsProgressInformationAndDebugInformation() public method

testEnsuresOnHeadersIsCallable() public method

testEnsuresThatStreamContextIsAnArray() public method

testEnsuresVerifyOptionIsValid() public method

testInvokesOnStatsOnError() public method

testInvokesOnStatsOnSuccess() public method

testPerformsShallowMergeOfCustomContextOptions() public method

testProtocolVersion() public method

public testProtocolVersion ( )

testRejectsPromiseWhenOnHeadersFails() public method

testReportsOriginalSizeAndContentEncodingAfterDecoding() public method

testReturnsResponseForSuccessfulRequest() public method

testStreamAttributeKeepsStreamOpen() public method

testStreamIgnoresZeroTimeout() public method

testSuccessfullyCallsOnHeadersBeforeWritingToSink() public method

testSupports100Continue() public method

testUsesSystemDefaultBundle() public method

testVerifiesCertIfValidPath() public method

testVerifiesVerifyIsValidIfPath() public method

testVerifyCanBeDisabled() public method

testVerifyCanBeSetToPath() public method