PHP Class PhlyTest\Http\StreamTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: phly/http

Méthodes publiques

Свойство Type Description
$tmpnam

Méthodes publiques

Méthode 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 méthode

public invalidResources ( )

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testAttachWithNonStringNonResourceRaisesException() public méthode

testAttachWithResourceAttachesResource() public méthode

testAttachWithStringRepresentingResourceCreatesAndAttachesResource() public méthode

testCanInstantiateWithStreamIdentifier() public méthode

testCanInstantiteWithStreamResource() public méthode

testCloseClosesResource() public méthode

testCloseDoesNothingAfterDetach() public méthode

testCloseUnsetsResource() public méthode

testDetachReturnsResource() public méthode

testEofReportsFalseWhenNotAtEndOfStream() public méthode

testEofReportsTrueWhenAtEndOfStream() public méthode

testEofReportsTrueWhenStreamIsDetached() public méthode

testGetContentsReturnsEmptyStringIfStreamIsNotReadable() public méthode

testGetContentsShouldGetFullStreamContents() public méthode

testGetContentsShouldReturnStreamContentsFromCurrentPointer() public méthode

testGetMetadataReturnsAllMetadataWhenNoKeyPresent() public méthode

testGetMetadataReturnsDataForSpecifiedKey() public méthode

testGetMetadataReturnsNullIfNoDataExistsForKey() public méthode

testGetSizeReturnsStreamSize() public méthode

testIsReadableReturnsFalseIfStreamIsNotReadable() public méthode

testIsReadableReturnsFalseWhenStreamIsDetached() public méthode

testIsSeekableReturnsFalseForDetachedStreams() public méthode

testIsSeekableReturnsTrueForReadableStreams() public méthode

testIsWritableReturnsFalseIfStreamIsNotWritable() public méthode

testIsWritableReturnsFalseWhenStreamIsDetached() public méthode

testPassingInvalidStreamResourceToConstructorRaisesException() public méthode

testReadRaisesExceptionWhenStreamIsDetached() public méthode

testReadReturnsEmptyStringWhenAtEndOfFile() public méthode

testRewindResetsToStartOfStream() public méthode

testSeekAdvancesToGivenOffsetOfStream() public méthode

testSeekRaisesExceptionWhenStreamIsDetached() public méthode

testSizeReportsNullWhenNoResourcePresent() public méthode

testStringSerializationReturnsEmptyStringWhenStreamIsNotReadable() public méthode

testTellRaisesExceptionIfResourceIsDetached() public méthode

testTellReportsCurrentPositionInResource() public méthode

testToStringRetrievesFullContentsOfStream() public méthode

testWriteRaisesExceptionWhenStreamIsDetached() public méthode

Property Details

$tmpnam public_oe property

public $tmpnam