Changeset 468 for trunk/tests/DBSessionHandlerTest.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/tests/DBSessionHandlerTest.php
r396 r468 4 4 * For details visit the project site: <http://trac.strangecode.com/codebase/> 5 5 * Copyright 2001-2012 Strangecode, LLC 6 * 6 * 7 7 * This file is part of The Strangecode Codebase. 8 8 * … … 11 11 * Free Software Foundation, either version 3 of the License, or (at your option) 12 12 * any later version. 13 * 13 * 14 14 * The Strangecode Codebase is distributed in the hope that it will be useful, but 15 15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 17 * details. 18 * 18 * 19 19 * You should have received a copy of the GNU General Public License along with 20 20 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. … … 30 30 * Created with PHPUnit_Skeleton on 2005-08-09 31 31 */ 32 require_once 'PHPUnit.php'; 33 class DBSessionHandlerTest extends PHPUnit_ TestCase {32 33 class DBSessionHandlerTest extends PHPUnit_Framework_TestCase { 34 34 35 35 var $DBSessionHandler; 36 37 function DBSessionHandlerTest($name)38 {39 $this->PHPUnit_TestCase($name);40 }41 36 42 37 function setUp() … … 73 68 function test_DBsessionwrite() 74 69 { 70 if (!isset($_SESSION)) { 71 $_SESSION = array(); 72 } 75 73 $this->DBSessionHandler->DBsessionwrite(session_id(), serialize($_SESSION)); 76 74 } … … 87 85 88 86 } 89 // Running the test.90 $suite = new PHPUnit_TestSuite('DBSessionHandlerTest');91 $result = PHPUnit::run($suite);92 echo $result->toString();93 ?>
Note: See TracChangeset
for help on using the changeset viewer.