| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
echo "testing ActionMailer\n"; |
|---|
| 15 |
require_once 'testenv.php'; |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
if (!defined("PHPUnit2_MAIN_METHOD")) { |
|---|
| 19 |
define("PHPUnit2_MAIN_METHOD", "ActionMailerTest::main"); |
|---|
| 20 |
} |
|---|
| 21 |
|
|---|
| 22 |
require_once "PHPUnit2/Framework/TestCase.php"; |
|---|
| 23 |
require_once "PHPUnit2/Framework/TestSuite.php"; |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
require_once "PHPUnit2/Framework/IncompleteTestError.php"; |
|---|
| 27 |
|
|---|
| 28 |
require_once "action_mailer.php"; |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
class ActionMailerTest extends PHPUnit2_Framework_TestCase { |
|---|
| 35 |
|
|---|
| 36 |
* Runs the test methods of this class. |
|---|
| 37 |
* |
|---|
| 38 |
* @access public |
|---|
| 39 |
* @static |
|---|
| 40 |
*/ |
|---|
| 41 |
public static function main() { |
|---|
| 42 |
require_once "PHPUnit2/TextUI/TestRunner.php"; |
|---|
| 43 |
|
|---|
| 44 |
$suite = new PHPUnit2_Framework_TestSuite("ActionMailerTest"); |
|---|
| 45 |
$result = PHPUnit2_TextUI_TestRunner::run($suite); |
|---|
| 46 |
} |
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
* Sets up the fixture, for example, open a network connection. |
|---|
| 50 |
* This method is called before a test is executed. |
|---|
| 51 |
* |
|---|
| 52 |
* @access protected |
|---|
| 53 |
*/ |
|---|
| 54 |
protected function setUp() { |
|---|
| 55 |
} |
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
* Tears down the fixture, for example, close a network connection. |
|---|
| 59 |
* This method is called after a test is executed. |
|---|
| 60 |
* |
|---|
| 61 |
* @access protected |
|---|
| 62 |
*/ |
|---|
| 63 |
protected function tearDown() { |
|---|
| 64 |
} |
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 |
* @todo Implement testAdd_to_address(). |
|---|
| 68 |
*/ |
|---|
| 69 |
public function testAdd_to_address() { |
|---|
| 70 |
|
|---|
| 71 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 72 |
} |
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 |
* @todo Implement testAdd_cc_address(). |
|---|
| 76 |
*/ |
|---|
| 77 |
public function testAdd_cc_address() { |
|---|
| 78 |
|
|---|
| 79 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 80 |
} |
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
* @todo Implement testAdd_bcc_address(). |
|---|
| 84 |
*/ |
|---|
| 85 |
public function testAdd_bcc_address() { |
|---|
| 86 |
|
|---|
| 87 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 88 |
} |
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 |
* @todo Implement testAdd_replyto_address(). |
|---|
| 92 |
*/ |
|---|
| 93 |
public function testAdd_replyto_address() { |
|---|
| 94 |
|
|---|
| 95 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 96 |
} |
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 |
* @todo Implement testSet_from_address(). |
|---|
| 100 |
*/ |
|---|
| 101 |
public function testSet_from_address() { |
|---|
| 102 |
|
|---|
| 103 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 104 |
} |
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 |
* @todo Implement testSet_text_body(). |
|---|
| 108 |
*/ |
|---|
| 109 |
public function testSet_text_body() { |
|---|
| 110 |
|
|---|
| 111 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 112 |
} |
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 |
* @todo Implement testSet_html_body(). |
|---|
| 116 |
*/ |
|---|
| 117 |
public function testSet_html_body() { |
|---|
| 118 |
|
|---|
| 119 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 120 |
} |
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
* @todo Implement testSet_subject(). |
|---|
| 124 |
*/ |
|---|
| 125 |
public function testSet_subject() { |
|---|
| 126 |
|
|---|
| 127 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 128 |
} |
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
* @todo Implement testAdd_attachment(). |
|---|
| 132 |
*/ |
|---|
| 133 |
public function testAdd_attachment() { |
|---|
| 134 |
|
|---|
| 135 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 136 |
} |
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
* @todo Implement testFormat_address(). |
|---|
| 140 |
*/ |
|---|
| 141 |
public function testFormat_address() { |
|---|
| 142 |
|
|---|
| 143 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 144 |
} |
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 |
* @todo Implement testValidate_email(). |
|---|
| 148 |
*/ |
|---|
| 149 |
public function testValidate_email() { |
|---|
| 150 |
|
|---|
| 151 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 152 |
} |
|---|
| 153 |
|
|---|
| 154 |
|
|---|
| 155 |
* @todo Implement testSet_header_line(). |
|---|
| 156 |
*/ |
|---|
| 157 |
public function testSet_header_line() { |
|---|
| 158 |
|
|---|
| 159 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 160 |
} |
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
* @todo Implement testSet_headers(). |
|---|
| 164 |
*/ |
|---|
| 165 |
public function testSet_headers() { |
|---|
| 166 |
|
|---|
| 167 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 168 |
} |
|---|
| 169 |
|
|---|
| 170 |
|
|---|
| 171 |
* @todo Implement testSend(). |
|---|
| 172 |
*/ |
|---|
| 173 |
public function testSend() { |
|---|
| 174 |
|
|---|
| 175 |
throw new PHPUnit2_Framework_IncompleteTestError; |
|---|
| 176 |
} |
|---|
| 177 |
} |
|---|
| 178 |
|
|---|
| 179 |
|
|---|
| 180 |
if (PHPUnit2_MAIN_METHOD == "ActionMailerTest::main") { |
|---|
| 181 |
ActionMailerTest::main(); |
|---|
| 182 |
} |
|---|
| 183 |
|
|---|
| 184 |
|
|---|
| 185 |
|
|---|
| 186 |
|
|---|
| 187 |
|
|---|
| 188 |
|
|---|
| 189 |
|
|---|
| 190 |
|
|---|
| 191 |
?> |
|---|
| 192 |
|
|---|