From 19916410cc7ba558776a8d874e9186c6f6955fb2 Mon Sep 17 00:00:00 2001 From: Ilya Sigunov Date: Thu, 20 Oct 2011 13:35:54 +0400 Subject: [PATCH] path2 --- tests/form/FormFieldTest.php | 6 +++--- tests/form/FormTest.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 {