PHP on T R A X
Rapid Application Development Made Easy

root/trunk/trax/test/ApplicationMailerTest.php

Revision 192, 2.2 kB (checked in by haas, 3 years ago)

working Pear install w/ tests

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1 <?php
2 /**
3  *  File for the ApplicationMailerTest class
4  *
5  * (PHP 5)
6  *
7  * @package PHPonTraxTest
8  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9  * @copyright (c) Walter O. Haas 2006
10  * @version $Id$
11  * @author Walt Haas <haas@xmission.com>
12  */
13
14 echo "testing ApplicationMailer\n";
15 require_once 'testenv.php';
16
17 // Call ApplicationMailerTest::main() if this source file is executed directly.
18 if (!defined("PHPUnit2_MAIN_METHOD")) {
19     define("PHPUnit2_MAIN_METHOD", "ApplicationMailerTest::main");
20 }
21
22 require_once "PHPUnit2/Framework/TestCase.php";
23 require_once "PHPUnit2/Framework/TestSuite.php";
24
25 // You may remove the following line when all tests have been implemented.
26 require_once "PHPUnit2/Framework/IncompleteTestError.php";
27
28 require_once "action_mailer.php";
29
30 /**
31  * Test class for ApplicationMailer.
32  * Generated by PHPUnit2_Util_Skeleton on 2006-03-01 at 13:17:32.
33  */
34 class ApplicationMailerTest 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("ApplicationMailerTest");
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      *  Empty test to prevent failure
68      */
69     public function testEmpty() {
70     }
71 }
72
73 // Call ApplicationMailerTest::main() if this source file is executed directly.
74 if (PHPUnit2_MAIN_METHOD == "ApplicationMailerTest::main") {
75     ApplicationMailerTest::main();
76 }
77
78 // -- set Emacs parameters --
79 // Local variables:
80 // tab-width: 4
81 // c-basic-offset: 4
82 // c-hanging-comment-ender-p: nil
83 // indent-tabs-mode: nil
84 // End:
85 ?>
86
Note: See TracBrowser for help on using the browser.