Documentation

Swift_Mime_SimpleMimeEntityTest extends Swift_Mime_AbstractMimeEntityTest
in package

A base test case with some custom expectations.

Table of Contents

assertIdenticalBinary()  : mixed
regExp()  : mixed
testAddingChildrenGeneratesBoundaryInHeaders()  : mixed
testBodyIsAddedToCacheWhenUsingToByteStream()  : mixed
testBodyIsAddedToCacheWhenUsingToString()  : mixed
testBodyIsAppended()  : mixed
testBodyIsClearedFromCacheIfNewBodySet()  : mixed
testBodyIsClearedFromCacheIfNewEncoderSet()  : mixed
testBodyIsNotClearedFromCacheIfSameBodySet()  : mixed
testBodyIsReadFromCacheWhenUsingToByteStreamIfPresent()  : mixed
testBodyIsReadFromCacheWhenUsingToStringIfPresent()  : mixed
testBoundaryCanBeRetrieved()  : mixed
testBoundaryCanBeSet()  : mixed
testBoundaryNeverChanges()  : mixed
testByteStreamBodyIsAppended()  : mixed
testChildrenAppearNestedInString()  : mixed
testChildrenOfLevelAlternativeAndLessCauseMultipartAlternative()  : mixed
testChildrenOfLevelAttachmentAndLessCauseMultipartMixed()  : mixed
testChildrenOfLevelRelatedAndLessCauseMultipartRelated()  : mixed
testContentTypeCanBeSetViaSetBody()  : mixed
testContentTypeHeaderIsAddedIfNoneSet()  : mixed
testContentTypeIsReturnedFromHeader()  : mixed
testContentTypeIsSetInHeader()  : mixed
testDescriptionHeaderIsAddedIfNotPresent()  : mixed
testDescriptionIsReadFromHeader()  : mixed
testDescriptionIsSetInHeader()  : mixed
testEncoderIsUsedForStringGeneration()  : mixed
testEntityHeadersAreComittedToByteStream()  : mixed
testEntityIsWrittenToByteStream()  : mixed
testFluidInterface()  : mixed
testGenerateIdCreatesNewId()  : mixed
testGenerateIdSetsNewId()  : mixed
testGetBodyReturnsStringFromByteStream()  : mixed
testGetEncoderFromConstructor()  : mixed
testGetHeadersReturnsHeaderSet()  : mixed
testHeadersAppearInString()  : mixed
testHighestLevelChildDeterminesContentType()  : mixed
testIdIsAutoGenerated()  : mixed
testIdIsReturnedFromHeader()  : mixed
testIdIsSetInHeader()  : mixed
testMaxLineLengthIsProvidedWhenEncoding()  : mixed
testMixingLevelsIsHierarchical()  : mixed
testOrderingEqualContentTypesMaintainsOriginalOrdering()  : mixed
testOrderingTextBeforeHtml()  : mixed
testReceiptOfCharsetChangeNotifiesChildren()  : mixed
testReceiptOfEncoderChangeNotifiesChildren()  : mixed
testSetAndGetBody()  : mixed
testSetAndGetEncoder()  : mixed
testSetAndGetMaxLineLength()  : mixed
testSettingEncoderAddsEncodingHeaderIfNonePresent()  : mixed
testSettingEncoderNotifiesChildren()  : mixed
testSettingEncoderUpdatesTransferEncoding()  : mixed
testUnsettingChildrenRestoresContentType()  : mixed
createCache()  : mixed
createChild()  : mixed
createEncoder()  : mixed
createEntity()  : mixed
createHeader()  : mixed
createHeaderSet()  : mixed
createInputStream()  : mixed
createOutputStream()  : mixed
getMockery()  : mixed
tearDown()  : mixed

Methods

assertIdenticalBinary()

public assertIdenticalBinary(mixed $expected, mixed $actual[, mixed $message = '' ]) : mixed
Parameters
$expected : mixed
$actual : mixed
$message : mixed = ''
Return values
mixed

regExp()

public static regExp(mixed $pattern) : mixed
Parameters
$pattern : mixed
Return values
mixed

testAddingChildrenGeneratesBoundaryInHeaders()

public testAddingChildrenGeneratesBoundaryInHeaders() : mixed
Return values
mixed

testBodyIsAddedToCacheWhenUsingToByteStream()

public testBodyIsAddedToCacheWhenUsingToByteStream() : mixed
Return values
mixed

testBodyIsAddedToCacheWhenUsingToString()

public testBodyIsAddedToCacheWhenUsingToString() : mixed
Return values
mixed

testBodyIsClearedFromCacheIfNewBodySet()

public testBodyIsClearedFromCacheIfNewBodySet() : mixed
Return values
mixed

testBodyIsClearedFromCacheIfNewEncoderSet()

public testBodyIsClearedFromCacheIfNewEncoderSet() : mixed
Return values
mixed

testBodyIsNotClearedFromCacheIfSameBodySet()

public testBodyIsNotClearedFromCacheIfSameBodySet() : mixed
Return values
mixed

testBodyIsReadFromCacheWhenUsingToByteStreamIfPresent()

public testBodyIsReadFromCacheWhenUsingToByteStreamIfPresent() : mixed
Return values
mixed

testBodyIsReadFromCacheWhenUsingToStringIfPresent()

public testBodyIsReadFromCacheWhenUsingToStringIfPresent() : mixed
Return values
mixed

testBoundaryCanBeRetrieved()

public testBoundaryCanBeRetrieved() : mixed
Return values
mixed

testByteStreamBodyIsAppended()

public testByteStreamBodyIsAppended() : mixed
Return values
mixed

testChildrenAppearNestedInString()

public testChildrenAppearNestedInString() : mixed
Return values
mixed

testChildrenOfLevelAlternativeAndLessCauseMultipartAlternative()

public testChildrenOfLevelAlternativeAndLessCauseMultipartAlternative() : mixed
Return values
mixed

testChildrenOfLevelAttachmentAndLessCauseMultipartMixed()

public testChildrenOfLevelAttachmentAndLessCauseMultipartMixed() : mixed
Return values
mixed

testChildrenOfLevelRelatedAndLessCauseMultipartRelated()

public testChildrenOfLevelRelatedAndLessCauseMultipartRelated() : mixed
Return values
mixed

testContentTypeCanBeSetViaSetBody()

public testContentTypeCanBeSetViaSetBody() : mixed
Return values
mixed

testContentTypeHeaderIsAddedIfNoneSet()

public testContentTypeHeaderIsAddedIfNoneSet() : mixed
Return values
mixed

testContentTypeIsReturnedFromHeader()

public testContentTypeIsReturnedFromHeader() : mixed
Return values
mixed

testContentTypeIsSetInHeader()

public testContentTypeIsSetInHeader() : mixed
Return values
mixed

testDescriptionHeaderIsAddedIfNotPresent()

public testDescriptionHeaderIsAddedIfNotPresent() : mixed
Return values
mixed

testDescriptionIsReadFromHeader()

public testDescriptionIsReadFromHeader() : mixed
Return values
mixed

testDescriptionIsSetInHeader()

public testDescriptionIsSetInHeader() : mixed
Return values
mixed

testEncoderIsUsedForStringGeneration()

public testEncoderIsUsedForStringGeneration() : mixed
Return values
mixed

testEntityHeadersAreComittedToByteStream()

public testEntityHeadersAreComittedToByteStream() : mixed
Return values
mixed

testEntityIsWrittenToByteStream()

public testEntityIsWrittenToByteStream() : mixed
Return values
mixed

testGenerateIdCreatesNewId()

public testGenerateIdCreatesNewId() : mixed
Return values
mixed

testGetBodyReturnsStringFromByteStream()

public testGetBodyReturnsStringFromByteStream() : mixed
Return values
mixed

testGetEncoderFromConstructor()

public testGetEncoderFromConstructor() : mixed
Return values
mixed

testGetHeadersReturnsHeaderSet()

public testGetHeadersReturnsHeaderSet() : mixed
Return values
mixed

testHighestLevelChildDeterminesContentType()

public testHighestLevelChildDeterminesContentType() : mixed
Return values
mixed

testIdIsReturnedFromHeader()

public testIdIsReturnedFromHeader() : mixed
Return values
mixed

testMaxLineLengthIsProvidedWhenEncoding()

public testMaxLineLengthIsProvidedWhenEncoding() : mixed
Return values
mixed

testMixingLevelsIsHierarchical()

public testMixingLevelsIsHierarchical() : mixed
Return values
mixed

testOrderingEqualContentTypesMaintainsOriginalOrdering()

public testOrderingEqualContentTypesMaintainsOriginalOrdering() : mixed
Return values
mixed

testOrderingTextBeforeHtml()

public testOrderingTextBeforeHtml() : mixed
Return values
mixed

testReceiptOfCharsetChangeNotifiesChildren()

public testReceiptOfCharsetChangeNotifiesChildren() : mixed
Return values
mixed

testReceiptOfEncoderChangeNotifiesChildren()

public testReceiptOfEncoderChangeNotifiesChildren() : mixed
Return values
mixed

testSetAndGetMaxLineLength()

public testSetAndGetMaxLineLength() : mixed
Return values
mixed

testSettingEncoderAddsEncodingHeaderIfNonePresent()

public testSettingEncoderAddsEncodingHeaderIfNonePresent() : mixed
Return values
mixed

testSettingEncoderNotifiesChildren()

public testSettingEncoderNotifiesChildren() : mixed
Return values
mixed

testSettingEncoderUpdatesTransferEncoding()

public testSettingEncoderUpdatesTransferEncoding() : mixed
Return values
mixed

testUnsettingChildrenRestoresContentType()

public testUnsettingChildrenRestoresContentType() : mixed
Return values
mixed

createCache()

protected createCache([mixed $stub = true ]) : mixed
Parameters
$stub : mixed = true
Return values
mixed

createChild()

protected createChild([mixed $level = null ][, mixed $string = '' ][, mixed $stub = true ]) : mixed
Parameters
$level : mixed = null
$string : mixed = ''
$stub : mixed = true
Return values
mixed

createEncoder()

protected createEncoder([mixed $name = 'quoted-printable' ][, mixed $stub = true ]) : mixed
Parameters
$name : mixed = 'quoted-printable'
$stub : mixed = true
Return values
mixed

createEntity()

protected createEntity(mixed $headerFactory, mixed $encoder, mixed $cache) : mixed
Parameters
$headerFactory : mixed
$encoder : mixed
$cache : mixed
Return values
mixed

createHeader()

protected createHeader(mixed $name[, mixed $model = null ][, mixed $params = [] ][, mixed $stub = true ]) : mixed
Parameters
$name : mixed
$model : mixed = null
$params : mixed = []
$stub : mixed = true
Return values
mixed

createHeaderSet()

protected createHeaderSet([mixed $headers = [] ][, mixed $stub = true ]) : mixed
Parameters
$headers : mixed = []
$stub : mixed = true
Return values
mixed

createInputStream()

protected createInputStream([mixed $stub = true ]) : mixed
Parameters
$stub : mixed = true
Return values
mixed

createOutputStream()

protected createOutputStream([mixed $data = null ][, mixed $stub = true ]) : mixed
Parameters
$data : mixed = null
$stub : mixed = true
Return values
mixed

getMockery()

protected getMockery(mixed $class) : mixed
Parameters
$class : mixed
Return values
mixed

Search results