Browse Source

path2

master
Ilya Sigunov 13 years ago
parent
commit
19916410cc
  1. 6
      tests/form/FormFieldTest.php
  2. 6
      tests/form/FormTest.php

6
tests/form/FormFieldTest.php

@ -22,7 +22,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase
{ {
public function setUp() public function setUp()
{ {
$this->ff = new NotEmptyForm;
$this->ff = new NotEmptyFormField;
$this->obj_fields = $this->ff->getProp('fields'); $this->obj_fields = $this->ff->getProp('fields');
} }
@ -127,7 +127,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase
public function testGetValueArray() public function testGetValueArray()
{ {
$form = new NotEmptyForm();
$form = new NotEmptyFormField();
$test_array = array( $test_array = array(
'login'=> 'login', 'login'=> 'login',
@ -215,7 +215,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase
class NotEmptyForm extends Form
class NotEmptyFormField extends Form
{ {
public function init() public function init()
{ {

6
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 class NotEmptyForm extends Form
{ {

Loading…
Cancel
Save