Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->setName("Mail");
     $this->addTest(ezcMailTest::suite());
     $this->addTest(ezcMailComposerTest::suite());
     $this->addTest(ezcMailPartTest::suite());
     $this->addTest(ezcMailTransportOptionsTest::suite());
     $this->addTest(ezcMailParserOptionsTest::suite());
     $this->addTest(ezcMailTextTest::suite());
     $this->addTest(ezcMailMultiPartTest::suite());
     $this->addTest(ezcMailFileTest::suite());
     $this->addTest(ezcMailVirtualFileTest::suite());
     $this->addTest(ezcMailStreamFileTest::suite());
     $this->addTest(ezcMailRfc822DigestTest::suite());
     $this->addTest(ezcMailMultipartDigestTest::suite());
     $this->addTest(ezcMailToolsTest::suite());
     $this->addTest(ezcMailTransportMtaTest::suite());
     $this->addTest(ezcMailTransportSmtpTest::suite());
     $this->addTest(ezcMailTransportSmtpAuthTest::suite());
     $this->addTest(ezcMailTransportPop3Test::suite());
     $this->addTest(ezcMailTransportImapTest::suite());
     $this->addTest(ezcMailTransportImapUidTest::suite());
     $this->addTest(ezcMailTransportMboxTest::suite());
     $this->addTest(ezcMailTransportFileTest::suite());
     $this->addTest(ezcMailTransportStorageTest::suite());
     $this->addTest(ezcMailTransportVariableTest::suite());
     $this->addTest(ezcMailTutorialExamples::suite());
     $this->addTest(ezcMailParserTest::suite());
     $this->addTest(ezcMailPartWalkContextTest::suite());
     $this->addTest(ezcMailHeadersHolderTest::suite());
     $this->addTest(ezcMailMultipartMixedParserTest::suite());
     $this->addTest(ezcMailRfc2231ImplementationTest::suite());
     $this->addTest(ezcMailHeaderFolderTest::suite());
 }
Exemplo n.º 2
0
 public static function suite()
 {
     self::$ids = array(23, 24, 25, 26);
     self::$sizes = array(1539, 64072, 1696, 1725);
     for ($i = 0; $i < count(self::$ids); $i++) {
         $messageNr = str_pad(sprintf("%x", self::$ids[$i]), 8, '0', STR_PAD_LEFT);
         self::$ids[$i] = "{$messageNr}468e011a";
     }
     return new PHPUnit_Framework_TestSuite(__CLASS__);
 }