Changeset 468 for trunk/tests/FormValidatorTest.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/FormValidatorTest.php
r396 r468 30 30 * Created with PHPUnit_Skeleton on 2005-08-09 31 31 */ 32 require_once 'PHPUnit.php'; 33 class FormValidatorTest extends PHPUnit_ TestCase {32 33 class FormValidatorTest extends PHPUnit_Framework_TestCase { 34 34 35 35 var $FormValidator; 36 37 function FormValidatorTest($name)38 {39 $this->PHPUnit_TestCase($name);40 }41 36 42 37 function setUp() … … 44 39 require dirname(__FILE__) . '/_config.inc.php'; 45 40 require_once '../lib/FormValidator.inc.php'; 46 $this->FormValidator = &new FormValidator();41 $this->FormValidator = new FormValidator(); 47 42 } 48 43 … … 294 289 295 290 } 296 // Running the test.297 $suite = new PHPUnit_TestSuite('FormValidatorTest');298 $result = PHPUnit::run($suite);299 echo $result->toString();300 ?>
Note: See TracChangeset
for help on using the changeset viewer.