[ Index ] |
|
Code source de PHPonTrax 2.6.6-svn |
1 <?php 2 /** 3 * File for the SessionTest 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: SessionTest.php 192 2006-03-27 22:02:53Z haas $ 11 * @author Walt Haas <haas@xmission.com> 12 */ 13 14 echo "testing Session\n"; 15 require_once 'testenv.php'; 16 17 // Call SessionTest::main() if this source file is executed directly. 18 if (!defined("PHPUnit2_MAIN_METHOD")) { 19 define("PHPUnit2_MAIN_METHOD", "SessionTest::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 "session.php"; 29 30 /** 31 * Test class for Session. 32 */ 33 class SessionTest extends PHPUnit2_Framework_TestCase { 34 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("SessionTest"); 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 testGet() 68 */ 69 public function testGet() { 70 // Remove the following line when you complete this test. 71 throw new PHPUnit2_Framework_IncompleteTestError; 72 } 73 74 /** 75 * @todo Implement testSet() 76 */ 77 public function testSet() { 78 // Remove the following line when you complete this test. 79 throw new PHPUnit2_Framework_IncompleteTestError; 80 } 81 82 /** 83 * @todo Implement testIs_valid_host() 84 */ 85 public function testIs_valid_host() { 86 // Remove the following line when you complete this test. 87 throw new PHPUnit2_Framework_IncompleteTestError; 88 } 89 90 /** 91 * @todo Implement testIs_aol_host() 92 */ 93 public function testIs_aol_host() { 94 // Remove the following line when you complete this test. 95 throw new PHPUnit2_Framework_IncompleteTestError; 96 } 97 98 /** 99 * @todo Implement testGet_hash() 100 */ 101 public function testGet_hash() { 102 // Remove the following line when you complete this test. 103 throw new PHPUnit2_Framework_IncompleteTestError; 104 } 105 106 /** 107 * @todo Implement testStart() 108 */ 109 public function testStart() { 110 // Remove the following line when you complete this test. 111 throw new PHPUnit2_Framework_IncompleteTestError; 112 } 113 114 /** 115 * @todo Implement testDestroy_session() 116 */ 117 public function testDestroy_session() { 118 // Remove the following line when you complete this test. 119 throw new PHPUnit2_Framework_IncompleteTestError; 120 } 121 122 /** 123 * @todo Implement testUnset_session() 124 */ 125 public function testUnset_session() { 126 // Remove the following line when you complete this test. 127 throw new PHPUnit2_Framework_IncompleteTestError; 128 } 129 130 /** 131 * @todo Implement testUnset_var() 132 */ 133 public function testUnset_var() { 134 // Remove the following line when you complete this test. 135 throw new PHPUnit2_Framework_IncompleteTestError; 136 } 137 138 /** 139 * @todo Implement testIsset_var() 140 */ 141 public function testIsset_var() { 142 // Remove the following line when you complete this test. 143 throw new PHPUnit2_Framework_IncompleteTestError; 144 } 145 146 /** 147 * @todo Implement testIsset_flash() 148 */ 149 public function testIsset_flash() { 150 // Remove the following line when you complete this test. 151 throw new PHPUnit2_Framework_IncompleteTestError; 152 } 153 } 154 155 // Call SessionTest::main() if this source file is executed directly. 156 if (PHPUnit2_MAIN_METHOD == "SessionTest::main") { 157 SessionTest::main(); 158 } 159 160 // -- set Emacs parameters -- 161 // Local variables: 162 // tab-width: 4 163 // c-basic-offset: 4 164 // c-hanging-comment-ender-p: nil 165 // indent-tabs-mode: nil 166 // End: 167 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 20:04:38 2007 | par Balluche grâce à PHPXref 0.7 |