- <?php
- /**
- * File for the DispatcherTest class
- *
- * (PHP 5)
- *
- * @package PHPonTraxTest
- * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- * @copyright (c) Walter O. Haas 2006
- * @version $Id: DispatcherTest.php 192 2006-03-27 22:02:53Z haas $
- * @author Walt Haas <haas@xmission.com>
- */
-
- echo "testing Dispatcher\n";
- require_once 'testenv.php';
-
- // Call DispatcherTest::main() if this source file is executed directly.
- if (!defined("PHPUnit2_MAIN_METHOD")) {
- define("PHPUnit2_MAIN_METHOD", "DispatcherTest::main");
- }
-
- require_once "PHPUnit2/Framework/TestCase.php";
- require_once "PHPUnit2/Framework/TestSuite.php";
-
- // You may remove the following line when all tests have been implemented.
- require_once "PHPUnit2/Framework/IncompleteTestError.php";
-
- require_once "dispatcher.php";
-
- /**
- * Test class for Dispatcher.
- * Generated by PHPUnit2_Util_Skeleton on 2006-03-01 at 15:18:47.
- */
- class DispatcherTest extends PHPUnit2_Framework_TestCase {
- /**
- * Runs the test methods of this class.
- *
- * @access public
- * @static
- */
- public static function main() {
- require_once "PHPUnit2/TextUI/TestRunner.php";
-
- $suite = new PHPUnit2_Framework_TestSuite("DispatcherTest");
- $result = PHPUnit2_TextUI_TestRunner::run($suite);
- }
-
- /**
- * Sets up the fixture, for example, open a network connection.
- * This method is called before a test is executed.
- *
- * @access protected
- */
- protected function setUp() {
- }
-
- /**
- * Tears down the fixture, for example, close a network connection.
- * This method is called after a test is executed.
- *
- * @access protected
- */
- protected function tearDown() {
- }
-
- /**
- * @todo Implement testDispatch().
- */
- public function testDispatch() {
- // Remove the following line when you implement this test.
- throw new PHPUnit2_Framework_IncompleteTestError;
- }
- }
-
- // Call DispatcherTest::main() if this source file is executed directly.
- if (PHPUnit2_MAIN_METHOD == "DispatcherTest::main") {
- DispatcherTest::main();
- }
-
- // -- set Emacs parameters --
- // Local variables:
- // tab-width: 4
- // c-basic-offset: 4
- // c-hanging-comment-ender-p: nil
- // indent-tabs-mode: nil
- // End:
- ?>