Changeset 442 for branches/eli_branch/tests/FormValidatorTest.php
- Timestamp:
- Dec 6, 2013 7:17:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch/tests/FormValidatorTest.php
r438 r442 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();
Note: See TracChangeset
for help on using the changeset viewer.