fixing testunits for gulliver classes
This commit is contained in:
@@ -15,9 +15,11 @@
|
||||
<testsuite name="automated">
|
||||
<directory>./tests/automated/</directory>
|
||||
</testsuite>
|
||||
<!--
|
||||
<testsuite name="unit">
|
||||
<directory>./tests/unit/</directory>
|
||||
</testsuite>
|
||||
-->
|
||||
</testsuites>
|
||||
|
||||
<!-- <filter>
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -71,7 +73,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::validateValue
|
||||
@@ -86,7 +88,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::executeSQL
|
||||
@@ -105,7 +107,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::htmlentities
|
||||
@@ -128,7 +130,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'utf-8');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::render
|
||||
@@ -144,7 +146,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::renderGrid
|
||||
@@ -172,7 +174,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '-1');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::renderTable
|
||||
@@ -196,7 +198,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::dependentOf
|
||||
@@ -208,7 +210,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('dependentOf', $methods ), 'exists method dependentOf' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'dependentOf');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::mask
|
||||
@@ -226,7 +228,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getAttributes
|
||||
@@ -238,7 +240,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('getAttributes', $methods ), 'exists method getAttributes' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'getAttributes');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getEvents
|
||||
@@ -250,7 +252,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('getEvents', $methods ), 'exists method getEvents' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'getEvents');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::attachEvents
|
||||
@@ -265,7 +267,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'elementRef');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::createXmlNode
|
||||
@@ -281,7 +283,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::updateXmlNode
|
||||
@@ -300,7 +302,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getXmlAttributes
|
||||
@@ -316,7 +318,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::maskValue
|
||||
@@ -334,7 +336,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::cloneObject
|
||||
@@ -346,7 +348,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'cloneObject');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getPMTableValue
|
||||
@@ -361,7 +363,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'oOwner');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSRequiredValue
|
||||
@@ -377,7 +379,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSGridLabel
|
||||
@@ -393,7 +395,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSDefaultValue
|
||||
@@ -409,7 +411,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSGridType
|
||||
@@ -425,7 +427,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSDependentFields
|
||||
@@ -441,7 +443,7 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::renderHint
|
||||
@@ -453,6 +455,6 @@ class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('renderHint', $methods ), 'exists method renderHint' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'renderHint');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Button();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Button($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -64,6 +66,6 @@ class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_CaptionCurrency();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_CaptionCurrency($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -60,6 +62,6 @@ class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCas
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_CaptionPercentage();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_CaptionPercentage($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCas
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -60,6 +62,6 @@ class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCas
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Caption();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Caption($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -62,7 +64,7 @@ class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Caption::render
|
||||
@@ -98,6 +100,6 @@ class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '-1');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_CheckGroup();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_CheckGroup($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -64,6 +66,6 @@ class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_CheckGroupView();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_CheckGroupView($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -60,6 +62,6 @@ class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Checkbox2();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Checkbox2($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -60,6 +62,6 @@ class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Checkbox();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Checkbox($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -64,7 +66,7 @@ class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkbox::renderGrid
|
||||
@@ -82,7 +84,7 @@ class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkbox::maskValue
|
||||
@@ -100,6 +102,6 @@ class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Checkboxpt();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Checkboxpt($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -64,7 +66,7 @@ class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkboxpt::renderGrid
|
||||
@@ -82,7 +84,7 @@ class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkboxpt::maskValue
|
||||
@@ -100,6 +102,6 @@ class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Currency();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Currency($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -64,7 +66,7 @@ class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Currency::renderGrid
|
||||
@@ -82,6 +84,6 @@ class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_DVEditor();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_DVEditor($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -63,7 +65,7 @@ class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_DVEditor::attachEvents
|
||||
@@ -78,6 +80,6 @@ class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'element');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Date2();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Date2($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -59,7 +61,7 @@ class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::isvalidBeforeFormat
|
||||
@@ -74,7 +76,7 @@ class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::calculateBeforeFormat
|
||||
@@ -92,7 +94,7 @@ class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'sign');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::render
|
||||
@@ -112,7 +114,7 @@ class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::renderGrid
|
||||
@@ -136,6 +138,6 @@ class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Date5();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Date5($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -63,7 +65,7 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::isvalidBeforeFormat
|
||||
@@ -78,7 +80,7 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::calculateBeforeFormat
|
||||
@@ -96,7 +98,7 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'sign');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::render
|
||||
@@ -116,7 +118,7 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::renderGrid
|
||||
@@ -140,7 +142,7 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::__draw_widget
|
||||
@@ -162,7 +164,7 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::getSplitDate
|
||||
@@ -180,6 +182,6 @@ class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'mask');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Date();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Date($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -59,7 +61,7 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::isvalidBeforeFormat
|
||||
@@ -74,7 +76,7 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::calculateBeforeFormat
|
||||
@@ -92,7 +94,7 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'sign');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::render
|
||||
@@ -112,7 +114,7 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::renderGrid
|
||||
@@ -136,7 +138,7 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::__draw_widget
|
||||
@@ -158,6 +160,6 @@ class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_DateViewTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_DateView();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_DateView($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_DateViewTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -60,6 +62,6 @@ class classXmlForm_Field_DateViewTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Dropdown();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Dropdown($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -62,7 +64,7 @@ class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Dropdown::render
|
||||
@@ -98,7 +100,7 @@ class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '-1');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Dropdown::renderGrid
|
||||
@@ -126,6 +128,6 @@ class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '-1');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Dropdownpt();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Dropdownpt($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -64,7 +66,7 @@ class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Dropdownpt::maskValue
|
||||
@@ -82,6 +84,6 @@ class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_FastSearchTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_FastSearch();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_FastSearch($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_FastSearchTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -46,4 +48,4 @@ class classXmlForm_Field_FastSearchTest extends PHPUnit_Framework_TestCase
|
||||
$methods = get_class_methods('XmlForm_Field_FastSearch'); $this->assertTrue( count($methods) == 24);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_FileTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_File();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_File($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_FileTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -60,6 +62,6 @@ class classXmlForm_Field_FileTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Grid();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Grid($fieldNode,'param', 'param');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -65,7 +67,7 @@ class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->getName() == 'home');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::parseFile
|
||||
@@ -83,7 +85,7 @@ class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'language');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::render
|
||||
@@ -102,7 +104,7 @@ class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::renderGrid
|
||||
@@ -125,7 +127,7 @@ class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '-1');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::flipValues
|
||||
@@ -140,6 +142,6 @@ class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_HTML();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_HTML($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -63,7 +65,7 @@ class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_HTML::attachEvents
|
||||
@@ -78,6 +80,6 @@ class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'element');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Hidden();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Hidden($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -62,7 +64,7 @@ class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Hidden::renderGrid
|
||||
@@ -80,7 +82,7 @@ class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Hidden::renderTable
|
||||
@@ -98,6 +100,6 @@ class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_ImageTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Image();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Image($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_ImageTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -63,6 +65,6 @@ class classXmlForm_Field_ImageTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_JavaScript();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_JavaScript($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -67,7 +69,7 @@ class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_JavaScript::render
|
||||
@@ -87,7 +89,7 @@ class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_JavaScript::renderGrid
|
||||
@@ -105,7 +107,7 @@ class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_JavaScript::validateValue
|
||||
@@ -120,6 +122,6 @@ class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_LabelTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Label();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Label($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_LabelTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -46,4 +48,4 @@ class classXmlForm_Field_LabelTest extends PHPUnit_Framework_TestCase
|
||||
$methods = get_class_methods('XmlForm_Field_Label'); $this->assertTrue( count($methods) == 24);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Link();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Link($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -64,7 +66,7 @@ class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Link::renderGrid
|
||||
@@ -79,12 +81,12 @@ class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == Array());
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Link::renderTable
|
||||
@@ -104,6 +106,6 @@ class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Listbox();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Listbox($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -62,7 +64,7 @@ class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Listbox::render
|
||||
@@ -82,7 +84,7 @@ class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Listbox::renderGrid
|
||||
@@ -102,6 +104,6 @@ class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ class classXmlForm_Field_PasswordTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XmlForm_Field_Password();
|
||||
$attributes = array('type'=>'input');
|
||||
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
|
||||
$this->object = new XmlForm_Field_Password($fieldNode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class classXmlForm_Field_PasswordTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
@@ -60,6 +62,6 @@ class classXmlForm_Field_PasswordTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user