Open Journal Systems  3.3.0
Guzzle\Tests\Http\CachingEntityBodyTest Class Reference
Inheritance diagram for Guzzle\Tests\Http\CachingEntityBodyTest:
Guzzle\Tests\GuzzleTestCase

Public Member Functions

 setUp ()
 
 testCannotSeekPastWhatHasBeenRead ()
 
 testCannotUseSeekEnd ()
 
 testCanSeekToReadBytes ()
 
 testChangingUnderlyingStreamUpdatesSizeAndStream ()
 
 testClosesBothStreams ()
 
 testDoesNotAllowRewindFunction ()
 
 testReadLinesFromBothStreams ()
 
 testRewindUsesSeek ()
 
 testSkipsOverwrittenBytes ()
 
 testUsesRemoteSizeIfPossible ()
 
 testWrapsContentEncoding ()
 
 testWrapsContentType ()
 
 testWrapsCustomData ()
 
 testWrapsMetadata ()
 
 testWritesToBufferStream ()
 
- Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 addMockedRequest (RequestInterface $request)
 
 assertContainsIns ($needle, $haystack, $message=null)
 
 compareHeaders ($filteredHeaders, $actualHeaders)
 
 getMockedRequests ()
 
 getMockResponse ($path)
 
 getWildcardObserver (HasDispatcherInterface $hasDispatcher)
 
 setMockResponse (Client $client, $paths)
 

Protected Attributes

 $body
 
 $decorated
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 
- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Protected Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

See also
Guzzle\Http\CachingEntityBody

Definition at line 11 of file CachingEntityBodyTest.php.

Member Function Documentation

◆ setUp()

Guzzle\Tests\Http\CachingEntityBodyTest::setUp ( )

Definition at line 25 of file CachingEntityBodyTest.php.

References Guzzle\Http\EntityBody\factory().

◆ testCannotSeekPastWhatHasBeenRead()

Guzzle\Tests\Http\CachingEntityBodyTest::testCannotSeekPastWhatHasBeenRead ( )

@expectedException \Guzzle\Common\Exception\RuntimeException @expectedExceptionMessage Cannot seek to byte 10

Definition at line 52 of file CachingEntityBodyTest.php.

◆ testCannotUseSeekEnd()

Guzzle\Tests\Http\CachingEntityBodyTest::testCannotUseSeekEnd ( )

@expectedException \Guzzle\Common\Exception\RuntimeException @expectedExceptionMessage supports only SEEK_SET and SEEK_CUR

Definition at line 61 of file CachingEntityBodyTest.php.

◆ testCanSeekToReadBytes()

Guzzle\Tests\Http\CachingEntityBodyTest::testCanSeekToReadBytes ( )

Definition at line 91 of file CachingEntityBodyTest.php.

◆ testChangingUnderlyingStreamUpdatesSizeAndStream()

Guzzle\Tests\Http\CachingEntityBodyTest::testChangingUnderlyingStreamUpdatesSizeAndStream ( )

Definition at line 66 of file CachingEntityBodyTest.php.

◆ testClosesBothStreams()

Guzzle\Tests\Http\CachingEntityBodyTest::testClosesBothStreams ( )

Definition at line 247 of file CachingEntityBodyTest.php.

References Guzzle\Http\EntityBody\factory().

◆ testDoesNotAllowRewindFunction()

Guzzle\Tests\Http\CachingEntityBodyTest::testDoesNotAllowRewindFunction ( )

@expectedException \Guzzle\Common\Exception\RuntimeException @expectedExceptionMessage does not support custom stream rewind

Definition at line 43 of file CachingEntityBodyTest.php.

◆ testReadLinesFromBothStreams()

Guzzle\Tests\Http\CachingEntityBodyTest::testReadLinesFromBothStreams ( )

Definition at line 112 of file CachingEntityBodyTest.php.

◆ testRewindUsesSeek()

Guzzle\Tests\Http\CachingEntityBodyTest::testRewindUsesSeek ( )

Definition at line 77 of file CachingEntityBodyTest.php.

References Guzzle\Http\EntityBody\factory().

◆ testSkipsOverwrittenBytes()

Guzzle\Tests\Http\CachingEntityBodyTest::testSkipsOverwrittenBytes ( )

◆ testUsesRemoteSizeIfPossible()

Guzzle\Tests\Http\CachingEntityBodyTest::testUsesRemoteSizeIfPossible ( )

◆ testWrapsContentEncoding()

Guzzle\Tests\Http\CachingEntityBodyTest::testWrapsContentEncoding ( )

Definition at line 180 of file CachingEntityBodyTest.php.

◆ testWrapsContentType()

Guzzle\Tests\Http\CachingEntityBodyTest::testWrapsContentType ( )

Definition at line 167 of file CachingEntityBodyTest.php.

◆ testWrapsCustomData()

Guzzle\Tests\Http\CachingEntityBodyTest::testWrapsCustomData ( )

Definition at line 225 of file CachingEntityBodyTest.php.

◆ testWrapsMetadata()

Guzzle\Tests\Http\CachingEntityBodyTest::testWrapsMetadata ( )

Definition at line 193 of file CachingEntityBodyTest.php.

◆ testWritesToBufferStream()

Guzzle\Tests\Http\CachingEntityBodyTest::testWritesToBufferStream ( )

Definition at line 104 of file CachingEntityBodyTest.php.

Field Documentation

◆ $body

◆ $decorated

EntityBody Guzzle\Tests\Http\CachingEntityBodyTest::$decorated
protected

The documentation for this class was generated from the following file: