| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
echo "testing FormTagHelper\n"; |
|---|
| 15 |
require_once 'testenv.php'; |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
if (!defined("PHPUnit2_MAIN_METHOD")) { |
|---|
| 19 |
define("PHPUnit2_MAIN_METHOD", "FormTagHelperTest::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_view/helpers.php"; |
|---|
| 29 |
require_once "action_view/helpers/form_helper.php"; |
|---|
| 30 |
require_once "action_view/helpers/form_options_helper.php"; |
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
class FormTagHelperTest extends PHPUnit2_Framework_TestCase { |
|---|
| 37 |
|
|---|
| 38 |
* Runs the test methods of this class. |
|---|
| 39 |
* |
|---|
| 40 |
* @access public |
|---|
| 41 |
* @static |
|---|
| 42 |
*/ |
|---|
| 43 |
public static function main() { |
|---|
| 44 |
require_once "PHPUnit2/TextUI/TestRunner.php"; |
|---|
| 45 |
|
|---|
| 46 |
$suite = new PHPUnit2_Framework_TestSuite("FormTagHelperTest"); |
|---|
| 47 |
$result = PHPUnit2_TextUI_TestRunner::run($suite); |
|---|
| 48 |
} |
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
* Sets up the fixture, for example, open a network connection. |
|---|
| 52 |
* This method is called before a test is executed. |
|---|
| 53 |
* |
|---|
| 54 |
* @access protected |
|---|
| 55 |
*/ |
|---|
| 56 |
protected function setUp() { |
|---|
| 57 |
} |
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
* Tears down the fixture, for example, close a network connection. |
|---|
| 61 |
* This method is called after a test is executed. |
|---|
| 62 |
* |
|---|
| 63 |
* @access protected |
|---|
| 64 |
*/ |
|---|
| 65 |
protected function tearDown() { |
|---|
| 66 |
} |
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 |
* Empty test to prevent failure |
|---|
| 70 |
* @todo Write test for the FormTagHelper class |
|---|
| 71 |
*/ |
|---|
| 72 |
public function testEmpty() { |
|---|
| 73 |
} |
|---|
| 74 |
} |
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 |
if (PHPUnit2_MAIN_METHOD == "FormTagHelperTest::main") { |
|---|
| 78 |
FormTagHelperTest::main(); |
|---|
| 79 |
} |
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 |
?> |
|---|
| 89 |
|
|---|