Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: Swift_Mime_AttachmentTest

Source Location: /system/vendor/swiftmailer/swiftmailer/tests/unit/Swift/Mime/AttachmentTest.php

Class Overview

PHPUnit_Framework_TestCase
   |
   --SwiftMailerTestCase
      |
      --Swift_Mime_AbstractMimeEntityTest
         |
         --Swift_Mime_AttachmentTest

A base test case with some custom expectations.


Author(s):

  • Rouven Weßling

Methods


Child classes:

Swift_Mime_EmbeddedFileTest
A base test case with some custom expectations.

Inherited Methods

Class: Swift_Mime_AbstractMimeEntityTest

Swift_Mime_AbstractMimeEntityTest::testAddingChildrenGeneratesBoundaryInHeaders()
Swift_Mime_AbstractMimeEntityTest::testBodyIsAddedToCacheWhenUsingToByteStream()
Swift_Mime_AbstractMimeEntityTest::testBodyIsAddedToCacheWhenUsingToString()
Swift_Mime_AbstractMimeEntityTest::testBodyIsAppended()
Swift_Mime_AbstractMimeEntityTest::testBodyIsClearedFromCacheIfNewBodySet()
Swift_Mime_AbstractMimeEntityTest::testBodyIsClearedFromCacheIfNewEncoderSet()
Swift_Mime_AbstractMimeEntityTest::testBodyIsNotClearedFromCacheIfSameBodySet()
Swift_Mime_AbstractMimeEntityTest::testBodyIsReadFromCacheWhenUsingToByteStreamIfPresent()
Swift_Mime_AbstractMimeEntityTest::testBodyIsReadFromCacheWhenUsingToStringIfPresent()
Swift_Mime_AbstractMimeEntityTest::testBoundaryCanBeRetrieved()
Swift_Mime_AbstractMimeEntityTest::testBoundaryCanBeSet()
Swift_Mime_AbstractMimeEntityTest::testBoundaryNeverChanges()
Swift_Mime_AbstractMimeEntityTest::testByteStreamBodyIsAppended()
Swift_Mime_AbstractMimeEntityTest::testChildrenAppearNestedInString()
Swift_Mime_AbstractMimeEntityTest::testChildrenOfLevelAlternativeAndLessCauseMultipartAlternative()
Swift_Mime_AbstractMimeEntityTest::testChildrenOfLevelAttachmentAndLessCauseMultipartMixed()
Swift_Mime_AbstractMimeEntityTest::testChildrenOfLevelRelatedAndLessCauseMultipartRelated()
Swift_Mime_AbstractMimeEntityTest::testContentTypeCanBeSetViaSetBody()
Swift_Mime_AbstractMimeEntityTest::testContentTypeHeaderIsAddedIfNoneSet()
Swift_Mime_AbstractMimeEntityTest::testContentTypeIsReturnedFromHeader()
Swift_Mime_AbstractMimeEntityTest::testContentTypeIsSetInHeader()
Swift_Mime_AbstractMimeEntityTest::testDescriptionHeaderIsAddedIfNotPresent()
Swift_Mime_AbstractMimeEntityTest::testDescriptionIsReadFromHeader()
Swift_Mime_AbstractMimeEntityTest::testDescriptionIsSetInHeader()
Swift_Mime_AbstractMimeEntityTest::testEncoderIsUsedForStringGeneration()
Swift_Mime_AbstractMimeEntityTest::testEntityHeadersAreComittedToByteStream()
Swift_Mime_AbstractMimeEntityTest::testEntityIsWrittenToByteStream()
Swift_Mime_AbstractMimeEntityTest::testFluidInterface()
Swift_Mime_AbstractMimeEntityTest::testGenerateIdCreatesNewId()
Swift_Mime_AbstractMimeEntityTest::testGenerateIdSetsNewId()
Swift_Mime_AbstractMimeEntityTest::testGetBodyReturnsStringFromByteStream()
Swift_Mime_AbstractMimeEntityTest::testGetEncoderFromConstructor()
Swift_Mime_AbstractMimeEntityTest::testGetHeadersReturnsHeaderSet()
Swift_Mime_AbstractMimeEntityTest::testHeadersAppearInString()
Swift_Mime_AbstractMimeEntityTest::testHighestLevelChildDeterminesContentType()
Swift_Mime_AbstractMimeEntityTest::testIdIsAutoGenerated()
Swift_Mime_AbstractMimeEntityTest::testIdIsReturnedFromHeader()
Swift_Mime_AbstractMimeEntityTest::testIdIsSetInHeader()
Swift_Mime_AbstractMimeEntityTest::testMaxLineLengthIsProvidedWhenEncoding()
Swift_Mime_AbstractMimeEntityTest::testMixingLevelsIsHierarchical()
Swift_Mime_AbstractMimeEntityTest::testOrderingTextBeforeHtml()
Swift_Mime_AbstractMimeEntityTest::testReceiptOfCharsetChangeNotifiesChildren()
Swift_Mime_AbstractMimeEntityTest::testReceiptOfEncoderChangeNotifiesChildren()
Swift_Mime_AbstractMimeEntityTest::testSetAndGetBody()
Swift_Mime_AbstractMimeEntityTest::testSetAndGetEncoder()
Swift_Mime_AbstractMimeEntityTest::testSetAndGetMaxLineLength()
Swift_Mime_AbstractMimeEntityTest::testSettingEncoderAddsEncodingHeaderIfNonePresent()
Swift_Mime_AbstractMimeEntityTest::testSettingEncoderNotifiesChildren()
Swift_Mime_AbstractMimeEntityTest::testSettingEncoderUpdatesTransferEncoding()
Swift_Mime_AbstractMimeEntityTest::testUnsettingChildrenRestoresContentType()
Swift_Mime_AbstractMimeEntityTest::_createCache()
Swift_Mime_AbstractMimeEntityTest::_createChild()
Swift_Mime_AbstractMimeEntityTest::_createEncoder()
Swift_Mime_AbstractMimeEntityTest::_createEntity()
Swift_Mime_AbstractMimeEntityTest::_createHeader()
Swift_Mime_AbstractMimeEntityTest::_createHeaderSet()
Swift_Mime_AbstractMimeEntityTest::_createInputStream()
Swift_Mime_AbstractMimeEntityTest::_createOutputStream()

Class: SwiftMailerTestCase

SwiftMailerTestCase::assertIdenticalBinary()
SwiftMailerTestCase::getMockery()
SwiftMailerTestCase::regExp()
SwiftMailerTestCase::tearDown()

Class Details

[line 3]
A base test case with some custom expectations.



Tags:

author:  Rouven Weßling


[ Top ]


Class Methods


method testContentTypeCanBeSetViaSetFile [line 197]

void testContentTypeCanBeSetViaSetFile( )



Tags:

access:  public


[ Top ]

method testDataCanBeReadFromFile [line 253]

void testDataCanBeReadFromFile( )



Tags:

access:  public


[ Top ]

method testDefaultContentTypeInitializedToOctetStream [line 75]

void testDefaultContentTypeInitializedToOctetStream( )



Tags:

access:  public


[ Top ]

method testDispositionIsAddedIfNonePresent [line 46]

void testDispositionIsAddedIfNonePresent( )



Tags:

access:  public


[ Top ]

method testDispositionIsAutoDefaultedToAttachment [line 61]

void testDispositionIsAutoDefaultedToAttachment( )



Tags:

access:  public


[ Top ]

method testDispositionIsReturnedFromHeader [line 15]

void testDispositionIsReturnedFromHeader( )



Tags:

access:  public


[ Top ]

method testDispositionIsSetInHeader [line 28]

void testDispositionIsSetInHeader( )



Tags:

access:  public


[ Top ]

method testFilenameIsReturnedFromHeader [line 92]

void testFilenameIsReturnedFromHeader( )



Tags:

access:  public


[ Top ]

method testFilenameIsSetInHeader [line 107]

void testFilenameIsSetInHeader( )



Tags:

access:  public


[ Top ]

method testFilnameCanBeReadFromFileStream [line 180]

void testFilnameCanBeReadFromFileStream( )



Tags:

access:  public


[ Top ]

method testFluidInterface [line 263]

void testFluidInterface( )



Tags:

access:  public


Overrides Swift_Mime_AbstractMimeEntityTest::testFluidInterface() (parent method not documented)

[ Top ]

method testNestingLevelIsAttachment [line 5]

void testNestingLevelIsAttachment( )



Tags:

access:  public


Overridden in child classes as:

Swift_Mime_EmbeddedFileTest::testNestingLevelIsAttachment()

[ Top ]

method testSettingFilenameSetsNameInContentType [line 125]

void testSettingFilenameSetsNameInContentType( )



Tags:

access:  public


[ Top ]

method testSizeIsReturnedFromHeader [line 147]

void testSizeIsReturnedFromHeader( )



Tags:

access:  public


[ Top ]

method testSizeIsSetInHeader [line 162]

void testSizeIsSetInHeader( )



Tags:

access:  public


[ Top ]

method XtestContentTypeCanBeLookedUpFromCommonListIfNotProvided [line 225]

void XtestContentTypeCanBeLookedUpFromCommonListIfNotProvided( )



Tags:

access:  public


[ Top ]

method _createAttachment [line 292]

void _createAttachment( $headers, $encoder, $cache, [ $mimeTypes = array()])



Tags:

access:  protected


Overridden in child classes as:

Swift_Mime_EmbeddedFileTest::_createAttachment()

Parameters:

   $headers  
   $encoder  
   $cache  
   $mimeTypes  

[ Top ]

method _createEntity [line 287]

void _createEntity( $headers, $encoder, $cache)



Tags:

access:  protected


Overrides Swift_Mime_AbstractMimeEntityTest::_createEntity() (parent method not documented)

Parameters:

   $headers  
   $encoder  
   $cache  

[ Top ]

method _createFileStream [line 297]

void _createFileStream( $path, $data, [ $stub = true])



Tags:

access:  protected


Parameters:

   $path  
   $data  
   $stub  

[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:44:21 +0000 by phpDocumentor 1.4.3