Public feed #602067

Mine

public text v1 · immutable
Raw Edit
·published 2007-07-03 21:31 UTC
rendered paste body
<?php
// Call Mail_MimeTest::main() if this source file is executed directly.
if (!defined("PHPUnit_MAIN_METHOD")) {
    define("PHPUnit_MAIN_METHOD", "Mail_MimeTest::main");
}

require_once "/data/cvs/pear/PHPUnit_Framework_TestCase_PHPT.php";
require_once "PHPUnit/Framework/TestCase.php";
require_once "PHPUnit/Framework/TestSuite.php";

//make cvs testing work
chdir(dirname(__FILE__) . '/../');
require_once 'mime.php';

/**
 * Test class for Mail_Mime.
 * Generated by PHPUnit_Util_Skeleton on 2007-06-19 at 07:44:36.
 */
class Mail_MimeTest extends PHPUnit_Framework_TestCase_PHPT {
    /**
     * Runs the test methods of this class.
     *
     * @access public
     * @static
     */
    public static function main() {
        require_once "PHPUnit/TextUI/TestRunner.php";

        $suite  = new PHPUnit_Framework_TestSuite("Mail_MimeTest");
        $result = PHPUnit_TextUI_TestRunner::run($suite);
    }


    public function testBugs()
    {
        chdir(dirname(__FILE__));
        $this->assertPHPT('test_Bug_10298_1.phpt');
        $this->assertPHPT('test_Bug_10596_1.phpt');
    }

}

// Call Mail_MimeTest::main() if this source file is executed directly.
if (PHPUnit_MAIN_METHOD == "Mail_MimeTest::main") {
    Mail_MimeTest::main();
}
?>