Changeset 468 for trunk/tests/LockTest.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/LockTest.php
r396 r468 30 30 * Created with PHPUnit_Skeleton on 2005-08-09 31 31 */ 32 require_once 'PHPUnit.php'; 33 class LockTest extends PHPUnit_ TestCase {32 33 class LockTest extends PHPUnit_Framework_TestCase { 34 34 35 35 var $Lock; 36 36 var $Auth_SQL; 37 38 function LockTest($name)39 {40 $this->PHPUnit_TestCase($name);41 }42 37 43 38 function setUp() … … 47 42 require_once '../lib/Auth_SQL.inc.php'; 48 43 49 $this->Auth_SQL = &new Auth_SQL('test');44 $this->Auth_SQL = new Auth_SQL('test'); 50 45 $this->Auth_SQL->setParam(array( 51 46 'db_table' => 'test_user_tbl', … … 208 203 { 209 204 $result = $this->Lock->getsecondselapsed(); 210 $this->assert Type('integer', $result);205 $this->assertInternalType('integer', $result); 211 206 } 212 207 213 208 } 214 // Running the test.215 $suite = new PHPUnit_TestSuite('LockTest');216 $result = PHPUnit::run($suite);217 echo $result->toString();218 ?>
Note: See TracChangeset
for help on using the changeset viewer.