|
@ -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() |
|
|
{ |
|
|
{ |
|
|