PHP Class PhlyTest\Http\StreamTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: phly/http

Public Properties

Property Type Description
$tmpnam

Public Methods

Method Description
invalidResources ( )
setUp ( )
tearDown ( )
testAttachWithNonStringNonResourceRaisesException ( $resource )
testAttachWithResourceAttachesResource ( )
testAttachWithStringRepresentingResourceCreatesAndAttachesResource ( )
testCanInstantiateWithStreamIdentifier ( )
testCanInstantiteWithStreamResource ( )
testCloseClosesResource ( )
testCloseDoesNothingAfterDetach ( )
testCloseUnsetsResource ( )
testDetachReturnsResource ( )
testEofReportsFalseWhenNotAtEndOfStream ( )
testEofReportsTrueWhenAtEndOfStream ( )
testEofReportsTrueWhenStreamIsDetached ( )
testGetContentsReturnsEmptyStringIfStreamIsNotReadable ( )
testGetContentsShouldGetFullStreamContents ( )
testGetContentsShouldReturnStreamContentsFromCurrentPointer ( )
testGetMetadataReturnsAllMetadataWhenNoKeyPresent ( )
testGetMetadataReturnsDataForSpecifiedKey ( )
testGetMetadataReturnsNullIfNoDataExistsForKey ( )
testGetSizeReturnsStreamSize ( )
testIsReadableReturnsFalseIfStreamIsNotReadable ( )
testIsReadableReturnsFalseWhenStreamIsDetached ( )
testIsSeekableReturnsFalseForDetachedStreams ( )
testIsSeekableReturnsTrueForReadableStreams ( )
testIsWritableReturnsFalseIfStreamIsNotWritable ( )
testIsWritableReturnsFalseWhenStreamIsDetached ( )
testPassingInvalidStreamResourceToConstructorRaisesException ( )
testReadRaisesExceptionWhenStreamIsDetached ( )
testReadReturnsEmptyStringWhenAtEndOfFile ( )
testRewindResetsToStartOfStream ( )
testSeekAdvancesToGivenOffsetOfStream ( )
testSeekRaisesExceptionWhenStreamIsDetached ( )
testSizeReportsNullWhenNoResourcePresent ( )
testStringSerializationReturnsEmptyStringWhenStreamIsNotReadable ( )
testTellRaisesExceptionIfResourceIsDetached ( )
testTellReportsCurrentPositionInResource ( )
testToStringRetrievesFullContentsOfStream ( )
testWriteRaisesExceptionWhenStreamIsDetached ( )

Method Details

invalidResources() public method

public invalidResources ( )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAttachWithNonStringNonResourceRaisesException() public method

testAttachWithResourceAttachesResource() public method

testAttachWithStringRepresentingResourceCreatesAndAttachesResource() public method

testCanInstantiateWithStreamIdentifier() public method

testCanInstantiteWithStreamResource() public method

testCloseClosesResource() public method

testCloseDoesNothingAfterDetach() public method

testCloseUnsetsResource() public method

testDetachReturnsResource() public method

testEofReportsFalseWhenNotAtEndOfStream() public method

testEofReportsTrueWhenAtEndOfStream() public method

testEofReportsTrueWhenStreamIsDetached() public method

testGetContentsReturnsEmptyStringIfStreamIsNotReadable() public method

testGetContentsShouldGetFullStreamContents() public method

testGetContentsShouldReturnStreamContentsFromCurrentPointer() public method

testGetMetadataReturnsAllMetadataWhenNoKeyPresent() public method

testGetMetadataReturnsDataForSpecifiedKey() public method

testGetMetadataReturnsNullIfNoDataExistsForKey() public method

testGetSizeReturnsStreamSize() public method

testIsReadableReturnsFalseIfStreamIsNotReadable() public method

testIsReadableReturnsFalseWhenStreamIsDetached() public method

testIsSeekableReturnsFalseForDetachedStreams() public method

testIsSeekableReturnsTrueForReadableStreams() public method

testIsWritableReturnsFalseIfStreamIsNotWritable() public method

testIsWritableReturnsFalseWhenStreamIsDetached() public method

testPassingInvalidStreamResourceToConstructorRaisesException() public method

testReadRaisesExceptionWhenStreamIsDetached() public method

testReadReturnsEmptyStringWhenAtEndOfFile() public method

testRewindResetsToStartOfStream() public method

testSeekAdvancesToGivenOffsetOfStream() public method

testSeekRaisesExceptionWhenStreamIsDetached() public method

testSizeReportsNullWhenNoResourcePresent() public method

testStringSerializationReturnsEmptyStringWhenStreamIsNotReadable() public method

testTellRaisesExceptionIfResourceIsDetached() public method

testTellReportsCurrentPositionInResource() public method

testToStringRetrievesFullContentsOfStream() public method

testWriteRaisesExceptionWhenStreamIsDetached() public method

Property Details

$tmpnam public_oe property

public $tmpnam