Documentation

Swift_Mime_EmbeddedFileTest extends Swift_Mime_AttachmentTest
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
testContentTypeCanBeSetViaSetFile()  : mixed
testContentTypeHeaderIsAddedIfNoneSet()  : mixed
testContentTypeIsReturnedFromHeader()  : mixed
testContentTypeIsSetInHeader()  : mixed
testDataCanBeReadFromFile()  : mixed
testDefaultContentTypeInitializedToOctetStream()  : mixed
testDefaultDispositionIsInline()  : mixed
testDescriptionHeaderIsAddedIfNotPresent()  : mixed
testDescriptionIsReadFromHeader()  : mixed
testDescriptionIsSetInHeader()  : mixed
testDispositionIsAddedIfNonePresent()  : mixed
testDispositionIsAutoDefaultedToAttachment()  : mixed
testDispositionIsReturnedFromHeader()  : mixed
testDispositionIsSetInHeader()  : mixed
testEncoderIsUsedForStringGeneration()  : mixed
testEntityHeadersAreComittedToByteStream()  : mixed
testEntityIsWrittenToByteStream()  : mixed
testFilenameIsReturnedFromHeader()  : mixed
testFilenameIsSetInHeader()  : mixed
testFilnameCanBeReadFromFileStream()  : 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
testNestingLevelIsAttachment()  : mixed
testNestingLevelIsEmbedded()  : mixed
testOrderingEqualContentTypesMaintainsOriginalOrdering()  : mixed
testOrderingTextBeforeHtml()  : mixed
testReceiptOfCharsetChangeNotifiesChildren()  : mixed
testReceiptOfEncoderChangeNotifiesChildren()  : mixed
testSetAndGetBody()  : mixed
testSetAndGetEncoder()  : mixed
testSetAndGetMaxLineLength()  : mixed
testSettingEncoderAddsEncodingHeaderIfNonePresent()  : mixed
testSettingEncoderNotifiesChildren()  : mixed
testSettingEncoderUpdatesTransferEncoding()  : mixed
testSettingFilenameSetsNameInContentType()  : mixed
testSizeIsReturnedFromHeader()  : mixed
testSizeIsSetInHeader()  : mixed
testUnsettingChildrenRestoresContentType()  : mixed
XtestContentTypeCanBeLookedUpFromCommonListIfNotProvided()  : mixed
createAttachment()  : mixed
createCache()  : mixed
createChild()  : mixed
createEncoder()  : mixed
createEntity()  : mixed
createFileStream()  : mixed
createHeader()  : mixed
createHeaderSet()  : mixed
createInputStream()  : mixed
createOutputStream()  : mixed
getMockery()  : mixed
tearDown()  : mixed
createEmbeddedFile()  : 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

testContentTypeCanBeSetViaSetFile()

public testContentTypeCanBeSetViaSetFile() : 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

testDataCanBeReadFromFile()

public testDataCanBeReadFromFile() : mixed
Return values
mixed

testDefaultContentTypeInitializedToOctetStream()

public testDefaultContentTypeInitializedToOctetStream() : mixed
Return values
mixed

testDefaultDispositionIsInline()

public testDefaultDispositionIsInline() : 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

testDispositionIsAddedIfNonePresent()

public testDispositionIsAddedIfNonePresent() : mixed
Return values
mixed

testDispositionIsAutoDefaultedToAttachment()

public testDispositionIsAutoDefaultedToAttachment() : mixed
Return values
mixed

testDispositionIsReturnedFromHeader()

public testDispositionIsReturnedFromHeader() : mixed
Return values
mixed

testDispositionIsSetInHeader()

public testDispositionIsSetInHeader() : 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

testFilenameIsReturnedFromHeader()

public testFilenameIsReturnedFromHeader() : mixed
Return values
mixed

testFilenameIsSetInHeader()

public testFilenameIsSetInHeader() : mixed
Return values
mixed

testFilnameCanBeReadFromFileStream()

public testFilnameCanBeReadFromFileStream() : 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

testIdIsAutoGenerated()

public testIdIsAutoGenerated() : 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

testNestingLevelIsAttachment()

public testNestingLevelIsAttachment() : mixed
Return values
mixed

testNestingLevelIsEmbedded()

public testNestingLevelIsEmbedded() : 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

testSettingFilenameSetsNameInContentType()

public testSettingFilenameSetsNameInContentType() : mixed
Return values
mixed

testSizeIsReturnedFromHeader()

public testSizeIsReturnedFromHeader() : mixed
Return values
mixed

testSizeIsSetInHeader()

public testSizeIsSetInHeader() : mixed
Return values
mixed

testUnsettingChildrenRestoresContentType()

public testUnsettingChildrenRestoresContentType() : mixed
Return values
mixed

XtestContentTypeCanBeLookedUpFromCommonListIfNotProvided()

public XtestContentTypeCanBeLookedUpFromCommonListIfNotProvided() : mixed
Return values
mixed

createAttachment()

protected createAttachment(mixed $headers, mixed $encoder, mixed $cache[, mixed $mimeTypes = [] ]) : mixed
Parameters
$headers : mixed
$encoder : mixed
$cache : mixed
$mimeTypes : 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 abstract createEntity(mixed $headers, mixed $encoder, mixed $cache) : mixed
Parameters
$headers : mixed
$encoder : mixed
$cache : mixed
Return values
mixed

createFileStream()

protected createFileStream(mixed $path, mixed $data[, mixed $stub = true ]) : mixed
Parameters
$path : mixed
$data : mixed
$stub : mixed = true
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

createEmbeddedFile()

private createEmbeddedFile(mixed $headers, mixed $encoder, mixed $cache) : mixed
Parameters
$headers : mixed
$encoder : mixed
$cache : mixed
Return values
mixed

Search results