diff --git a/tests/form/FormFieldTest.php b/tests/form/FormFieldTest.php index f578d0b..ce765e9 100644 --- a/tests/form/FormFieldTest.php +++ b/tests/form/FormFieldTest.php @@ -22,7 +22,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->ff = new NotEmptyForm; + $this->ff = new NotEmptyFormField; $this->obj_fields = $this->ff->getProp('fields'); } @@ -127,7 +127,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase public function testGetValueArray() { - $form = new NotEmptyForm(); + $form = new NotEmptyFormField(); $test_array = array( 'login'=> 'login', @@ -215,7 +215,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase -class NotEmptyForm extends Form +class NotEmptyFormField extends Form { public function init() { diff --git a/tests/form/FormTest.php b/tests/form/FormTest.php index 8be8641..4387c7d 100644 --- a/tests/form/FormTest.php +++ b/tests/form/FormTest.php @@ -229,9 +229,9 @@ class FormTest extends PHPUnit_Framework_TestCase } } -require_once '/var/www/majesticV/lib/core/validator/iValidator.php'; -require_once '/var/www/majesticV/lib/core/validator/Validator.php'; -require_once '/var/www/majesticV/lib/core/validator/NotEmptyValidator.php'; +require_once dirname(__FILE__) . '/../../validator/iValidator.php'; +require_once dirname(__FILE__) . '/../../validator/Validator.php'; +require_once dirname(__FILE__) . '/../../validator/NotEmptyValidator.php'; class NotEmptyForm extends Form {