This commit is contained in:
Paula Quispe
2017-07-24 12:13:43 -04:00
parent 7c4df26889
commit 95b7ede4e8
381 changed files with 0 additions and 66414 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,210 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbtable.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:22.
*/
class classDBTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var DBTable
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new DBTable();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('DBTable'); $this->assertTrue( count($methods) == 11);
}
/**
* @covers DBTable::dBTable
* @todo Implement testdBTable().
*/
public function testdBTable()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('dBTable', $methods ), 'exists method dBTable' );
$r = new ReflectionMethod('DBTable', 'dBTable');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'objConnection');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'strTable');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'arrKeys');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == array( 'UID' ));
}
/**
* @covers DBTable::setTo
* @todo Implement testsetTo().
*/
public function testsetTo()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setTo', $methods ), 'exists method setTo' );
$r = new ReflectionMethod('DBTable', 'setTo');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'objDBConnection');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'strTable');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'arrKeys');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == array( 'UID' ));
}
/**
* @covers DBTable::loadEmpty
* @todo Implement testloadEmpty().
*/
public function testloadEmpty()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('loadEmpty', $methods ), 'exists method loadEmpty' );
$r = new ReflectionMethod('DBTable', 'loadEmpty');
$params = $r->getParameters();
}
/**
* @covers DBTable::loadWhere
* @todo Implement testloadWhere().
*/
public function testloadWhere()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('loadWhere', $methods ), 'exists method loadWhere' );
$r = new ReflectionMethod('DBTable', 'loadWhere');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strWhere');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers DBTable::load
* @todo Implement testload().
*/
public function testload()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('DBTable', 'load');
$params = $r->getParameters();
}
/**
* @covers DBTable::nextvalPGSql
* @todo Implement testnextvalPGSql().
*/
public function testnextvalPGSql()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('nextvalPGSql', $methods ), 'exists method nextvalPGSql' );
$r = new ReflectionMethod('DBTable', 'nextvalPGSql');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'seq');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers DBTable::insert
* @todo Implement testinsert().
*/
public function testinsert()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('insert', $methods ), 'exists method insert' );
$r = new ReflectionMethod('DBTable', 'insert');
$params = $r->getParameters();
}
/**
* @covers DBTable::update
* @todo Implement testupdate().
*/
public function testupdate()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('update', $methods ), 'exists method update' );
$r = new ReflectionMethod('DBTable', 'update');
$params = $r->getParameters();
}
/**
* @covers DBTable::save
* @todo Implement testsave().
*/
public function testsave()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
$r = new ReflectionMethod('DBTable', 'save');
$params = $r->getParameters();
}
/**
* @covers DBTable::delete
* @todo Implement testdelete().
*/
public function testdelete()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
$r = new ReflectionMethod('DBTable', 'delete');
$params = $r->getParameters();
}
/**
* @covers DBTable::next
* @todo Implement testnext().
*/
public function testnext()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('next', $methods ), 'exists method next' );
$r = new ReflectionMethod('DBTable', 'next');
$params = $r->getParameters();
}
}

View File

@@ -1,242 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:22.
*/
class classFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var Form
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$file='login/login';
$home=PATH_TRUNK . 'workflow/engine/xmlform/';
$this->object = new Form($file, $home);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Form'); $this->assertTrue( count($methods) == 13);
}
/**
* @covers Form::setDefaultValues
* @todo Implement testsetDefaultValues().
*/
public function testsetDefaultValues()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setDefaultValues', $methods ), 'exists method setDefaultValues' );
$r = new ReflectionMethod('Form', 'setDefaultValues');
$params = $r->getParameters();
}
/**
* @covers Form::Form
* @todo Implement testForm().
*/
public function testForm()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Form', $methods ), 'exists method Form' );
$r = new ReflectionMethod('Form', 'Form');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'filename');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'home');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'language');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'forceParse');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'visual_frontend');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
}
/**
* @covers Form::printTemplate
* @todo Implement testprintTemplate().
*/
public function testprintTemplate()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' );
$r = new ReflectionMethod('Form', 'printTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'template');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'scriptContent');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
/**
* @covers Form::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('Form', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'template');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'scriptContent');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
/**
* @covers Form::setValues
* @todo Implement testsetValues().
*/
public function testsetValues()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' );
$r = new ReflectionMethod('Form', 'setValues');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'newValues');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == array());
}
/**
* @covers Form::getFields
* @todo Implement testgetFields().
*/
public function testgetFields()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
$r = new ReflectionMethod('Form', 'getFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'template');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'therow');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
}
/**
* @covers Form::validatePost
* @todo Implement testvalidatePost().
*/
public function testvalidatePost()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validatePost', $methods ), 'exists method validatePost' );
$r = new ReflectionMethod('Form', 'validatePost');
$params = $r->getParameters();
}
/**
* @covers Form::validateArray
* @todo Implement testvalidateArray().
*/
public function testvalidateArray()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateArray', $methods ), 'exists method validateArray' );
$r = new ReflectionMethod('Form', 'validateArray');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'newValues');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Form::getVars
* @todo Implement testgetVars().
*/
public function testgetVars()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' );
$r = new ReflectionMethod('Form', 'getVars');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'bWhitSystemVars');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '1');
}
/**
* @covers Form::validateRequiredFields
* @todo Implement testvalidateRequiredFields().
*/
public function testvalidateRequiredFields()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateRequiredFields', $methods ), 'exists method validateRequiredFields' );
$r = new ReflectionMethod('Form', 'validateRequiredFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dataFields');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'noRequired');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == array());
}
/**
* @covers Form::validateFields
* @todo Implement testvalidateFields().
*/
public function testvalidateFields()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateFields', $methods ), 'exists method validateFields' );
$r = new ReflectionMethod('Form', 'validateFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'data');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,92 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.error.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classG_ErrorTest extends PHPUnit_Framework_TestCase
{
/**
* @var G_Error
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new G_Error();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('G_Error'); $this->assertTrue( count($methods) == 13);
}
/**
* @covers G_Error::G_Error
* @todo Implement testG_Error().
*/
public function testG_Error()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('G_Error', $methods ), 'exists method G_Error' );
$r = new ReflectionMethod('G_Error', 'G_Error');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'code');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '-100');
$this->assertTrue( $params[1]->getName() == 'mode');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '1');
$this->assertTrue( $params[2]->getName() == 'level');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '1024');
$this->assertTrue( $params[3]->getName() == 'debuginfo');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
}
/**
* @covers G_Error::errorMessage
* @todo Implement testerrorMessage().
*/
public function testerrorMessage()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('errorMessage', $methods ), 'exists method errorMessage' );
$r = new ReflectionMethod('G_Error', 'errorMessage');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'code');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
}

View File

@@ -1,158 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.helper.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:22.
*/
class classHelperTest extends PHPUnit_Framework_TestCase
{
/**
* @var Helper
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new Helper();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Helper'); $this->assertTrue( count($methods) == 8);
}
/**
* @covers Helper::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('Helper', '__construct');
$params = $r->getParameters();
}
/**
* @covers Helper::addFile
* @todo Implement testaddFile().
*/
public function testaddFile()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addFile', $methods ), 'exists method addFile' );
$r = new ReflectionMethod('Helper', 'addFile');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'file');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Helper::addContent
* @todo Implement testaddContent().
*/
public function testaddContent()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addContent', $methods ), 'exists method addContent' );
$r = new ReflectionMethod('Helper', 'addContent');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'content');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Helper::setContentType
* @todo Implement testsetContentType().
*/
public function testsetContentType()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' );
$r = new ReflectionMethod('Helper', 'setContentType');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'ctype');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Helper::init
* @todo Implement testinit().
*/
public function testinit()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('init', $methods ), 'exists method init' );
$r = new ReflectionMethod('Helper', 'init');
$params = $r->getParameters();
}
/**
* @covers Helper::minify
* @todo Implement testminify().
*/
public function testminify()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('minify', $methods ), 'exists method minify' );
$r = new ReflectionMethod('Helper', 'minify');
$params = $r->getParameters();
}
/**
* @covers Helper::flush
* @todo Implement testflush().
*/
public function testflush()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('flush', $methods ), 'exists method flush' );
$r = new ReflectionMethod('Helper', 'flush');
$params = $r->getParameters();
}
/**
* @covers Helper::serve
* @todo Implement testserve().
*/
public function testserve()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('serve', $methods ), 'exists method serve' );
$r = new ReflectionMethod('Helper', 'serve');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'type');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
}
}

View File

@@ -1,172 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.httpProxyController.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classHttpProxyControllerTest extends PHPUnit_Framework_TestCase
{
/**
* @var HttpProxyController
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new HttpProxyController();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('HttpProxyController'); $this->assertTrue( count($methods) == 9);
}
/**
* @covers HttpProxyController::__set
* @todo Implement test__set().
*/
public function test__set()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__set', $methods ), 'exists method __set' );
$r = new ReflectionMethod('HttpProxyController', '__set');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'value');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
/**
* @covers HttpProxyController::__get
* @todo Implement test__get().
*/
public function test__get()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__get', $methods ), 'exists method __get' );
$r = new ReflectionMethod('HttpProxyController', '__get');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers HttpProxyController::__isset
* @todo Implement test__isset().
*/
public function test__isset()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' );
$r = new ReflectionMethod('HttpProxyController', '__isset');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers HttpProxyController::__unset
* @todo Implement test__unset().
*/
public function test__unset()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' );
$r = new ReflectionMethod('HttpProxyController', '__unset');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers HttpProxyController::call
* @todo Implement testcall().
*/
public function testcall()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('call', $methods ), 'exists method call' );
$r = new ReflectionMethod('HttpProxyController', 'call');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers HttpProxyController::setHttpRequestData
* @todo Implement testsetHttpRequestData().
*/
public function testsetHttpRequestData()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' );
$r = new ReflectionMethod('HttpProxyController', 'setHttpRequestData');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'data');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers HttpProxyController::setJsonResponse
* @todo Implement testsetJsonResponse().
*/
public function testsetJsonResponse()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setJsonResponse', $methods ), 'exists method setJsonResponse' );
$r = new ReflectionMethod('HttpProxyController', 'setJsonResponse');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'bool');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers HttpProxyController::setSendResponse
* @todo Implement testsetSendResponse().
*/
public function testsetSendResponse()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setSendResponse', $methods ), 'exists method setSendResponse' );
$r = new ReflectionMethod('HttpProxyController', 'setSendResponse');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'val');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
}

View File

@@ -1,270 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.menu.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classMenuTest extends PHPUnit_Framework_TestCase
{
/**
* @var Menu
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new Menu();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Menu'); $this->assertTrue( count($methods) == 11);
}
/**
* @covers Menu::SetClass
* @todo Implement testSetClass().
*/
public function testSetClass()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('SetClass', $methods ), 'exists method SetClass' );
$r = new ReflectionMethod('Menu', 'SetClass');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strClass');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'mnu');
}
/**
* @covers Menu::Load
* @todo Implement testLoad().
*/
public function testLoad()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Load', $methods ), 'exists method Load' );
$r = new ReflectionMethod('Menu', 'Load');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strMenuName');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Menu::OptionCount
* @todo Implement testOptionCount().
*/
public function testOptionCount()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('OptionCount', $methods ), 'exists method OptionCount' );
$r = new ReflectionMethod('Menu', 'OptionCount');
$params = $r->getParameters();
}
/**
* @covers Menu::AddOption
* @todo Implement testAddOption().
*/
public function testAddOption()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddOption', $methods ), 'exists method AddOption' );
$r = new ReflectionMethod('Menu', 'AddOption');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strLabel');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'strURL');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'strType');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'plugins');
}
/**
* @covers Menu::AddIdOption
* @todo Implement testAddIdOption().
*/
public function testAddIdOption()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddIdOption', $methods ), 'exists method AddIdOption' );
$r = new ReflectionMethod('Menu', 'AddIdOption');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strId');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'strLabel');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'strURL');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'strType');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == 'plugins');
}
/**
* @covers Menu::AddRawOption
* @todo Implement testAddRawOption().
*/
public function testAddRawOption()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddRawOption', $methods ), 'exists method AddRawOption' );
$r = new ReflectionMethod('Menu', 'AddRawOption');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strURL');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'strType');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'plugins');
}
/**
* @covers Menu::AddIdRawOption
* @todo Implement testAddIdRawOption().
*/
public function testAddIdRawOption()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddIdRawOption', $methods ), 'exists method AddIdRawOption' );
$r = new ReflectionMethod('Menu', 'AddIdRawOption');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strId');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'strURL');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'label');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'icon');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'js');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'strType');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == 'plugins');
$this->assertTrue( $params[6]->getName() == 'elementClass');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == '');
}
/**
* @covers Menu::DisableOptionPos
* @todo Implement testDisableOptionPos().
*/
public function testDisableOptionPos()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('DisableOptionPos', $methods ), 'exists method DisableOptionPos' );
$r = new ReflectionMethod('Menu', 'DisableOptionPos');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'intPos');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Menu::DisableOptionId
* @todo Implement testDisableOptionId().
*/
public function testDisableOptionId()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('DisableOptionId', $methods ), 'exists method DisableOptionId' );
$r = new ReflectionMethod('Menu', 'DisableOptionId');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'id');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Menu::RenderOption
* @todo Implement testRenderOption().
*/
public function testRenderOption()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('RenderOption', $methods ), 'exists method RenderOption' );
$r = new ReflectionMethod('Menu', 'RenderOption');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'intPos');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers Menu::generateArrayForTemplate
* @todo Implement testgenerateArrayForTemplate().
*/
public function testgenerateArrayForTemplate()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('generateArrayForTemplate', $methods ), 'exists method generateArrayForTemplate' );
$r = new ReflectionMethod('Menu', 'generateArrayForTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'G_MAIN_MENU');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'classOn');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'classOff');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'G_MENU_SELECTED');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->assertTrue( $params[4]->getName() == 'G_ID_MENU_SELECTED');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == false);
}
}

View File

@@ -1,111 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.phpSqlParser.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classPHPSQLParserTest extends PHPUnit_Framework_TestCase
{
/**
* @var PHPSQLParser
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new PHPSQLParser();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('PHPSQLParser'); $this->assertTrue( count($methods) == 4);
}
/**
* @covers PHPSQLParser::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('PHPSQLParser', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sql');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
}
/**
* @covers PHPSQLParser::parse
* @todo Implement testparse().
*/
public function testparse()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('parse', $methods ), 'exists method parse' );
$r = new ReflectionMethod('PHPSQLParser', 'parse');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sql');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers PHPSQLParser::process_insert
* @todo Implement testprocess_insert().
*/
public function testprocess_insert()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('process_insert', $methods ), 'exists method process_insert' );
$r = new ReflectionMethod('PHPSQLParser', 'process_insert');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tokens');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'token_category');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'INSERT');
}
/**
* @covers PHPSQLParser::load_reserved_words
* @todo Implement testload_reserved_words().
*/
public function testload_reserved_words()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load_reserved_words', $methods ), 'exists method load_reserved_words' );
$r = new ReflectionMethod('PHPSQLParser', 'load_reserved_words');
$params = $r->getParameters();
}
}

View File

@@ -1,87 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.pmException.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classPMExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var PMException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$message= 'PHPUnit test';
$this->object = new PMException($message );
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$class = new ReflectionClass('PMException');
$methods = $class->getMethods( ReflectionMethod::IS_PUBLIC );
//$this->assertTrue( count($methods) == 9 );
}
/**
* @covers PMException::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('PMException', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'message');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'code');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '0');
$this->assertTrue( $params[2]->getName() == 'previous');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
}
/**
* @covers PMException::__toString
* @todo Implement test__toString().
*/
public function test__toString()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__toString', $methods ), 'exists method __toString' );
$r = new ReflectionMethod('PMException', '__toString');
$params = $r->getParameters();
}
}

View File

@@ -1,133 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.publisher.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:22.
*/
class classPublisherTest extends PHPUnit_Framework_TestCase
{
/**
* @var Publisher
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new Publisher();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Publisher'); $this->assertTrue( count($methods) == 3);
}
/**
* @covers Publisher::AddContent
* @todo Implement testAddContent().
*/
public function testAddContent()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' );
$r = new ReflectionMethod('Publisher', 'AddContent');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strType');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'form');
$this->assertTrue( $params[1]->getName() == 'strLayout');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'form');
$this->assertTrue( $params[2]->getName() == 'strName');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'strContent');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'arrData');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'strTarget');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '');
$this->assertTrue( $params[6]->getName() == 'ajaxServer');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == '');
$this->assertTrue( $params[7]->getName() == 'mode');
$this->assertTrue( $params[7]->isArray() == false);
$this->assertTrue( $params[7]->isOptional () == true);
$this->assertTrue( $params[7]->getDefaultValue() == '');
$this->assertTrue( $params[8]->getName() == 'bAbsolutePath');
$this->assertTrue( $params[8]->isArray() == false);
$this->assertTrue( $params[8]->isOptional () == true);
$this->assertTrue( $params[8]->getDefaultValue() == '');
}
/**
* @covers Publisher::RenderContent
* @todo Implement testRenderContent().
*/
public function testRenderContent()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('RenderContent', $methods ), 'exists method RenderContent' );
$r = new ReflectionMethod('Publisher', 'RenderContent');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'intPos');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '0');
}
/**
* @covers Publisher::RenderContent0
* @todo Implement testRenderContent0().
*/
public function testRenderContent0()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('RenderContent0', $methods ), 'exists method RenderContent0' );
$r = new ReflectionMethod('Publisher', 'RenderContent0');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'intPos');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '0');
$this->assertTrue( $params[1]->getName() == 'showXMLFormName');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,181 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.templatePower.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classTemplatePowerParserTest extends PHPUnit_Framework_TestCase
{
/**
* @var TemplatePowerParser
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$tpl_file='';
$type='';
$this->object = new TemplatePowerParser($tpl_file, $type);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('TemplatePowerParser'); $this->assertTrue( count($methods) == 8);
}
/**
* @covers TemplatePowerParser::TemplatePowerParser
* @todo Implement testTemplatePowerParser().
*/
public function testTemplatePowerParser()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('TemplatePowerParser', $methods ), 'exists method TemplatePowerParser' );
$r = new ReflectionMethod('TemplatePowerParser', 'TemplatePowerParser');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tpl_file');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'type');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
/**
* @covers TemplatePowerParser::__errorAlert
* @todo Implement test__errorAlert().
*/
public function test__errorAlert()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__errorAlert', $methods ), 'exists method __errorAlert' );
$r = new ReflectionMethod('TemplatePowerParser', '__errorAlert');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'message');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
}
/**
* @covers TemplatePowerParser::__prepare
* @todo Implement test__prepare().
*/
public function test__prepare()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__prepare', $methods ), 'exists method __prepare' );
$r = new ReflectionMethod('TemplatePowerParser', '__prepare');
$params = $r->getParameters();
}
/**
* @covers TemplatePowerParser::__cleanUp
* @todo Implement test__cleanUp().
*/
public function test__cleanUp()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__cleanUp', $methods ), 'exists method __cleanUp' );
$r = new ReflectionMethod('TemplatePowerParser', '__cleanUp');
$params = $r->getParameters();
}
/**
* @covers TemplatePowerParser::__prepareTemplate
* @todo Implement test__prepareTemplate().
*/
public function test__prepareTemplate()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__prepareTemplate', $methods ), 'exists method __prepareTemplate' );
$r = new ReflectionMethod('TemplatePowerParser', '__prepareTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tpl_file');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'type');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
/**
* @covers TemplatePowerParser::__parseTemplate
* @todo Implement test__parseTemplate().
*/
public function test__parseTemplate()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__parseTemplate', $methods ), 'exists method __parseTemplate' );
$r = new ReflectionMethod('TemplatePowerParser', '__parseTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tplvar');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'blockname');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'initdev');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
}
/**
* @covers TemplatePowerParser::version
* @todo Implement testversion().
*/
public function testversion()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('version', $methods ), 'exists method version' );
$r = new ReflectionMethod('TemplatePowerParser', 'version');
$params = $r->getParameters();
}
/**
* @covers TemplatePowerParser::assignInclude
* @todo Implement testassignInclude().
*/
public function testassignInclude()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('assignInclude', $methods ), 'exists method assignInclude' );
$r = new ReflectionMethod('TemplatePowerParser', 'assignInclude');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'iblockname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'value');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'type');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '0');
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,135 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.tree.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classTreeTest extends PHPUnit_Framework_TestCase
{
/**
* @var Tree
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new Tree();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Tree'); $this->assertTrue( count($methods) == 14);
}
/**
* @covers Tree::Tree
* @todo Implement testTree().
*/
public function testTree()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Tree', $methods ), 'exists method Tree' );
$r = new ReflectionMethod('Tree', 'Tree');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xmlnode');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
}
/**
* @covers Tree::addChild
* @todo Implement testaddChild().
*/
public function testaddChild()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addChild', $methods ), 'exists method addChild' );
$r = new ReflectionMethod('Tree', 'addChild');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'label');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'attributes');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == Array());
}
/**
* @covers Tree::printPlus
* @todo Implement testprintPlus().
*/
public function testprintPlus()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printPlus', $methods ), 'exists method printPlus' );
$r = new ReflectionMethod('Tree', 'printPlus');
$params = $r->getParameters();
}
/**
* @covers Tree::printLabel
* @todo Implement testprintLabel().
*/
public function testprintLabel()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printLabel', $methods ), 'exists method printLabel' );
$r = new ReflectionMethod('Tree', 'printLabel');
$params = $r->getParameters();
}
/**
* @covers Tree::printContent
* @todo Implement testprintContent().
*/
public function testprintContent()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printContent', $methods ), 'exists method printContent' );
$r = new ReflectionMethod('Tree', 'printContent');
$params = $r->getParameters();
}
/**
* @covers Tree::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('Tree', 'render');
$params = $r->getParameters();
}
}

View File

@@ -1,116 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classXmlFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new XmlForm();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm'); $this->assertTrue( count($methods) == 4);
}
/**
* @covers XmlForm::parseFile
* @todo Implement testparseFile().
*/
public function testparseFile()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
$r = new ReflectionMethod('XmlForm', 'parseFile');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'filename');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'language');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'forceParse');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
}
/**
* @covers XmlForm::setValues
* @todo Implement testsetValues().
*/
public function testsetValues()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' );
$r = new ReflectionMethod('XmlForm', 'setValues');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'newValues');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == Array());
}
/**
* @covers XmlForm::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'template');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'scriptContent');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
/**
* @covers XmlForm::cloneObject
* @todo Implement testcloneObject().
*/
public function testcloneObject()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
$r = new ReflectionMethod('XmlForm', 'cloneObject');
$params = $r->getParameters();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,71 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Button
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_Button($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_Button'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_Button::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Button', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
}
}

View File

@@ -1,67 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CaptionCurrency
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_CaptionCurrency($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_CaptionCurrency'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_CaptionCurrency::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_CaptionCurrency', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
}
}

View File

@@ -1,67 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CaptionPercentage
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_CaptionPercentage($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_CaptionPercentage'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_CaptionPercentage::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_CaptionPercentage', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
}
}

View File

@@ -1,105 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Caption
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_Caption($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_Caption'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_Caption::validateValue
* @todo Implement testvalidateValue().
*/
public function testvalidateValue()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field_Caption', 'validateValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
/**
* @covers XmlForm_Field_Caption::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Caption', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'rowId');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'onlyValue');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'row');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '-1');
$this->assertTrue( $params[5]->getName() == 'therow');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '-1');
}
}

View File

@@ -1,71 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CheckGroup
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_CheckGroup($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_CheckGroup'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_CheckGroup::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_CheckGroup', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
}
}

View File

@@ -1,67 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CheckGroupView
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_CheckGroupView($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_CheckGroupView'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_CheckGroupView::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_CheckGroupView', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
}
}

View File

@@ -1,67 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkbox2
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_Checkbox2($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_Checkbox2'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_Checkbox2::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Checkbox2', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
}
}

View File

@@ -1,107 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkbox
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_Checkbox($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_Checkbox'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_Checkbox::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Checkbox', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$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_Checkbox::renderGrid
* @todo Implement testrenderGrid().
*/
public function testrenderGrid()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Checkbox', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
}
/**
* @covers XmlForm_Field_Checkbox::maskValue
* @todo Implement testmaskValue().
*/
public function testmaskValue()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$r = new ReflectionMethod('XmlForm_Field_Checkbox', 'maskValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
}

View File

@@ -1,107 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:24.
*/
class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkboxpt
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_Checkboxpt($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_Checkboxpt'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_Checkboxpt::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$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_Checkboxpt::renderGrid
* @todo Implement testrenderGrid().
*/
public function testrenderGrid()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
}
/**
* @covers XmlForm_Field_Checkboxpt::maskValue
* @todo Implement testmaskValue().
*/
public function testmaskValue()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'maskValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
}

View File

@@ -1,89 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:23.
*/
class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Currency
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$attributes = array('type'=>'input');
$fieldNode = new Xml_Node('testField', 'type', 'value', $attributes);
$this->object = new XmlForm_Field_Currency($fieldNode);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('XmlForm_Field_Currency'); $this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_Currency::render
* @todo Implement testrender().
*/
public function testrender()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Currency', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$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_Currency::renderGrid
* @todo Implement testrenderGrid().
*/
public function testrenderGrid()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Currency', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
}
}

Some files were not shown because too many files have changed in this diff Show More