Changeset 468 for trunk/tests/VersionTest.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/VersionTest.php
r396 r468 30 30 * Created with PHPUnit_Skeleton on 2005-08-09 31 31 */ 32 require_once 'PHPUnit.php'; 33 class VersionTest extends PHPUnit_ TestCase {32 33 class VersionTest extends PHPUnit_Framework_TestCase { 34 34 35 35 var $Version; 36 36 var $Auth_SQL; 37 38 function VersionTest($name)39 {40 $this->PHPUnit_TestCase($name);41 }42 37 43 38 function setUp() … … 47 42 48 43 require_once '../lib/Auth_SQL.inc.php'; 49 $this->Auth_SQL = &new Auth_SQL('testauth');44 $this->Auth_SQL = new Auth_SQL('testauth'); 50 45 $this->Auth_SQL->setParam(array( 51 46 'db_table' => 'test_user_tbl', … … 116 111 { 117 112 $result = $this->Version->create('test_user_tbl', 'user_id', '1', 'Test User', 'First version of user'); 118 $this->assert True($result);113 $this->assertSame(1, $result); 119 114 } 120 115 … … 190 185 191 186 } 192 // Running the test.193 $suite = new PHPUnit_TestSuite('VersionTest');194 $result = PHPUnit::run($suite);195 echo $result->toString();196 ?>
Note: See TracChangeset
for help on using the changeset viewer.