PHP Class React\Tests\Stream\BufferTest

Inheritance: extends React\Tests\Stream\TestCase
Afficher le fichier Open project: reactphp/stream

Méthodes publiques

Méthode Description
testClose ( )
testCloseDuringDrainWillNotEmitFullDrain ( )
testConstructor ( )
testConstructorThrowsIfNotAValidStreamResource ( )
testDrain ( )
testDrainAndFullDrainAfterWrite ( )
testEmptyWriteDoesNotAddToLoop ( )
testEnd ( )
testEndWithData ( )
testErrorWhenStreamResourceIsInvalid ( )
testWrite ( )
testWriteDetectsWhenOtherSideIsClosed ( )
testWriteEmitsErrorWhenResourceIsNotWritable ( )
testWriteInDrain ( )
testWriteReturnsFalseWhenBufferIsExactlyFull ( )
testWriteReturnsFalseWhenBufferIsFull ( )
testWriteWithDataDoesAddResourceToLoop ( )
testWritingToClosedBufferShouldNotWriteToStream ( )
testWritingToClosedStream ( )

Private Methods

Méthode Description
createLoopMock ( )
createWriteableLoopMock ( )

Method Details

testClose() public méthode

public testClose ( )

testCloseDuringDrainWillNotEmitFullDrain() public méthode

testConstructor() public méthode

public testConstructor ( )

testConstructorThrowsIfNotAValidStreamResource() public méthode

testDrain() public méthode

public testDrain ( )

testDrainAndFullDrainAfterWrite() public méthode

testEmptyWriteDoesNotAddToLoop() public méthode

testEnd() public méthode

public testEnd ( )

testEndWithData() public méthode

public testEndWithData ( )

testErrorWhenStreamResourceIsInvalid() public méthode

testWrite() public méthode

public testWrite ( )

testWriteDetectsWhenOtherSideIsClosed() public méthode

testWriteEmitsErrorWhenResourceIsNotWritable() public méthode

testWriteInDrain() public méthode

public testWriteInDrain ( )

testWriteReturnsFalseWhenBufferIsExactlyFull() public méthode

testWriteReturnsFalseWhenBufferIsFull() public méthode

testWriteWithDataDoesAddResourceToLoop() public méthode

testWritingToClosedBufferShouldNotWriteToStream() public méthode

testWritingToClosedStream() public méthode