root/trunk/trax/test/FormHelperTest.php

Revision 199, 8.4 KB (checked in by haas, 6 years ago)

many fixes, documentation improvements

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1<?php
2/**
3 *  File for the FormHelperTest 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
14echo "testing FormHelper\n";
15require_once 'testenv.php';
16
17// Call FormHelperTest::main() if this source file is executed directly.
18if (!defined("PHPUnit2_MAIN_METHOD")) {
19    define("PHPUnit2_MAIN_METHOD", "FormHelperTest::main");
20}
21
22require_once "PHPUnit2/Framework/TestCase.php";
23require_once "PHPUnit2/Framework/TestSuite.php";
24
25// You may remove the following line when all tests have been implemented.
26require_once "PHPUnit2/Framework/IncompleteTestError.php";
27
28require_once "action_view/helpers.php";
29require_once "action_view/helpers/form_helper.php";
30
31/**
32 * Test class for FormHelper.
33 * Generated by PHPUnit2_Util_Skeleton on 2006-03-01 at 13:17:32.
34 */
35class FormHelperTest extends PHPUnit2_Framework_TestCase {
36    /**
37     * Runs the test methods of this class.
38     *
39     * @access public
40     * @static
41     */
42    public static function main() {
43        require_once "PHPUnit2/TextUI/TestRunner.php";
44
45        $suite  = new PHPUnit2_Framework_TestSuite("FormHelperTest");
46        $result = PHPUnit2_TextUI_TestRunner::run($suite);
47    }
48
49    /**
50     * Sets up the fixture, for example, open a network connection.
51     * This method is called before a test is executed.
52     *
53     * @access protected
54     */
55    protected function setUp() {
56    }
57
58    /**
59     * Tears down the fixture, for example, close a network connection.
60     * This method is called after a test is executed.
61     *
62     * @access protected
63     */
64    protected function tearDown() {
65    }
66
67    /**
68     *  Test __construct() method
69     */
70    public function test__construct() {
71        $uh = new FormHelper;
72        $this->assertTrue(is_object($uh));
73        $this->assertEquals('FormHelper', get_class($uh));
74    }
75
76    /**
77     *  Test add_default_name_and_id() method
78     *  @todo Implement this test
79     */
80    public function testAdd_default_name_and_id_method() {
81        // Remove the following line when you implement this test.
82        throw new PHPUnit2_Framework_IncompleteTestError;
83    }
84
85    /**
86     *  Test add_default_name_and_id() function
87     *  @todo Implement this test
88     */
89    public function testAdd_default_name_and_id_function() {
90        // Remove the following line when you implement this test.
91        throw new PHPUnit2_Framework_IncompleteTestError;
92    }
93
94    /**
95     *  Test error_wrapping() method
96     *  @todo Implement this test
97     */
98    public function testError_wrapping_method() {
99        // Remove the following line when you implement this test.
100        throw new PHPUnit2_Framework_IncompleteTestError;
101    }
102
103    /**
104     *  Test error_wrapping() function
105     *  @todo Implement this test
106     */
107    public function testError_wrapping_function() {
108        // Remove the following line when you implement this test.
109        throw new PHPUnit2_Framework_IncompleteTestError;
110    }
111
112    /**
113     *  Test tag_id() method
114     *  @todo Implement this test
115     */
116    public function testTag_id_method() {
117        // Remove the following line when you implement this test.
118        throw new PHPUnit2_Framework_IncompleteTestError;
119    }
120
121    /**
122     *  Test tag_id() function
123     *  @todo Implement this test
124     */
125    public function testTag_id_function() {
126        // Remove the following line when you implement this test.
127        throw new PHPUnit2_Framework_IncompleteTestError;
128    }
129
130    /**
131     *  Test tag_id_with_index() method
132     *  @todo Implement this test
133     */
134    public function testTag_id_with_index_method() {
135        // Remove the following line when you implement this test.
136        throw new PHPUnit2_Framework_IncompleteTestError;
137    }
138
139    /**
140     *  Test tag_id_with_index() function
141     *  @todo Implement this test
142     */
143    public function testTag_id_with_index_function() {
144        // Remove the following line when you implement this test.
145        throw new PHPUnit2_Framework_IncompleteTestError;
146    }
147
148    /**
149     *  Test tag_name() method
150     *  @todo Implement this test
151     */
152    public function testTag_name_method() {
153        // Remove the following line when you implement this test.
154        throw new PHPUnit2_Framework_IncompleteTestError;
155    }
156
157    /**
158     *  Test tag_name() function
159     *  @todo Implement this test
160     */
161    public function testTag_name_function() {
162        // Remove the following line when you implement this test.
163        throw new PHPUnit2_Framework_IncompleteTestError;
164    }
165
166    /**
167     *  Test tag_name_with_index() method
168     *  @todo Implement this test
169     */
170    public function testTag_name_with_index_method() {
171        // Remove the following line when you implement this test.
172        throw new PHPUnit2_Framework_IncompleteTestError;
173    }
174
175    /**
176     *  Test tag_name_with_index() function
177     *  @todo Implement this test
178     */
179    public function testTag_name_with_index_function() {
180        // Remove the following line when you implement this test.
181        throw new PHPUnit2_Framework_IncompleteTestError;
182    }
183
184    /**
185     *  Test to_boolean_select_tag() method
186     *  @todo Implement this test
187     */
188    public function testTo_boolean_select_tag_method() {
189        // Remove the following line when you implement this test.
190        throw new PHPUnit2_Framework_IncompleteTestError;
191    }
192
193    /**
194     *  Test to_boolean_select_tag() function
195     *  @todo Implement this test
196     */
197    public function testTo_boolean_select_tag_function() {
198        // Remove the following line when you implement this test.
199        throw new PHPUnit2_Framework_IncompleteTestError;
200    }
201
202    /**
203     *  Test to_check_box_tag() method
204     *  @todo Implement this test
205     */
206    public function testTo_check_box_tag_method() {
207        // Remove the following line when you implement this test.
208        throw new PHPUnit2_Framework_IncompleteTestError;
209    }
210
211    /**
212     *  Test to_check_box_tag() function
213     *  @todo Implement this test
214     */
215    public function testTo_check_box_tag_function() {
216        // Remove the following line when you implement this test.
217        throw new PHPUnit2_Framework_IncompleteTestError;
218    }
219
220    /**
221     *  Test to_input_field_tag() method
222     *  @todo Implement this test
223     */
224    public function testTo_input_field_tag_method() {
225        // Remove the following line when you implement this test.
226        throw new PHPUnit2_Framework_IncompleteTestError;
227    }
228
229    /**
230     *  Test to_input_field_tag() function
231     *  @todo Implement this test
232     */
233    public function testTo_input_field_tag_function() {
234        // Remove the following line when you implement this test.
235        throw new PHPUnit2_Framework_IncompleteTestError;
236    }
237
238    /**
239     *  Test to_radio_button_tag() method
240     *  @todo Implement this test
241     */
242    public function testTo_radio_button_tag_method() {
243        // Remove the following line when you implement this test.
244        throw new PHPUnit2_Framework_IncompleteTestError;
245    }
246
247    /**
248     *  Test to_radio_button_tag() function
249     *  @todo Implement this test
250     */
251    public function testTo_radio_button_tag_function() {
252        // Remove the following line when you implement this test.
253        throw new PHPUnit2_Framework_IncompleteTestError;
254    }
255
256    /**
257     *  Test to_text_area_tag() method
258     *  @todo Implement this test
259     */
260    public function testTo_text_area_tag_method() {
261        // Remove the following line when you implement this test.
262        throw new PHPUnit2_Framework_IncompleteTestError;
263    }
264
265    /**
266     *  Test to_text_area_tag() function
267     *  @todo Implement this test
268     */
269    public function testTo_text_area_tag_function() {
270        // Remove the following line when you implement this test.
271        throw new PHPUnit2_Framework_IncompleteTestError;
272    }
273
274
275}
276
277// Call FormHelperTest::main() if this source file is executed directly.
278if (PHPUnit2_MAIN_METHOD == "FormHelperTest::main") {
279    FormHelperTest::main();
280}
281
282// -- set Emacs parameters --
283// Local variables:
284// tab-width: 4
285// c-basic-offset: 4
286// c-hanging-comment-ender-p: nil
287// indent-tabs-mode: nil
288// End:
289?>
Note: See TracBrowser for help on using the browser.