php units for all classes

This commit is contained in:
Fernando Ontiveros
2012-07-12 20:40:06 -04:00
parent 6326cfdf53
commit dd88abc53b
178 changed files with 28951 additions and 14669 deletions

View File

@@ -1,25 +1,69 @@
<?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.controller.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.controller.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:29.
*/
class classControllerTest extends PHPUnit_Framework_TestCase
{
/**
* @var Controller
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classControllerTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Controller();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 19);
}
/**
* @covers Controller::__set
* @todo Implement test__set().
*/
public function test__set()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__set', $methods ), 'exists method __set' );
$r = new ReflectionMethod('Controller', '__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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,15 @@
*/
public function test__get()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__get', $methods ), 'exists method __get' );
$r = new ReflectionMethod('Controller', '__get');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +89,15 @@
*/
public function test__isset()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' );
$r = new ReflectionMethod('Controller', '__isset');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +106,15 @@
*/
public function test__unset()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' );
$r = new ReflectionMethod('Controller', '__unset');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +123,15 @@
*/
public function testsetResponseType()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'setResponseType', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setResponseType', $methods ), 'exists method setResponseType' );
$r = new ReflectionMethod('Controller', 'setResponseType');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'type');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +140,15 @@
*/
public function testcall()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('call', $methods ), 'exists method call' );
$r = new ReflectionMethod('Controller', 'call');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +157,15 @@
*/
public function testsetHttpRequestData()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' );
$r = new ReflectionMethod('Controller', 'setHttpRequestData');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'data');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +174,15 @@
*/
public function testsetDebug()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'setDebug', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setDebug', $methods ), 'exists method setDebug' );
$r = new ReflectionMethod('Controller', 'setDebug');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'val');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +191,12 @@
*/
public function testgetDebug()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'getDebug', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getDebug', $methods ), 'exists method getDebug' );
$r = new ReflectionMethod('Controller', 'getDebug');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +205,19 @@
*/
public function testincludeExtJSLib()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'includeExtJSLib', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('includeExtJSLib', $methods ), 'exists method includeExtJSLib' );
$r = new ReflectionMethod('Controller', 'includeExtJSLib');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'srcFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'debug');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +226,19 @@
*/
public function testincludeExtJS()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'includeExtJS', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('includeExtJS', $methods ), 'exists method includeExtJS' );
$r = new ReflectionMethod('Controller', 'includeExtJS');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'srcFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'debug');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +247,15 @@
*/
public function testsetView()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'setView', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setView', $methods ), 'exists method setView' );
$r = new ReflectionMethod('Controller', 'setView');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'file');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +264,18 @@
*/
public function testsetJSVar()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'setJSVar', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setJSVar', $methods ), 'exists method setJSVar' );
$r = new ReflectionMethod('Controller', 'setJSVar');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +284,18 @@
*/
public function testsetVar()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'setVar', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setVar', $methods ), 'exists method setVar' );
$r = new ReflectionMethod('Controller', 'setVar');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +304,12 @@
*/
public function testgetHeadPublisher()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'getHeadPublisher', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getHeadPublisher', $methods ), 'exists method getHeadPublisher' );
$r = new ReflectionMethod('Controller', 'getHeadPublisher');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +318,15 @@
*/
public function testsetLayout()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'setLayout', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setLayout', $methods ), 'exists method setLayout' );
$r = new ReflectionMethod('Controller', 'setLayout');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'layout');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +335,16 @@
*/
public function testrender()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('Controller', 'render');
$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() == 'mvc');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +353,15 @@
*/
public function testheader()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'header', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('header', $methods ), 'exists method header' );
$r = new ReflectionMethod('Controller', 'header');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'header');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +370,15 @@
*/
public function testredirect()
{
if (class_exists('Controller')) {
$methods = get_class_methods( 'Controller');
$this->assertTrue( in_array( 'redirect', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('redirect', $methods ), 'exists method redirect' );
$r = new ReflectionMethod('Controller', 'redirect');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,109 +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.dbconnection.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
*/
class classDBConnectionTest extends PHPUnit_Framework_TestCase
{
/**
* @covers DBConnection::DBConnection
* @todo Implement testDBConnection().
*/
public function testDBConnection()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'DBConnection', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBConnection::Reset
* @todo Implement testReset().
*/
public function testReset()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'Reset', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBConnection::Free
* @todo Implement testFree().
*/
public function testFree()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'Free', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBConnection::Close
* @todo Implement testClose().
*/
public function testClose()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'Close', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBConnection::logError
* @todo Implement testlogError().
*/
public function testlogError()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'logError', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBConnection::traceError
* @todo Implement testtraceError().
*/
public function testtraceError()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'traceError', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBConnection::printArgs
* @todo Implement testprintArgs().
*/
public function testprintArgs()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'printArgs', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBConnection::GetLastID
* @todo Implement testGetLastID().
*/
public function testGetLastID()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->assertTrue( in_array( 'GetLastID', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,85 +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.dbrecordset.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
*/
class classDBRecordSetTest extends PHPUnit_Framework_TestCase
{
/**
* @covers DBRecordSet::DBRecordSet
* @todo Implement testDBRecordSet().
*/
public function testDBRecordSet()
{
if (class_exists('DBRecordSet')) {
$methods = get_class_methods( 'DBRecordSet');
$this->assertTrue( in_array( 'DBRecordSet', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBRecordSet::SetTo
* @todo Implement testSetTo().
*/
public function testSetTo()
{
if (class_exists('DBRecordSet')) {
$methods = get_class_methods( 'DBRecordSet');
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBRecordSet::Free
* @todo Implement testFree().
*/
public function testFree()
{
if (class_exists('DBRecordSet')) {
$methods = get_class_methods( 'DBRecordSet');
$this->assertTrue( in_array( 'Free', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBRecordSet::Count
* @todo Implement testCount().
*/
public function testCount()
{
if (class_exists('DBRecordSet')) {
$methods = get_class_methods( 'DBRecordSet');
$this->assertTrue( in_array( 'Count', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBRecordSet::Read
* @todo Implement testRead().
*/
public function testRead()
{
if (class_exists('DBRecordSet')) {
$methods = get_class_methods( 'DBRecordSet');
$this->assertTrue( in_array( 'Read', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBRecordSet::ReadAbsolute
* @todo Implement testReadAbsolute().
*/
public function testReadAbsolute()
{
if (class_exists('DBRecordSet')) {
$methods = get_class_methods( 'DBRecordSet');
$this->assertTrue( in_array( 'ReadAbsolute', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,73 +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.dbsession.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classDBSessionTest extends PHPUnit_Framework_TestCase
{
/**
* @covers DBSession::DBSession
* @todo Implement testDBSession().
*/
public function testDBSession()
{
if (class_exists('DBSession')) {
$methods = get_class_methods( 'DBSession');
$this->assertTrue( in_array( 'DBSession', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBSession::setTo
* @todo Implement testsetTo().
*/
public function testsetTo()
{
if (class_exists('DBSession')) {
$methods = get_class_methods( 'DBSession');
$this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBSession::UseDB
* @todo Implement testUseDB().
*/
public function testUseDB()
{
if (class_exists('DBSession')) {
$methods = get_class_methods( 'DBSession');
$this->assertTrue( in_array( 'UseDB', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBSession::Execute
* @todo Implement testExecute().
*/
public function testExecute()
{
if (class_exists('DBSession')) {
$methods = get_class_methods( 'DBSession');
$this->assertTrue( in_array( 'Execute', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers DBSession::Free
* @todo Implement testFree().
*/
public function testFree()
{
if (class_exists('DBSession')) {
$methods = get_class_methods( 'DBSession');
$this->assertTrue( in_array( 'Free', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,75 @@
<?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.dbtable.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 20:28:28.
*/
class classDBTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var DBTable
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classDBTableTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 11);
}
/**
* @covers DBTable::dBTable
* @todo Implement testdBTable().
*/
public function testdBTable()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'dBTable', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +78,23 @@
*/
public function testsetTo()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +103,12 @@
*/
public function testloadEmpty()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'loadEmpty', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('loadEmpty', $methods ), 'exists method loadEmpty' );
$r = new ReflectionMethod('DBTable', 'loadEmpty');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +117,15 @@
*/
public function testloadWhere()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'loadWhere', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +134,12 @@
*/
public function testload()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('DBTable', 'load');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +148,15 @@
*/
public function testnextvalPGSql()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'nextvalPGSql', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +165,12 @@
*/
public function testinsert()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'insert', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('insert', $methods ), 'exists method insert' );
$r = new ReflectionMethod('DBTable', 'insert');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +179,12 @@
*/
public function testupdate()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'update', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('update', $methods ), 'exists method update' );
$r = new ReflectionMethod('DBTable', 'update');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +193,12 @@
*/
public function testsave()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
$r = new ReflectionMethod('DBTable', 'save');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +207,12 @@
*/
public function testdelete()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
$r = new ReflectionMethod('DBTable', 'delete');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +221,12 @@
*/
public function testnext()
{
if (class_exists('DBTable')) {
$methods = get_class_methods( 'DBTable');
$this->assertTrue( in_array( 'next', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('next', $methods ), 'exists method next' );
$r = new ReflectionMethod('DBTable', 'next');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,75 @@
<?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.dbMaintenance.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.dbMaintenance.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classDataBaseMaintenanceTest extends PHPUnit_Framework_TestCase
{
/**
* @var DataBaseMaintenance
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classDataBaseMaintenanceTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new DataBaseMaintenance();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 27);
}
/**
* @covers DataBaseMaintenance::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('DataBaseMaintenance', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'host');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'user');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'passwd');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +78,15 @@
*/
public function testsetUser()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'setUser', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setUser', $methods ), 'exists method setUser' );
$r = new ReflectionMethod('DataBaseMaintenance', 'setUser');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'user');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +95,15 @@
*/
public function testsetPasswd()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'setPasswd', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setPasswd', $methods ), 'exists method setPasswd' );
$r = new ReflectionMethod('DataBaseMaintenance', 'setPasswd');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'passwd');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +112,15 @@
*/
public function testsetHost()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'setHost', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setHost', $methods ), 'exists method setHost' );
$r = new ReflectionMethod('DataBaseMaintenance', 'setHost');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'host');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +129,15 @@
*/
public function testsetTempDir()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'setTempDir', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setTempDir', $methods ), 'exists method setTempDir' );
$r = new ReflectionMethod('DataBaseMaintenance', 'setTempDir');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tmpDir');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +146,12 @@
*/
public function testgetTempDir()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'getTempDir', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getTempDir', $methods ), 'exists method getTempDir' );
$r = new ReflectionMethod('DataBaseMaintenance', 'getTempDir');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +160,12 @@
*/
public function teststatus()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'status', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('status', $methods ), 'exists method status' );
$r = new ReflectionMethod('DataBaseMaintenance', 'status');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +174,16 @@
*/
public function testconnect()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'connect', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('connect', $methods ), 'exists method connect' );
$r = new ReflectionMethod('DataBaseMaintenance', 'connect');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dbname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +192,15 @@
*/
public function testsetDbName()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'setDbName', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setDbName', $methods ), 'exists method setDbName' );
$r = new ReflectionMethod('DataBaseMaintenance', 'setDbName');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dbname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +209,15 @@
*/
public function testselectDataBase()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'selectDataBase', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('selectDataBase', $methods ), 'exists method selectDataBase' );
$r = new ReflectionMethod('DataBaseMaintenance', 'selectDataBase');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dbname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +226,15 @@
*/
public function testquery()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'query', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('query', $methods ), 'exists method query' );
$r = new ReflectionMethod('DataBaseMaintenance', 'query');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sql');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +243,12 @@
*/
public function testerror()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('error', $methods ), 'exists method error' );
$r = new ReflectionMethod('DataBaseMaintenance', 'error');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +257,12 @@
*/
public function testgetTablesList()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'getTablesList', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getTablesList', $methods ), 'exists method getTablesList' );
$r = new ReflectionMethod('DataBaseMaintenance', 'getTablesList');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +271,15 @@
*/
public function testdumpData()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'dumpData', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('dumpData', $methods ), 'exists method dumpData' );
$r = new ReflectionMethod('DataBaseMaintenance', 'dumpData');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'table');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +288,15 @@
*/
public function testrestoreData()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'restoreData', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('restoreData', $methods ), 'exists method restoreData' );
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreData');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'backupFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +305,12 @@
*/
public function testbackupData()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'backupData', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('backupData', $methods ), 'exists method backupData' );
$r = new ReflectionMethod('DataBaseMaintenance', 'backupData');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +319,12 @@
*/
public function testbackupSqlData()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'backupSqlData', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('backupSqlData', $methods ), 'exists method backupSqlData' );
$r = new ReflectionMethod('DataBaseMaintenance', 'backupSqlData');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +333,16 @@
*/
public function testrestoreAllData()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'restoreAllData', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('restoreAllData', $methods ), 'exists method restoreAllData' );
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreAllData');
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +351,19 @@
*/
public function testcreateDb()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'createDb', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('createDb', $methods ), 'exists method createDb' );
$r = new ReflectionMethod('DataBaseMaintenance', 'createDb');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dbname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'drop');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -244,10 +372,15 @@
*/
public function testrestoreFromSql2()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'restoreFromSql2', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('restoreFromSql2', $methods ), 'exists method restoreFromSql2' );
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreFromSql2');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sqlfile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -256,10 +389,12 @@
*/
public function testlockTables()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'lockTables', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('lockTables', $methods ), 'exists method lockTables' );
$r = new ReflectionMethod('DataBaseMaintenance', 'lockTables');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -268,10 +403,12 @@
*/
public function testunlockTables()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'unlockTables', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('unlockTables', $methods ), 'exists method unlockTables' );
$r = new ReflectionMethod('DataBaseMaintenance', 'unlockTables');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -280,10 +417,15 @@
*/
public function testdumpSqlInserts()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'dumpSqlInserts', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('dumpSqlInserts', $methods ), 'exists method dumpSqlInserts' );
$r = new ReflectionMethod('DataBaseMaintenance', 'dumpSqlInserts');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'table');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -292,10 +434,15 @@
*/
public function testbackupDataBase()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'backupDataBase', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('backupDataBase', $methods ), 'exists method backupDataBase' );
$r = new ReflectionMethod('DataBaseMaintenance', 'backupDataBase');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'outfile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -304,10 +451,19 @@
*/
public function testrestoreFromSql()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'restoreFromSql', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('restoreFromSql', $methods ), 'exists method restoreFromSql' );
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreFromSql');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sqlfile');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'file');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -316,10 +472,15 @@
*/
public function testgetSchemaFromTable()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'getSchemaFromTable', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getSchemaFromTable', $methods ), 'exists method getSchemaFromTable' );
$r = new ReflectionMethod('DataBaseMaintenance', 'getSchemaFromTable');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tablename');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -328,10 +489,15 @@
*/
public function testremoveCommentsIntoString()
{
if (class_exists('DataBaseMaintenance')) {
$methods = get_class_methods( 'DataBaseMaintenance');
$this->assertTrue( in_array( 'removeCommentsIntoString', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('removeCommentsIntoString', $methods ), 'exists method removeCommentsIntoString' );
$r = new ReflectionMethod('DataBaseMaintenance', 'removeCommentsIntoString');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,63 @@
<?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/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 20:28:28.
*/
class classFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var Form
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classFormTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Form();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 13);
}
/**
* @covers Form::setDefaultValues
* @todo Implement testsetDefaultValues().
*/
public function testsetDefaultValues()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'setDefaultValues', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setDefaultValues', $methods ), 'exists method setDefaultValues' );
$r = new ReflectionMethod('Form', 'setDefaultValues');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +66,31 @@
*/
public function testForm()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'Form', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +99,18 @@
*/
public function testprintTemplate()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +119,18 @@
*/
public function testrender()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +139,16 @@
*/
public function testsetValues()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +157,19 @@
*/
public function testgetFields()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +178,12 @@
*/
public function testvalidatePost()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'validatePost', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validatePost', $methods ), 'exists method validatePost' );
$r = new ReflectionMethod('Form', 'validatePost');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +192,15 @@
*/
public function testvalidateArray()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'validateArray', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +209,16 @@
*/
public function testgetVars()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +227,19 @@
*/
public function testvalidateRequiredFields()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'validateRequiredFields', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +248,15 @@
*/
public function testvalidateFields()
{
if (class_exists('Form')) {
$methods = get_class_methods( 'Form');
$this->assertTrue( in_array( 'validateFields', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,25 +1,79 @@
<?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.error.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 20:28:31.
*/
class classG_ErrorTest extends PHPUnit_Framework_TestCase
{
/**
* @var G_Error
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classG_ErrorTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 13);
}
/**
* @covers G_Error::G_Error
* @todo Implement testG_Error().
*/
public function testG_Error()
{
if (class_exists('G_Error')) {
$methods = get_class_methods( 'G_Error');
$this->assertTrue( in_array( 'G_Error', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +82,15 @@
*/
public function testerrorMessage()
{
if (class_exists('G_Error')) {
$methods = get_class_methods( 'G_Error');
$this->assertTrue( in_array( 'errorMessage', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,63 @@
<?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.helper.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 20:28:28.
*/
class classHelperTest extends PHPUnit_Framework_TestCase
{
/**
* @var Helper
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classHelperTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 8);
}
/**
* @covers Helper::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('Helper', '__construct');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +66,15 @@
*/
public function testaddFile()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( 'addFile', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +83,15 @@
*/
public function testaddContent()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( 'addContent', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +100,15 @@
*/
public function testsetContentType()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +117,12 @@
*/
public function testinit()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( 'init', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('init', $methods ), 'exists method init' );
$r = new ReflectionMethod('Helper', 'init');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +131,12 @@
*/
public function testminify()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( 'minify', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('minify', $methods ), 'exists method minify' );
$r = new ReflectionMethod('Helper', 'minify');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +145,12 @@
*/
public function testflush()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( 'flush', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('flush', $methods ), 'exists method flush' );
$r = new ReflectionMethod('Helper', 'flush');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +159,16 @@
*/
public function testserve()
{
if (class_exists('Helper')) {
$methods = get_class_methods( 'Helper');
$this->assertTrue( in_array( 'serve', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.httpProxyController.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 20:28:31.
*/
class classHttpProxyControllerTest extends PHPUnit_Framework_TestCase
{
/**
* @var HttpProxyController
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classHttpProxyControllerTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 8);
}
/**
* @covers HttpProxyController::__set
* @todo Implement test__set().
*/
public function test__set()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,15 @@
*/
public function test__get()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +89,15 @@
*/
public function test__isset()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +106,15 @@
*/
public function test__unset()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +123,15 @@
*/
public function testcall()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +140,15 @@
*/
public function testsetHttpRequestData()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +157,15 @@
*/
public function testsetJsonResponse()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( 'setJsonResponse', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +174,15 @@
*/
public function testsetSendResponse()
{
if (class_exists('HttpProxyController')) {
$methods = get_class_methods( 'HttpProxyController');
$this->assertTrue( in_array( 'setSendResponse', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.menu.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 20:28:31.
*/
class classMenuTest extends PHPUnit_Framework_TestCase
{
/**
* @var Menu
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classMenuTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 11);
}
/**
* @covers Menu::SetClass
* @todo Implement testSetClass().
*/
public function testSetClass()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'SetClass', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +70,15 @@
*/
public function testLoad()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +87,12 @@
*/
public function testOptionCount()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'OptionCount', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('OptionCount', $methods ), 'exists method OptionCount' );
$r = new ReflectionMethod('Menu', 'OptionCount');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +101,22 @@
*/
public function testAddOption()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'AddOption', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +125,25 @@
*/
public function testAddIdOption()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'AddIdOption', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +152,20 @@
*/
public function testAddRawOption()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'AddRawOption', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +174,39 @@
*/
public function testAddIdRawOption()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'AddIdRawOption', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +215,15 @@
*/
public function testDisableOptionPos()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'DisableOptionPos', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +232,15 @@
*/
public function testDisableOptionId()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'DisableOptionId', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +249,15 @@
*/
public function testRenderOption()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'RenderOption', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +266,27 @@
*/
public function testgenerateArrayForTemplate()
{
if (class_exists('Menu')) {
$methods = get_class_methods( 'Menu');
$this->assertTrue( in_array( 'generateArrayForTemplate', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,37 +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.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classNTLMSoapClientTest extends PHPUnit_Framework_TestCase
{
/**
* @covers NTLMSoapClient::__doRequest
* @todo Implement test__doRequest().
*/
public function test__doRequest()
{
if (class_exists('NTLMSoapClient')) {
$methods = get_class_methods( 'NTLMSoapClient');
$this->assertTrue( in_array( '__doRequest', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers NTLMSoapClient::__getLastRequestHeaders
* @todo Implement test__getLastRequestHeaders().
*/
public function test__getLastRequestHeaders()
{
if (class_exists('NTLMSoapClient')) {
$methods = get_class_methods( 'NTLMSoapClient');
$this->assertTrue( in_array( '__getLastRequestHeaders', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,67 @@
<?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.phpSqlParser.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 20:28:29.
*/
class classPHPSQLParserTest extends PHPUnit_Framework_TestCase
{
/**
* @var PHPSQLParser
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classPHPSQLParserTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 4);
}
/**
* @covers PHPSQLParser::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,166 +70,15 @@
*/
public function testparse()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'parse', $methods ), 'seems like this function is outside this class' );
}
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers PHPSQLParser::count_paren
* @todo Implement testcount_paren().
*/
public function testcount_paren()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'count_paren', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::count_backtick
* @todo Implement testcount_backtick().
*/
public function testcount_backtick()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'count_backtick', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::split_sql
* @todo Implement testsplit_sql().
*/
public function testsplit_sql()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'split_sql', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_sql
* @todo Implement testprocess_sql().
*/
public function testprocess_sql()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_sql', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_set_list
* @todo Implement testprocess_set_list().
*/
public function testprocess_set_list()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_set_list', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_limit
* @todo Implement testprocess_limit().
*/
public function testprocess_limit()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_limit', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_select
* @todo Implement testprocess_select().
*/
public function testprocess_select()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_select', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_select_expr
* @todo Implement testprocess_select_expr().
*/
public function testprocess_select_expr()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_select_expr', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_from
* @todo Implement testprocess_from().
*/
public function testprocess_from()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_from', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_group
* @todo Implement testprocess_group().
*/
public function testprocess_group()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_group', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_expr_list
* @todo Implement testprocess_expr_list().
*/
public function testprocess_expr_list()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_expr_list', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_update
* @todo Implement testprocess_update().
*/
public function testprocess_update()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_update', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PHPSQLParser::process_delete
* @todo Implement testprocess_delete().
*/
public function testprocess_delete()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_delete', $methods ), 'seems like this function is outside this class' );
}
}
/**
@@ -196,10 +87,19 @@
*/
public function testprocess_insert()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'process_insert', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +108,12 @@
*/
public function testload_reserved_words()
{
if (class_exists('PHPSQLParser')) {
$methods = get_class_methods( 'PHPSQLParser');
$this->assertTrue( in_array( 'load_reserved_words', $methods ), 'seems like this function is outside this class' );
}
$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();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,74 @@
<?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.pmException.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 20:28:30.
*/
class classPMExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var PMException
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classPMExceptionTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new PMException();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 8);
}
/**
* @covers PMException::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('PMException')) {
$methods = get_class_methods( 'PMException');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +77,12 @@
*/
public function test__toString()
{
if (class_exists('PMException')) {
$methods = get_class_methods( 'PMException');
$this->assertTrue( in_array( '__toString', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__toString', $methods ), 'exists method __toString' );
$r = new ReflectionMethod('PMException', '__toString');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +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.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classPMServiceNTLMSoapClientTest extends PHPUnit_Framework_TestCase
{
/**
* @covers PMServiceNTLMSoapClient::setAuthClient
* @todo Implement testsetAuthClient().
*/
public function testsetAuthClient()
{
if (class_exists('PMServiceNTLMSoapClient')) {
$methods = get_class_methods( 'PMServiceNTLMSoapClient');
$this->assertTrue( in_array( 'setAuthClient', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,49 +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.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classPMServiceProviderNTLMStreamTest extends PHPUnit_Framework_TestCase
{
/**
* @covers PMServiceProviderNTLMStream::getuser
* @todo Implement testgetuser().
*/
public function testgetuser()
{
if (class_exists('PMServiceProviderNTLMStream')) {
$methods = get_class_methods( 'PMServiceProviderNTLMStream');
$this->assertTrue( in_array( 'getuser', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PMServiceProviderNTLMStream::getpassword
* @todo Implement testgetpassword().
*/
public function testgetpassword()
{
if (class_exists('PMServiceProviderNTLMStream')) {
$methods = get_class_methods( 'PMServiceProviderNTLMStream');
$this->assertTrue( in_array( 'getpassword', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers PMServiceProviderNTLMStream::setAuthStream
* @todo Implement testsetAuthStream().
*/
public function testsetAuthStream()
{
if (class_exists('PMServiceProviderNTLMStream')) {
$methods = get_class_methods( 'PMServiceProviderNTLMStream');
$this->assertTrue( in_array( 'setAuthStream', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,99 @@
<?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.publisher.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 20:28:28.
*/
class classPublisherTest extends PHPUnit_Framework_TestCase
{
/**
* @var Publisher
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classPublisherTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 3);
}
/**
* @covers Publisher::AddContent
* @todo Implement testAddContent().
*/
public function testAddContent()
{
if (class_exists('Publisher')) {
$methods = get_class_methods( 'Publisher');
$this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +102,16 @@
*/
public function testRenderContent()
{
if (class_exists('Publisher')) {
$methods = get_class_methods( 'Publisher');
$this->assertTrue( in_array( 'RenderContent', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +120,20 @@
*/
public function testRenderContent0()
{
if (class_exists('Publisher')) {
$methods = get_class_methods( 'Publisher');
$this->assertTrue( in_array( 'RenderContent0', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,25 +1,63 @@
<?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.restClient.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.restClient.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classRestClientTest extends PHPUnit_Framework_TestCase
{
/**
* @var RestClient
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classRestClientTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new RestClient();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 20);
}
/**
* @covers RestClient::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('RestClient', '__construct');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,34 +66,12 @@
*/
public function testexecute()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'execute', $methods ), 'seems like this function is outside this class' );
}
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('execute', $methods ), 'exists method execute' );
$r = new ReflectionMethod('RestClient', 'execute');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers RestClient::treatURL
* @todo Implement testtreatURL().
*/
public function testtreatURL()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'treatURL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers RestClient::treatResponse
* @todo Implement testtreatResponse().
*/
public function testtreatResponse()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'treatResponse', $methods ), 'seems like this function is outside this class' );
}
}
/**
@@ -64,10 +80,12 @@
*/
public function testgetHeaders()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' );
$r = new ReflectionMethod('RestClient', 'getHeaders');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +94,12 @@
*/
public function testgetResponse()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'getResponse', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getResponse', $methods ), 'exists method getResponse' );
$r = new ReflectionMethod('RestClient', 'getResponse');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +108,12 @@
*/
public function testgetResponseCode()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'getResponseCode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getResponseCode', $methods ), 'exists method getResponseCode' );
$r = new ReflectionMethod('RestClient', 'getResponseCode');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +122,12 @@
*/
public function testgetResponseMessage()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'getResponseMessage', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getResponseMessage', $methods ), 'exists method getResponseMessage' );
$r = new ReflectionMethod('RestClient', 'getResponseMessage');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +136,12 @@
*/
public function testgetResponseContentType()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'getResponseContentType', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getResponseContentType', $methods ), 'exists method getResponseContentType' );
$r = new ReflectionMethod('RestClient', 'getResponseContentType');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +150,12 @@
*/
public function testsetNoFollow()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'setNoFollow', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setNoFollow', $methods ), 'exists method setNoFollow' );
$r = new ReflectionMethod('RestClient', 'setNoFollow');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +164,12 @@
*/
public function testclose()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('close', $methods ), 'exists method close' );
$r = new ReflectionMethod('RestClient', 'close');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +178,15 @@
*/
public function testsetUrl()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'setUrl', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setUrl', $methods ), 'exists method setUrl' );
$r = new ReflectionMethod('RestClient', 'setUrl');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +195,15 @@
*/
public function testsetContentType()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' );
$r = new ReflectionMethod('RestClient', 'setContentType');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'contentType');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +212,18 @@
*/
public function testsetCredentials()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'setCredentials', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setCredentials', $methods ), 'exists method setCredentials' );
$r = new ReflectionMethod('RestClient', 'setCredentials');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'user');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'pass');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +232,15 @@
*/
public function testsetMethod()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'setMethod', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setMethod', $methods ), 'exists method setMethod' );
$r = new ReflectionMethod('RestClient', 'setMethod');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'method');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +249,15 @@
*/
public function testsetParameters()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'setParameters', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setParameters', $methods ), 'exists method setParameters' );
$r = new ReflectionMethod('RestClient', 'setParameters');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'params');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +266,16 @@
*/
public function testcreateClient()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'createClient', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('createClient', $methods ), 'exists method createClient' );
$r = new ReflectionMethod('RestClient', 'createClient');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +284,28 @@
*/
public function testpost()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'post', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('post', $methods ), 'exists method post' );
$r = new ReflectionMethod('RestClient', 'post');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'params');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'user');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'pwd');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->assertTrue( $params[4]->getName() == 'contentType');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == 'multipart/form-data');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +314,30 @@
*/
public function testput()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'put', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('put', $methods ), 'exists method put' );
$r = new ReflectionMethod('RestClient', 'put');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'body');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'user');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'pwd');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'contentType');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -244,10 +346,25 @@
*/
public function testget()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('get', $methods ), 'exists method get' );
$r = new ReflectionMethod('RestClient', 'get');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'user');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'pwd');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'contentType');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -256,10 +373,27 @@
*/
public function testdelete()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
$r = new ReflectionMethod('RestClient', 'delete');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'user');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'pwd');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'contentType');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -268,10 +402,33 @@
*/
public function testcall()
{
if (class_exists('RestClient')) {
$methods = get_class_methods( 'RestClient');
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('call', $methods ), 'exists method call' );
$r = new ReflectionMethod('RestClient', 'call');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'method');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'url');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'body');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'user');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'pwd');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'contentType');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.table.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.table.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var Table
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classTableTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Table();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 23);
}
/**
* @covers Table::Table
* @todo Implement testTable().
*/
public function testTable()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'Table', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Table', $methods ), 'exists method Table' );
$r = new ReflectionMethod('Table', 'Table');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +70,16 @@
*/
public function testSetTo()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' );
$r = new ReflectionMethod('Table', 'SetTo');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +88,24 @@
*/
public function testSetSource()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'SetSource', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('SetSource', $methods ), 'exists method SetSource' );
$r = new ReflectionMethod('Table', 'SetSource');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'stQry');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'stDefaultOrder');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'UID');
$this->assertTrue( $params[2]->getName() == 'stDefaultOrderDir');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'ASC');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +114,12 @@
*/
public function testGetSource()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'GetSource', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('GetSource', $methods ), 'exists method GetSource' );
$r = new ReflectionMethod('Table', 'GetSource');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +128,12 @@
*/
public function testTotalCount()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'TotalCount', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('TotalCount', $methods ), 'exists method TotalCount' );
$r = new ReflectionMethod('Table', 'TotalCount');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +142,12 @@
*/
public function testCount()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'Count', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Count', $methods ), 'exists method Count' );
$r = new ReflectionMethod('Table', 'Count');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +156,12 @@
*/
public function testCurRow()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'CurRow', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('CurRow', $methods ), 'exists method CurRow' );
$r = new ReflectionMethod('Table', 'CurRow');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +170,12 @@
*/
public function testColumnCount()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'ColumnCount', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('ColumnCount', $methods ), 'exists method ColumnCount' );
$r = new ReflectionMethod('Table', 'ColumnCount');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +184,12 @@
*/
public function testRead()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'Read', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Read', $methods ), 'exists method Read' );
$r = new ReflectionMethod('Table', 'Read');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +198,16 @@
*/
public function testSeek()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'Seek', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Seek', $methods ), 'exists method Seek' );
$r = new ReflectionMethod('Table', 'Seek');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +216,12 @@
*/
public function testMoveFirst()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'MoveFirst', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('MoveFirst', $methods ), 'exists method MoveFirst' );
$r = new ReflectionMethod('Table', 'MoveFirst');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +230,12 @@
*/
public function testEOF()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'EOF', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('EOF', $methods ), 'exists method EOF' );
$r = new ReflectionMethod('Table', 'EOF');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +244,40 @@
*/
public function testAddColumn()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'AddColumn', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddColumn', $methods ), 'exists method AddColumn' );
$r = new ReflectionMethod('Table', 'AddColumn');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strLabel');
$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() == 'text');
$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() == 'strAlign');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == 'left');
$this->assertTrue( $params[4]->getName() == 'intWidth');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '0');
$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() == 'strContent');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +286,48 @@
*/
public function testAddRawColumn()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'AddRawColumn', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddRawColumn', $methods ), 'exists method AddRawColumn' );
$r = new ReflectionMethod('Table', 'AddRawColumn');
$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() == 'text');
$this->assertTrue( $params[1]->getName() == 'strName');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'strAlign');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'left');
$this->assertTrue( $params[3]->getName() == 'intWidth');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '0');
$this->assertTrue( $params[4]->getName() == 'strTarget');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'strContent');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '');
$this->assertTrue( $params[6]->getName() == 'strExtra');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == '');
$this->assertTrue( $params[7]->getName() == 'strCondition');
$this->assertTrue( $params[7]->isArray() == false);
$this->assertTrue( $params[7]->isOptional () == true);
$this->assertTrue( $params[7]->getDefaultValue() == '');
$this->assertTrue( $params[8]->getName() == 'orderByThis');
$this->assertTrue( $params[8]->isArray() == false);
$this->assertTrue( $params[8]->isOptional () == true);
$this->assertTrue( $params[8]->getDefaultValue() == '1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +336,23 @@
*/
public function testRenderTitle()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'RenderTitle', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('RenderTitle', $methods ), 'exists method RenderTitle' );
$r = new ReflectionMethod('Table', 'RenderTitle');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'pa');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'intPos');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '1');
$this->assertTrue( $params[2]->getName() == 'strClass');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'tblHeader');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +361,23 @@
*/
public function testRenderTitle_ajax()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'RenderTitle_ajax', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('RenderTitle_ajax', $methods ), 'exists method RenderTitle_ajax' );
$r = new ReflectionMethod('Table', 'RenderTitle_ajax');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'pa');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'intPos');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '1');
$this->assertTrue( $params[2]->getName() == 'strClass');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'tblHeader');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +386,29 @@
*/
public function testRenderTitle2()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'RenderTitle2', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('RenderTitle2', $methods ), 'exists method RenderTitle2' );
$r = new ReflectionMethod('Table', 'RenderTitle2');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'pa');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'fil');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'intPos');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'strClass');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == 'tblHeader');
$this->assertTrue( $params[4]->getName() == 'auxgetval');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +417,32 @@
*/
public function testRenderColumn()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'RenderColumn', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('RenderColumn', $methods ), 'exists method RenderColumn' );
$r = new ReflectionMethod('Table', 'RenderColumn');
$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() == 'strClass');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'tblCell');
$this->assertTrue( $params[2]->getName() == 'strClassLink');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'tblCellA');
$this->assertTrue( $params[3]->getName() == 'number');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '0');
$this->assertTrue( $params[4]->getName() == 'renderTD');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +451,19 @@
*/
public function testSetAction()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'SetAction', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('SetAction', $methods ), 'exists method SetAction' );
$r = new ReflectionMethod('Table', 'SetAction');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'strAction');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Continue');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -244,10 +472,21 @@
*/
public function testsetTranslate()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'setTranslate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setTranslate', $methods ), 'exists method setTranslate' );
$r = new ReflectionMethod('Table', 'setTranslate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'contexto');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'tabla');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'nombre');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -256,10 +495,21 @@
*/
public function testtranslateValue()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'translateValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('translateValue', $methods ), 'exists method translateValue' );
$r = new ReflectionMethod('Table', 'translateValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'contexto');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'valor');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'lang');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -268,10 +518,15 @@
*/
public function testsetContext()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'setContext', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setContext', $methods ), 'exists method setContext' );
$r = new ReflectionMethod('Table', 'setContext');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'contexto');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -280,10 +535,19 @@
*/
public function testParsingFromHtml()
{
if (class_exists('Table')) {
$methods = get_class_methods( 'Table');
$this->assertTrue( in_array( 'ParsingFromHtml', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('ParsingFromHtml', $methods ), 'exists method ParsingFromHtml' );
$r = new ReflectionMethod('Table', 'ParsingFromHtml');
$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() == 'number');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '100000000');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.templatePower.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 20:28:30.
*/
class classTemplatePowerParserTest extends PHPUnit_Framework_TestCase
{
/**
* @var TemplatePowerParser
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classTemplatePowerParserTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new TemplatePowerParser();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 8);
}
/**
* @covers TemplatePowerParser::TemplatePowerParser
* @todo Implement testTemplatePowerParser().
*/
public function testTemplatePowerParser()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( 'TemplatePowerParser', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,15 @@
*/
public function test__errorAlert()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( '__errorAlert', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +89,12 @@
*/
public function test__prepare()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( '__prepare', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__prepare', $methods ), 'exists method __prepare' );
$r = new ReflectionMethod('TemplatePowerParser', '__prepare');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +103,12 @@
*/
public function test__cleanUp()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( '__cleanUp', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__cleanUp', $methods ), 'exists method __cleanUp' );
$r = new ReflectionMethod('TemplatePowerParser', '__cleanUp');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +117,18 @@
*/
public function test__prepareTemplate()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( '__prepareTemplate', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +137,21 @@
*/
public function test__parseTemplate()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( '__parseTemplate', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +160,12 @@
*/
public function testversion()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( 'version', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('version', $methods ), 'exists method version' );
$r = new ReflectionMethod('TemplatePowerParser', 'version');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +174,22 @@
*/
public function testassignInclude()
{
if (class_exists('TemplatePowerParser')) {
$methods = get_class_methods( 'TemplatePowerParser');
$this->assertTrue( in_array( 'assignInclude', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.templatePower.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 20:28:30.
*/
class classTemplatePowerTest extends PHPUnit_Framework_TestCase
{
/**
* @var TemplatePower
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classTemplatePowerTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new TemplatePower();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 25);
}
/**
* @covers TemplatePower::TemplatePower
* @todo Implement testTemplatePower().
*/
public function testTemplatePower()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'TemplatePower', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('TemplatePower', $methods ), 'exists method TemplatePower' );
$r = new ReflectionMethod('TemplatePower', 'TemplatePower');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tpl_file');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'type');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '0');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function test__deSerializeTPL()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( '__deSerializeTPL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__deSerializeTPL', $methods ), 'exists method __deSerializeTPL' );
$r = new ReflectionMethod('TemplatePower', '__deSerializeTPL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'stpl_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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +94,12 @@
*/
public function test__makeContentRoot()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( '__makeContentRoot', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__makeContentRoot', $methods ), 'exists method __makeContentRoot' );
$r = new ReflectionMethod('TemplatePower', '__makeContentRoot');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +108,18 @@
*/
public function test__assign()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( '__assign', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__assign', $methods ), 'exists method __assign' );
$r = new ReflectionMethod('TemplatePower', '__assign');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'varname');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +128,18 @@
*/
public function test__assignGlobal()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( '__assignGlobal', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__assignGlobal', $methods ), 'exists method __assignGlobal' );
$r = new ReflectionMethod('TemplatePower', '__assignGlobal');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'varname');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +148,15 @@
*/
public function test__outputContent()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( '__outputContent', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__outputContent', $methods ), 'exists method __outputContent' );
$r = new ReflectionMethod('TemplatePower', '__outputContent');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'blockname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +165,12 @@
*/
public function test__printVars()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( '__printVars', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__printVars', $methods ), 'exists method __printVars' );
$r = new ReflectionMethod('TemplatePower', '__printVars');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +179,12 @@
*/
public function testserializedBase()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'serializedBase', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('serializedBase', $methods ), 'exists method serializedBase' );
$r = new ReflectionMethod('TemplatePower', 'serializedBase');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +193,16 @@
*/
public function testshowUnAssigned()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'showUnAssigned', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('showUnAssigned', $methods ), 'exists method showUnAssigned' );
$r = new ReflectionMethod('TemplatePower', 'showUnAssigned');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'state');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +211,12 @@
*/
public function testprepare()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' );
$r = new ReflectionMethod('TemplatePower', 'prepare');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +225,15 @@
*/
public function testnewBlock()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'newBlock', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('newBlock', $methods ), 'exists method newBlock' );
$r = new ReflectionMethod('TemplatePower', 'newBlock');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'blockname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +242,19 @@
*/
public function testassignGlobal()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'assignGlobal', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('assignGlobal', $methods ), 'exists method assignGlobal' );
$r = new ReflectionMethod('TemplatePower', 'assignGlobal');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'varname');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +263,19 @@
*/
public function testassign()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'assign', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('assign', $methods ), 'exists method assign' );
$r = new ReflectionMethod('TemplatePower', 'assign');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'varname');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +284,15 @@
*/
public function testgotoBlock()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'gotoBlock', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('gotoBlock', $methods ), 'exists method gotoBlock' );
$r = new ReflectionMethod('TemplatePower', 'gotoBlock');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'blockname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +301,15 @@
*/
public function testgetVarValue()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'getVarValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getVarValue', $methods ), 'exists method getVarValue' );
$r = new ReflectionMethod('TemplatePower', 'getVarValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'varname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +318,12 @@
*/
public function testprintToScreen()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'printToScreen', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printToScreen', $methods ), 'exists method printToScreen' );
$r = new ReflectionMethod('TemplatePower', 'printToScreen');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +332,12 @@
*/
public function testgetOutputContent()
{
if (class_exists('TemplatePower')) {
$methods = get_class_methods( 'TemplatePower');
$this->assertTrue( in_array( 'getOutputContent', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getOutputContent', $methods ), 'exists method getOutputContent' );
$r = new ReflectionMethod('TemplatePower', 'getOutputContent');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.tree.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 20:28:30.
*/
class classTreeTest extends PHPUnit_Framework_TestCase
{
/**
* @var Tree
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classTreeTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 14);
}
/**
* @covers Tree::Tree
* @todo Implement testTree().
*/
public function testTree()
{
if (class_exists('Tree')) {
$methods = get_class_methods( 'Tree');
$this->assertTrue( in_array( 'Tree', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +70,22 @@
*/
public function testaddChild()
{
if (class_exists('Tree')) {
$methods = get_class_methods( 'Tree');
$this->assertTrue( in_array( 'addChild', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +94,12 @@
*/
public function testprintPlus()
{
if (class_exists('Tree')) {
$methods = get_class_methods( 'Tree');
$this->assertTrue( in_array( 'printPlus', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printPlus', $methods ), 'exists method printPlus' );
$r = new ReflectionMethod('Tree', 'printPlus');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +108,12 @@
*/
public function testprintLabel()
{
if (class_exists('Tree')) {
$methods = get_class_methods( 'Tree');
$this->assertTrue( in_array( 'printLabel', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printLabel', $methods ), 'exists method printLabel' );
$r = new ReflectionMethod('Tree', 'printLabel');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +122,12 @@
*/
public function testprintContent()
{
if (class_exists('Tree')) {
$methods = get_class_methods( 'Tree');
$this->assertTrue( in_array( 'printContent', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printContent', $methods ), 'exists method printContent' );
$r = new ReflectionMethod('Tree', 'printContent');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +136,12 @@
*/
public function testrender()
{
if (class_exists('Tree')) {
$methods = get_class_methods( 'Tree');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('Tree', 'render');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.webResource.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.webResource.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classWebResourceTest extends PHPUnit_Framework_TestCase
{
/**
* @var WebResource
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classWebResourceTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new WebResource();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 2);
}
/**
* @covers WebResource::WebResource
* @todo Implement testWebResource().
*/
public function testWebResource()
{
if (class_exists('WebResource')) {
$methods = get_class_methods( 'WebResource');
$this->assertTrue( in_array( 'WebResource', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('WebResource', $methods ), 'exists method WebResource' );
$r = new ReflectionMethod('WebResource', 'WebResource');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'uri');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'post');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,34 +72,12 @@
*/
public function test_encode()
{
if (class_exists('WebResource')) {
$methods = get_class_methods( 'WebResource');
$this->assertTrue( in_array( '_encode', $methods ), 'seems like this function is outside this class' );
}
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('_encode', $methods ), 'exists method _encode' );
$r = new ReflectionMethod('WebResource', '_encode');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers WebResource::json_encode
* @todo Implement testjson_encode().
*/
public function testjson_encode()
{
if (class_exists('WebResource')) {
$methods = get_class_methods( 'WebResource');
$this->assertTrue( in_array( 'json_encode', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers WebResource::json_decode
* @todo Implement testjson_decode().
*/
public function testjson_decode()
{
if (class_exists('WebResource')) {
$methods = get_class_methods( 'WebResource');
$this->assertTrue( in_array( 'json_decode', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,72 @@
<?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.xmlform.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 20:28:31.
*/
class classXmlFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlFormTest extends PHPUnit_Framework_TestCase
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()
{
$this->assertTrue( count($methods) == 4);
}
/**
* @covers XmlForm::parseFile
* @todo Implement testparseFile().
*/
public function testparseFile()
{
if (class_exists('XmlForm')) {
$methods = get_class_methods( 'XmlForm');
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +75,16 @@
*/
public function testsetValues()
{
if (class_exists('XmlForm')) {
$methods = get_class_methods( 'XmlForm');
$this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +93,18 @@
*/
public function testrender()
{
if (class_exists('XmlForm')) {
$methods = get_class_methods( 'XmlForm');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +113,12 @@
*/
public function testcloneObject()
{
if (class_exists('XmlForm')) {
$methods = get_class_methods( 'XmlForm');
$this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
$r = new ReflectionMethod('XmlForm', 'cloneObject');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,78 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field::XmlForm_Field
* @todo Implement testXmlForm_Field().
*/
public function testXmlForm_Field()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'XmlForm_Field', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('XmlForm_Field', $methods ), 'exists method XmlForm_Field' );
$r = new ReflectionMethod('XmlForm_Field', 'XmlForm_Field');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xmlNode');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'lang');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'en');
$this->assertTrue( $params[2]->getName() == 'home');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'owner');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,34 +81,15 @@
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field', 'validateValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers XmlForm_Field::executeXmlDB
* @todo Implement testexecuteXmlDB().
*/
public function testexecuteXmlDB()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'executeXmlDB', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers XmlForm_Field::executePropel
* @todo Implement testexecutePropel().
*/
public function testexecutePropel()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'executePropel', $methods ), 'seems like this function is outside this class' );
}
}
/**
@@ -64,10 +98,19 @@
*/
public function testexecuteSQL()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'executeSQL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('executeSQL', $methods ), 'exists method executeSQL' );
$r = new ReflectionMethod('XmlForm_Field', 'executeSQL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'owner');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'row');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +119,23 @@
*/
public function testhtmlentities()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'htmlentities', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('htmlentities', $methods ), 'exists method htmlentities' );
$r = new ReflectionMethod('XmlForm_Field', 'htmlentities');
$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() == 'flags');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '3');
$this->assertTrue( $params[2]->getName() == 'encoding');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'utf-8');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +144,16 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +162,28 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field', '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[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() == '');
$this->assertTrue( $params[2]->getName() == 'onlyValue');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'therow');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '-1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +192,24 @@
*/
public function testrenderTable()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$r = new ReflectionMethod('XmlForm_Field', 'renderTable');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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() == 'onlyValue');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +218,12 @@
*/
public function testdependentOf()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'dependentOf', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('dependentOf', $methods ), 'exists method dependentOf' );
$r = new ReflectionMethod('XmlForm_Field', 'dependentOf');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +232,18 @@
*/
public function testmask()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'mask', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('mask', $methods ), 'exists method mask' );
$r = new ReflectionMethod('XmlForm_Field', 'mask');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'format');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +252,12 @@
*/
public function testgetAttributes()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'getAttributes', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAttributes', $methods ), 'exists method getAttributes' );
$r = new ReflectionMethod('XmlForm_Field', 'getAttributes');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +266,12 @@
*/
public function testgetEvents()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'getEvents', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getEvents', $methods ), 'exists method getEvents' );
$r = new ReflectionMethod('XmlForm_Field', 'getEvents');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +280,15 @@
*/
public function testattachEvents()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
$r = new ReflectionMethod('XmlForm_Field', 'attachEvents');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'elementRef');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +297,16 @@
*/
public function testcreateXmlNode()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'createXmlNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('createXmlNode', $methods ), 'exists method createXmlNode' );
$r = new ReflectionMethod('XmlForm_Field', 'createXmlNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'includeDefaultValues');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +315,19 @@
*/
public function testupdateXmlNode()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'updateXmlNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('updateXmlNode', $methods ), 'exists method updateXmlNode' );
$r = new ReflectionMethod('XmlForm_Field', 'updateXmlNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'node');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'includeDefaultValues');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +336,16 @@
*/
public function testgetXmlAttributes()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'getXmlAttributes', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getXmlAttributes', $methods ), 'exists method getXmlAttributes' );
$r = new ReflectionMethod('XmlForm_Field', 'getXmlAttributes');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'includeDefaultValues');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +354,18 @@
*/
public function testmaskValue()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$r = new ReflectionMethod('XmlForm_Field', '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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +374,12 @@
*/
public function testcloneObject()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
$r = new ReflectionMethod('XmlForm_Field', 'cloneObject');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -244,10 +388,15 @@
*/
public function testgetPMTableValue()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'getPMTableValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getPMTableValue', $methods ), 'exists method getPMTableValue' );
$r = new ReflectionMethod('XmlForm_Field', 'getPMTableValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'oOwner');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -256,10 +405,16 @@
*/
public function testNSRequiredValue()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'NSRequiredValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('NSRequiredValue', $methods ), 'exists method NSRequiredValue' );
$r = new ReflectionMethod('XmlForm_Field', 'NSRequiredValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'show');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -268,10 +423,16 @@
*/
public function testNSGridLabel()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'NSGridLabel', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('NSGridLabel', $methods ), 'exists method NSGridLabel' );
$r = new ReflectionMethod('XmlForm_Field', 'NSGridLabel');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'show');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -280,10 +441,16 @@
*/
public function testNSDefaultValue()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'NSDefaultValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('NSDefaultValue', $methods ), 'exists method NSDefaultValue' );
$r = new ReflectionMethod('XmlForm_Field', 'NSDefaultValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'show');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -292,10 +459,16 @@
*/
public function testNSGridType()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'NSGridType', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('NSGridType', $methods ), 'exists method NSGridType' );
$r = new ReflectionMethod('XmlForm_Field', 'NSGridType');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'show');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -304,10 +477,16 @@
*/
public function testNSDependentFields()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'NSDependentFields', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('NSDependentFields', $methods ), 'exists method NSDependentFields' );
$r = new ReflectionMethod('XmlForm_Field', 'NSDependentFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'show');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -316,10 +495,12 @@
*/
public function testrenderHint()
{
if (class_exists('XmlForm_Field')) {
$methods = get_class_methods( 'XmlForm_Field');
$this->assertTrue( in_array( 'renderHint', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderHint', $methods ), 'exists method renderHint' );
$r = new ReflectionMethod('XmlForm_Field', 'renderHint');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Button
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Button();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Button::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Button')) {
$methods = get_class_methods( 'XmlForm_Field_Button');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CaptionCurrency
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_CaptionCurrency();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_CaptionCurrency::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_CaptionCurrency')) {
$methods = get_class_methods( 'XmlForm_Field_CaptionCurrency');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CaptionPercentage
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_CaptionPercentage();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_CaptionPercentage::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_CaptionPercentage')) {
$methods = get_class_methods( 'XmlForm_Field_CaptionPercentage');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Caption
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Caption();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Caption::validateValue
* @todo Implement testvalidateValue().
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field_Caption')) {
$methods = get_class_methods( 'XmlForm_Field_Caption');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,36 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Caption')) {
$methods = get_class_methods( 'XmlForm_Field_Caption');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CheckGroup
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_CheckGroup();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_CheckGroup::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_CheckGroup')) {
$methods = get_class_methods( 'XmlForm_Field_CheckGroup');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CheckGroupView
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_CheckGroupView();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_CheckGroupView::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_CheckGroupView')) {
$methods = get_class_methods( 'XmlForm_Field_CheckGroupView');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkbox2
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Checkbox2();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Checkbox2::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Checkbox2')) {
$methods = get_class_methods( 'XmlForm_Field_Checkbox2');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkbox
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Checkbox();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Checkbox::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Checkbox')) {
$methods = get_class_methods( 'XmlForm_Field_Checkbox');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Checkbox')) {
$methods = get_class_methods( 'XmlForm_Field_Checkbox');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$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 () == false);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +94,18 @@
*/
public function testmaskValue()
{
if (class_exists('XmlForm_Field_Checkbox')) {
$methods = get_class_methods( 'XmlForm_Field_Checkbox');
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkboxpt
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Checkboxpt();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Checkboxpt::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Checkboxpt')) {
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Checkboxpt')) {
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$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 () == false);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +94,18 @@
*/
public function testmaskValue()
{
if (class_exists('XmlForm_Field_Checkboxpt')) {
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt');
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
}
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Currency
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Currency();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Currency::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Currency')) {
$methods = get_class_methods( 'XmlForm_Field_Currency');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Currency')) {
$methods = get_class_methods( 'XmlForm_Field_Currency');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$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 () == false);
$this->assertTrue( $params[1]->getName() == 'owner');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,70 @@
<?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.xmlformExtension.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.xmlformExtension.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_DVEditor
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_DVEditor();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_DVEditor::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_DVEditor')) {
$methods = get_class_methods( 'XmlForm_Field_DVEditor');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_DVEditor', 'render');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +73,15 @@
*/
public function testattachEvents()
{
if (class_exists('XmlForm_Field_DVEditor')) {
$methods = get_class_methods( 'XmlForm_Field_DVEditor');
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
$r = new ReflectionMethod('XmlForm_Field_DVEditor', 'attachEvents');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'element');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,66 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Date2
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Date2();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 27);
}
/**
* @covers XmlForm_Field_Date2::verifyDateFormat
* @todo Implement testverifyDateFormat().
*/
public function testverifyDateFormat()
{
if (class_exists('XmlForm_Field_Date2')) {
$methods = get_class_methods( 'XmlForm_Field_Date2');
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date2', 'verifyDateFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +69,15 @@
*/
public function testisvalidBeforeFormat()
{
if (class_exists('XmlForm_Field_Date2')) {
$methods = get_class_methods( 'XmlForm_Field_Date2');
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date2', 'isvalidBeforeFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +86,18 @@
*/
public function testcalculateBeforeFormat()
{
if (class_exists('XmlForm_Field_Date2')) {
$methods = get_class_methods( 'XmlForm_Field_Date2');
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date2', 'calculateBeforeFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'sign');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +106,20 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Date2')) {
$methods = get_class_methods( 'XmlForm_Field_Date2');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Date2', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +128,24 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Date2')) {
$methods = get_class_methods( 'XmlForm_Field_Date2');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Date2', '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[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() == 'onlyValue');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,70 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Date5
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Date5();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 29);
}
/**
* @covers XmlForm_Field_Date5::verifyDateFormat
* @todo Implement testverifyDateFormat().
*/
public function testverifyDateFormat()
{
if (class_exists('XmlForm_Field_Date5')) {
$methods = get_class_methods( 'XmlForm_Field_Date5');
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date5', 'verifyDateFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'mask');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +73,15 @@
*/
public function testisvalidBeforeFormat()
{
if (class_exists('XmlForm_Field_Date5')) {
$methods = get_class_methods( 'XmlForm_Field_Date5');
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date5', 'isvalidBeforeFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +90,18 @@
*/
public function testcalculateBeforeFormat()
{
if (class_exists('XmlForm_Field_Date5')) {
$methods = get_class_methods( 'XmlForm_Field_Date5');
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date5', 'calculateBeforeFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'sign');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +110,20 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Date5')) {
$methods = get_class_methods( 'XmlForm_Field_Date5');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Date5', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +132,24 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Date5')) {
$methods = get_class_methods( 'XmlForm_Field_Date5');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Date5', '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[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() == 'onlyValue');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +158,22 @@
*/
public function test__draw_widget()
{
if (class_exists('XmlForm_Field_Date5')) {
$methods = get_class_methods( 'XmlForm_Field_Date5');
$this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' );
$r = new ReflectionMethod('XmlForm_Field_Date5', '__draw_widget');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'pID');
$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() == 'owner');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +182,18 @@
*/
public function testgetSplitDate()
{
if (class_exists('XmlForm_Field_Date5')) {
$methods = get_class_methods( 'XmlForm_Field_Date5');
$this->assertTrue( in_array( 'getSplitDate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getSplitDate', $methods ), 'exists method getSplitDate' );
$r = new ReflectionMethod('XmlForm_Field_Date5', 'getSplitDate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'mask');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,66 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Date
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Date();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 28);
}
/**
* @covers XmlForm_Field_Date::verifyDateFormat
* @todo Implement testverifyDateFormat().
*/
public function testverifyDateFormat()
{
if (class_exists('XmlForm_Field_Date')) {
$methods = get_class_methods( 'XmlForm_Field_Date');
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date', 'verifyDateFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +69,15 @@
*/
public function testisvalidBeforeFormat()
{
if (class_exists('XmlForm_Field_Date')) {
$methods = get_class_methods( 'XmlForm_Field_Date');
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date', 'isvalidBeforeFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +86,18 @@
*/
public function testcalculateBeforeFormat()
{
if (class_exists('XmlForm_Field_Date')) {
$methods = get_class_methods( 'XmlForm_Field_Date');
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
$r = new ReflectionMethod('XmlForm_Field_Date', 'calculateBeforeFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'date');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'sign');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +106,20 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Date')) {
$methods = get_class_methods( 'XmlForm_Field_Date');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Date', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +128,24 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Date')) {
$methods = get_class_methods( 'XmlForm_Field_Date');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Date', '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[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() == 'onlyValue');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +154,22 @@
*/
public function test__draw_widget()
{
if (class_exists('XmlForm_Field_Date')) {
$methods = get_class_methods( 'XmlForm_Field_Date');
$this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' );
$r = new ReflectionMethod('XmlForm_Field_Date', '__draw_widget');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'pID');
$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() == 'owner');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_DateViewTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_DateView
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_DateViewTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_DateView();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_DateView::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_DateView')) {
$methods = get_class_methods( 'XmlForm_Field_DateView');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_DateView', '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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Dropdown
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Dropdown();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Dropdown::validateValue
* @todo Implement testvalidateValue().
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field_Dropdown')) {
$methods = get_class_methods( 'XmlForm_Field_Dropdown');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field_Dropdown', '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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,36 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Dropdown')) {
$methods = get_class_methods( 'XmlForm_Field_Dropdown');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Dropdown', '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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +110,28 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Dropdown')) {
$methods = get_class_methods( 'XmlForm_Field_Dropdown');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Dropdown', '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[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() == '');
$this->assertTrue( $params[2]->getName() == 'onlyValue');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'therow');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '-1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Dropdownpt
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Dropdownpt();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Dropdownpt::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Dropdownpt')) {
$methods = get_class_methods( 'XmlForm_Field_Dropdownpt');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Dropdownpt', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function testmaskValue()
{
if (class_exists('XmlForm_Field_Dropdownpt')) {
$methods = get_class_methods( 'XmlForm_Field_Dropdownpt');
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$r = new ReflectionMethod('XmlForm_Field_Dropdownpt', '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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,13 +1,49 @@
<?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.xmlformExtension.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.xmlformExtension.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classXmlForm_Field_FastSearchTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_FastSearch
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* 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_Field_FastSearch();
}
class classXmlForm_Field_FastSearchTest extends PHPUnit_Framework_TestCase
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_FileTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_File
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_FileTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_File();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_File::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_File')) {
$methods = get_class_methods( 'XmlForm_Field_File');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_File', '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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,72 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Grid
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Grid();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 27);
}
/**
* @covers XmlForm_Field_Grid::XmlForm_Field_Grid
* @todo Implement testXmlForm_Field_Grid().
*/
public function testXmlForm_Field_Grid()
{
if (class_exists('XmlForm_Field_Grid')) {
$methods = get_class_methods( 'XmlForm_Field_Grid');
$this->assertTrue( in_array( 'XmlForm_Field_Grid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('XmlForm_Field_Grid', $methods ), 'exists method XmlForm_Field_Grid' );
$r = new ReflectionMethod('XmlForm_Field_Grid', 'XmlForm_Field_Grid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xmlnode');
$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() == 'home');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +75,18 @@
*/
public function testparseFile()
{
if (class_exists('XmlForm_Field_Grid')) {
$methods = get_class_methods( 'XmlForm_Field_Grid');
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
$r = new ReflectionMethod('XmlForm_Field_Grid', 'parseFile');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'home');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +95,19 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Grid')) {
$methods = get_class_methods( 'XmlForm_Field_Grid');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Grid', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +116,23 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Grid')) {
$methods = get_class_methods( 'XmlForm_Field_Grid');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Grid', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'therow');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '-1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +141,15 @@
*/
public function testflipValues()
{
if (class_exists('XmlForm_Field_Grid')) {
$methods = get_class_methods( 'XmlForm_Field_Grid');
$this->assertTrue( in_array( 'flipValues', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('flipValues', $methods ), 'exists method flipValues' );
$r = new ReflectionMethod('XmlForm_Field_Grid', 'flipValues');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,87 @@
<?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.htmlArea.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.dvEditor.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_HTML
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_HTML();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_HTML::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_HTML', 'render');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers XmlForm_Field_HTML::attachEvents
* @todo Implement testattachEvents().
*/
public function testattachEvents()
{
if (class_exists('XmlForm_Field_HTML')) {
$methods = get_class_methods( 'XmlForm_Field_HTML');
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
$r = new ReflectionMethod('XmlForm_Field_HTML', 'attachEvents');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'element');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Hidden
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Hidden();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Hidden::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Hidden')) {
$methods = get_class_methods( 'XmlForm_Field_Hidden');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Hidden', 'render');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Hidden')) {
$methods = get_class_methods( 'XmlForm_Field_Hidden');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Hidden', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +92,18 @@
*/
public function testrenderTable()
{
if (class_exists('XmlForm_Field_Hidden')) {
$methods = get_class_methods( 'XmlForm_Field_Hidden');
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$r = new ReflectionMethod('XmlForm_Field_Hidden', 'renderTable');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,37 +1,70 @@
<?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.xmlform.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 20:28:31.
*/
class classXmlForm_Field_ImageTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Image
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_ImageTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Image();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Image::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Image')) {
$methods = get_class_methods( 'XmlForm_Field_Image');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Image', 'render');
$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 () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers XmlForm_Field_Image::masktophp
* @todo Implement testmasktophp().
*/
public function testmasktophp()
{
if (class_exists('XmlForm_Field_Image')) {
$methods = get_class_methods( 'XmlForm_Field_Image');
$this->assertTrue( in_array( 'masktophp', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,74 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_JavaScript
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_JavaScript();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_JavaScript::XmlForm_Field_JavaScript
* @todo Implement testXmlForm_Field_JavaScript().
*/
public function testXmlForm_Field_JavaScript()
{
if (class_exists('XmlForm_Field_JavaScript')) {
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
$this->assertTrue( in_array( 'XmlForm_Field_JavaScript', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('XmlForm_Field_JavaScript', $methods ), 'exists method XmlForm_Field_JavaScript' );
$r = new ReflectionMethod('XmlForm_Field_JavaScript', 'XmlForm_Field_JavaScript');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xmlNode');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'lang');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'en');
$this->assertTrue( $params[2]->getName() == 'home');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +77,20 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_JavaScript')) {
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_JavaScript', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +99,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_JavaScript')) {
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_JavaScript', 'renderGrid');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +119,15 @@
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field_JavaScript')) {
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field_JavaScript', 'validateValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,13 +1,49 @@
<?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.xmlformExtension.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.xmlformExtension.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classXmlForm_Field_LabelTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Label
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* 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_Field_Label();
}
class classXmlForm_Field_LabelTest extends PHPUnit_Framework_TestCase
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Link
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Link();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Link::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Link')) {
$methods = get_class_methods( 'XmlForm_Field_Link');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Link', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,20 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Link')) {
$methods = get_class_methods( 'XmlForm_Field_Link');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Link', '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[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() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +96,20 @@
*/
public function testrenderTable()
{
if (class_exists('XmlForm_Field_Link')) {
$methods = get_class_methods( 'XmlForm_Field_Link');
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$r = new ReflectionMethod('XmlForm_Field_Link', 'renderTable');
$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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Listbox
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Listbox();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Listbox::validateValue
* @todo Implement testvalidateValue().
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field_Listbox')) {
$methods = get_class_methods( 'XmlForm_Field_Listbox');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field_Listbox', '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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,20 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Listbox')) {
$methods = get_class_methods( 'XmlForm_Field_Listbox');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Listbox', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +94,20 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Listbox')) {
$methods = get_class_methods( 'XmlForm_Field_Listbox');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Listbox', 'renderGrid');
$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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_PasswordTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Password
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_PasswordTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Password();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Password::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Password')) {
$methods = get_class_methods( 'XmlForm_Field_Password');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Password', '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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_PercentageTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Percentage
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_PercentageTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Percentage();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Percentage::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Percentage')) {
$methods = get_class_methods( 'XmlForm_Field_Percentage');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Percentage', '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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_PrintTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Print
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_PrintTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Print();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Print::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Print')) {
$methods = get_class_methods( 'XmlForm_Field_Print');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Print', '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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_RadioGroupTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_RadioGroup
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_RadioGroupTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_RadioGroup();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_RadioGroup::validateValue
* @todo Implement testvalidateValue().
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field_RadioGroup')) {
$methods = get_class_methods( 'XmlForm_Field_RadioGroup');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field_RadioGroup', '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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,18 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_RadioGroup')) {
$methods = get_class_methods( 'XmlForm_Field_RadioGroup');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_RadioGroup', 'render');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_RadioGroupViewTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_RadioGroupView
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_RadioGroupViewTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_RadioGroupView();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_RadioGroupView::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_RadioGroupView')) {
$methods = get_class_methods( 'XmlForm_Field_RadioGroupView');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_RadioGroupView', '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->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_ResetTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Reset
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_ResetTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Reset();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Reset::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Reset')) {
$methods = get_class_methods( 'XmlForm_Field_Reset');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Reset', 'render');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_SimpleTextTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_SimpleText
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_SimpleTextTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_SimpleText();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_SimpleText::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_SimpleText')) {
$methods = get_class_methods( 'XmlForm_Field_SimpleText');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_SimpleText', 'render');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_SimpleText')) {
$methods = get_class_methods( 'XmlForm_Field_SimpleText');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_SimpleText', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_SubmitTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Submit
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_SubmitTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Submit();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Submit::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Submit')) {
$methods = get_class_methods( 'XmlForm_Field_Submit');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Submit', 'render');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_SubtitleTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Subtitle
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_SubtitleTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Subtitle();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Subtitle::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Subtitle')) {
$methods = get_class_methods( 'XmlForm_Field_Subtitle');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Subtitle', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +70,15 @@
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field_Subtitle')) {
$methods = get_class_methods( 'XmlForm_Field_Subtitle');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field_Subtitle', 'validateValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_SuggestTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Suggest
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_SuggestTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Suggest();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Suggest::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Suggest')) {
$methods = get_class_methods( 'XmlForm_Field_Suggest');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Suggest', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Suggest')) {
$methods = get_class_methods( 'XmlForm_Field_Suggest');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Suggest', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +94,18 @@
*/
public function testrenderTable()
{
if (class_exists('XmlForm_Field_Suggest')) {
$methods = get_class_methods( 'XmlForm_Field_Suggest');
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$r = new ReflectionMethod('XmlForm_Field_Suggest', 'renderTable');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_TextTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Text
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_TextTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Text();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Text::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Text')) {
$methods = get_class_methods( 'XmlForm_Field_Text');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Text', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Text')) {
$methods = get_class_methods( 'XmlForm_Field_Text');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Text', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +94,18 @@
*/
public function testrenderTable()
{
if (class_exists('XmlForm_Field_Text')) {
$methods = get_class_methods( 'XmlForm_Field_Text');
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$r = new ReflectionMethod('XmlForm_Field_Text', 'renderTable');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_TextareaTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Textarea
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_TextareaTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Textarea();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Textarea::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Textarea')) {
$methods = get_class_methods( 'XmlForm_Field_Textarea');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Textarea', 'render');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_Textarea')) {
$methods = get_class_methods( 'XmlForm_Field_Textarea');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_Textarea', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_TitleTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Title
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_TitleTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_Title();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_Title::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Title')) {
$methods = get_class_methods( 'XmlForm_Field_Title');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Title', 'render');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,15 @@
*/
public function testvalidateValue()
{
if (class_exists('XmlForm_Field_Title')) {
$methods = get_class_methods( 'XmlForm_Field_Title');
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$r = new ReflectionMethod('XmlForm_Field_Title', 'validateValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,75 @@
<?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.xmlMenu.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.xmlMenu.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classXmlForm_Field_XmlMenuTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_XmlMenu
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_XmlMenuTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_XmlMenu();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 25);
}
/**
* @covers XmlForm_Field_XmlMenu::XmlForm_Field_XmlMenu
* @todo Implement testXmlForm_Field_XmlMenu().
*/
public function testXmlForm_Field_XmlMenu()
{
if (class_exists('XmlForm_Field_XmlMenu')) {
$methods = get_class_methods( 'XmlForm_Field_XmlMenu');
$this->assertTrue( in_array( 'XmlForm_Field_XmlMenu', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('XmlForm_Field_XmlMenu', $methods ), 'exists method XmlForm_Field_XmlMenu' );
$r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'XmlForm_Field_XmlMenu');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xmlNode');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'lang');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'home');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'owner');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +78,15 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_XmlMenu')) {
$methods = get_class_methods( 'XmlForm_Field_XmlMenu');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +95,15 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_XmlMenu')) {
$methods = get_class_methods( 'XmlForm_Field_XmlMenu');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'value');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,72 @@
<?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.xmlform.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 20:28:31.
*/
class classXmlForm_Field_XmlformTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Xmlform
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_XmlformTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_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()
{
$this->assertTrue( count($methods) == 26);
}
/**
* @covers XmlForm_Field_Xmlform::XmlForm_Field_Xmlform
* @todo Implement testXmlForm_Field_Xmlform().
*/
public function testXmlForm_Field_Xmlform()
{
if (class_exists('XmlForm_Field_Xmlform')) {
$methods = get_class_methods( 'XmlForm_Field_Xmlform');
$this->assertTrue( in_array( 'XmlForm_Field_Xmlform', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('XmlForm_Field_Xmlform', $methods ), 'exists method XmlForm_Field_Xmlform' );
$r = new ReflectionMethod('XmlForm_Field_Xmlform', 'XmlForm_Field_Xmlform');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xmlnode');
$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() == 'home');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +75,18 @@
*/
public function testparseFile()
{
if (class_exists('XmlForm_Field_Xmlform')) {
$methods = get_class_methods( 'XmlForm_Field_Xmlform');
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
$r = new ReflectionMethod('XmlForm_Field_Xmlform', 'parseFile');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'home');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +95,15 @@
*/
public function testrender()
{
if (class_exists('XmlForm_Field_Xmlform')) {
$methods = get_class_methods( 'XmlForm_Field_Xmlform');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_Xmlform', 'render');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,71 @@
<?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.xmlform.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 20:28:30.
*/
class classXmlForm_Field_YesNoTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_YesNo
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_YesNoTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_YesNo();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 24);
}
/**
* @covers XmlForm_Field_YesNo::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('XmlForm_Field_YesNo')) {
$methods = get_class_methods( 'XmlForm_Field_YesNo');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('XmlForm_Field_YesNo', '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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +74,18 @@
*/
public function testrenderGrid()
{
if (class_exists('XmlForm_Field_YesNo')) {
$methods = get_class_methods( 'XmlForm_Field_YesNo');
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$r = new ReflectionMethod('XmlForm_Field_YesNo', 'renderGrid');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlformExtension.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.xmlformExtension.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classXmlForm_Field_cellMarkTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_cellMark
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXmlForm_Field_cellMarkTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new XmlForm_Field_cellMark();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 26);
}
/**
* @covers XmlForm_Field_cellMark::tdStyle
* @todo Implement testtdStyle().
*/
public function testtdStyle()
{
if (class_exists('XmlForm_Field_cellMark')) {
$methods = get_class_methods( 'XmlForm_Field_cellMark');
$this->assertTrue( in_array( 'tdStyle', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('tdStyle', $methods ), 'exists method tdStyle' );
$r = new ReflectionMethod('XmlForm_Field_cellMark', 'tdStyle');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,18 @@
*/
public function testtdClass()
{
if (class_exists('XmlForm_Field_cellMark')) {
$methods = get_class_methods( 'XmlForm_Field_cellMark');
$this->assertTrue( in_array( 'tdClass', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('tdClass', $methods ), 'exists method tdClass' );
$r = new ReflectionMethod('XmlForm_Field_cellMark', 'tdClass');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'values');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,76 @@
<?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.xmlDocument.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.xmlDocument.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classXml_NodeTest extends PHPUnit_Framework_TestCase
{
/**
* @var Xml_Node
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXml_NodeTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Xml_Node();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 8);
}
/**
* @covers Xml_Node::Xml_Node
* @todo Implement testXml_Node().
*/
public function testXml_Node()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'Xml_Node', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Xml_Node', $methods ), 'exists method Xml_Node' );
$r = new ReflectionMethod('Xml_Node', 'Xml_Node');
$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() == 'type');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'value');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'attributes');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +79,18 @@
*/
public function testaddAttribute()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'addAttribute', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addAttribute', $methods ), 'exists method addAttribute' );
$r = new ReflectionMethod('Xml_Node', 'addAttribute');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +99,15 @@
*/
public function testaddChildNode()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'addChildNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addChildNode', $methods ), 'exists method addChildNode' );
$r = new ReflectionMethod('Xml_Node', 'addChildNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'childNode');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +116,12 @@
*/
public function testtoTree()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'toTree', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('toTree', $methods ), 'exists method toTree' );
$r = new ReflectionMethod('Xml_Node', 'toTree');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +130,16 @@
*/
public function testtoArray()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'toArray', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('toArray', $methods ), 'exists method toArray' );
$r = new ReflectionMethod('Xml_Node', 'toArray');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'obj');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +148,15 @@
*/
public function testfindNode()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' );
$r = new ReflectionMethod('Xml_Node', 'findNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xpath');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +165,12 @@
*/
public function testgetXML()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' );
$r = new ReflectionMethod('Xml_Node', 'getXML');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +179,12 @@
*/
public function testgetCDATAValue()
{
if (class_exists('Xml_Node')) {
$methods = get_class_methods( 'Xml_Node');
$this->assertTrue( in_array( 'getCDATAValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getCDATAValue', $methods ), 'exists method getCDATAValue' );
$r = new ReflectionMethod('Xml_Node', 'getCDATAValue');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,63 @@
<?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.xmlDocument.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.xmlDocument.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classXml_documentTest extends PHPUnit_Framework_TestCase
{
/**
* @var Xml_document
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classXml_documentTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Xml_document();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 11);
}
/**
* @covers Xml_document::Xml_document
* @todo Implement testXml_document().
*/
public function testXml_document()
{
if (class_exists('Xml_document')) {
$methods = get_class_methods( 'Xml_document');
$this->assertTrue( in_array( 'Xml_document', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Xml_document', $methods ), 'exists method Xml_document' );
$r = new ReflectionMethod('Xml_document', 'Xml_document');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +66,19 @@
*/
public function testparseXmlFile()
{
if (class_exists('Xml_document')) {
$methods = get_class_methods( 'Xml_document');
$this->assertTrue( in_array( 'parseXmlFile', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('parseXmlFile', $methods ), 'exists method parseXmlFile' );
$r = new ReflectionMethod('Xml_document', 'parseXmlFile');
$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() == 'content');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +87,15 @@
*/
public function testfindNode()
{
if (class_exists('Xml_document')) {
$methods = get_class_methods( 'Xml_document');
$this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' );
$r = new ReflectionMethod('Xml_document', 'findNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xpath');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +104,12 @@
*/
public function testgetXML()
{
if (class_exists('Xml_document')) {
$methods = get_class_methods( 'Xml_document');
$this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' );
$r = new ReflectionMethod('Xml_document', 'getXML');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +118,15 @@
*/
public function testsave()
{
if (class_exists('Xml_document')) {
$methods = get_class_methods( 'Xml_document');
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
$r = new ReflectionMethod('Xml_document', 'save');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'filename');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,505 +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.database_mysql.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
*/
class classdatabaseTest extends PHPUnit_Framework_TestCase
{
/**
* @covers database::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateCreateTableSQL
* @todo Implement testgenerateCreateTableSQL().
*/
public function testgenerateCreateTableSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateCreateTableSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateDropTableSQL
* @todo Implement testgenerateDropTableSQL().
*/
public function testgenerateDropTableSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateDropTableSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateDropColumnSQL
* @todo Implement testgenerateDropColumnSQL().
*/
public function testgenerateDropColumnSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateDropColumnSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateAddColumnSQL
* @todo Implement testgenerateAddColumnSQL().
*/
public function testgenerateAddColumnSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateAddColumnSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateChangeColumnSQL
* @todo Implement testgenerateChangeColumnSQL().
*/
public function testgenerateChangeColumnSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateChangeColumnSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateGetPrimaryKeysSQL
* @todo Implement testgenerateGetPrimaryKeysSQL().
*/
public function testgenerateGetPrimaryKeysSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateGetPrimaryKeysSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateDropPrimaryKeysSQL
* @todo Implement testgenerateDropPrimaryKeysSQL().
*/
public function testgenerateDropPrimaryKeysSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateDropPrimaryKeysSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateAddPrimaryKeysSQL
* @todo Implement testgenerateAddPrimaryKeysSQL().
*/
public function testgenerateAddPrimaryKeysSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateAddPrimaryKeysSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateDropKeySQL
* @todo Implement testgenerateDropKeySQL().
*/
public function testgenerateDropKeySQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateDropKeySQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateAddKeysSQL
* @todo Implement testgenerateAddKeysSQL().
*/
public function testgenerateAddKeysSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateAddKeysSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateShowTablesSQL
* @todo Implement testgenerateShowTablesSQL().
*/
public function testgenerateShowTablesSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateShowTablesSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateShowTablesLikeSQL
* @todo Implement testgenerateShowTablesLikeSQL().
*/
public function testgenerateShowTablesLikeSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateShowTablesLikeSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateDescTableSQL
* @todo Implement testgenerateDescTableSQL().
*/
public function testgenerateDescTableSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateDescTableSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateTableIndexSQL
* @todo Implement testgenerateTableIndexSQL().
*/
public function testgenerateTableIndexSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateTableIndexSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::isConnected
* @todo Implement testisConnected().
*/
public function testisConnected()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'isConnected', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::logQuery
* @todo Implement testlogQuery().
*/
public function testlogQuery()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'logQuery', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::executeQuery
* @todo Implement testexecuteQuery().
*/
public function testexecuteQuery()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'executeQuery', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::countResults
* @todo Implement testcountResults().
*/
public function testcountResults()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'countResults', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getRegistry
* @todo Implement testgetRegistry().
*/
public function testgetRegistry()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getRegistry', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::close
* @todo Implement testclose().
*/
public function testclose()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateInsertSQL
* @todo Implement testgenerateInsertSQL().
*/
public function testgenerateInsertSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateInsertSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateUpdateSQL
* @todo Implement testgenerateUpdateSQL().
*/
public function testgenerateUpdateSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateUpdateSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateDeleteSQL
* @todo Implement testgenerateDeleteSQL().
*/
public function testgenerateDeleteSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateDeleteSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::generateSelectSQL
* @todo Implement testgenerateSelectSQL().
*/
public function testgenerateSelectSQL()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'generateSelectSQL', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::putQuotes
* @todo Implement testputQuotes().
*/
public function testputQuotes()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'putQuotes', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::concatString
* @todo Implement testconcatString().
*/
public function testconcatString()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'concatString', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getCaseWhen
* @todo Implement testgetCaseWhen().
*/
public function testgetCaseWhen()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getCaseWhen', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::createTableObjectPermission
* @todo Implement testcreateTableObjectPermission().
*/
public function testcreateTableObjectPermission()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'createTableObjectPermission', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getSelectReport4
* @todo Implement testgetSelectReport4().
*/
public function testgetSelectReport4()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getSelectReport4', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getSelectReport4Filter
* @todo Implement testgetSelectReport4Filter().
*/
public function testgetSelectReport4Filter()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getSelectReport4Filter', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getSelectReport5
* @todo Implement testgetSelectReport5().
*/
public function testgetSelectReport5()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getSelectReport5', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getSelectReport5Filter
* @todo Implement testgetSelectReport5Filter().
*/
public function testgetSelectReport5Filter()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getSelectReport5Filter', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getServerVersion
* @todo Implement testgetServerVersion().
*/
public function testgetServerVersion()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getServerVersion', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getDropTable
* @todo Implement testgetDropTable().
*/
public function testgetDropTable()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getDropTable', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getTableDescription
* @todo Implement testgetTableDescription().
*/
public function testgetTableDescription()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getTableDescription', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getFieldNull
* @todo Implement testgetFieldNull().
*/
public function testgetFieldNull()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getFieldNull', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getValidate
* @todo Implement testgetValidate().
*/
public function testgetValidate()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getValidate', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::reportTableExist
* @todo Implement testreportTableExist().
*/
public function testreportTableExist()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'reportTableExist', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::getLimitRenderTable
* @todo Implement testgetLimitRenderTable().
*/
public function testgetLimitRenderTable()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'getLimitRenderTable', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers database::tableExists
* @todo Implement testtableExists().
*/
public function testtableExists()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->assertTrue( in_array( 'tableExists', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,83 @@
<?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.database_base.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.database_base.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classdatabase_baseTest extends PHPUnit_Framework_TestCase
{
/**
* @var database_base
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classdatabase_baseTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new database_base();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 8);
}
/**
* @covers database_base::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('database_base', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sType');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'DB_ADAPTER');
$this->assertTrue( $params[1]->getName() == 'sServer');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'DB_HOST');
$this->assertTrue( $params[2]->getName() == 'sUser');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'DB_USER');
$this->assertTrue( $params[3]->getName() == 'sPass');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == 'DB_PASS');
$this->assertTrue( $params[4]->getName() == 'sDataBase');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == 'DB_NAME');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +86,15 @@
*/
public function testgenerateDropTableSQL()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( 'generateDropTableSQL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('generateDropTableSQL', $methods ), 'exists method generateDropTableSQL' );
$r = new ReflectionMethod('database_base', 'generateDropTableSQL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sTable');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +103,18 @@
*/
public function testgenerateCreateTableSQL()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( 'generateCreateTableSQL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('generateCreateTableSQL', $methods ), 'exists method generateCreateTableSQL' );
$r = new ReflectionMethod('database_base', 'generateCreateTableSQL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sTable');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'aColumns');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +123,18 @@
*/
public function testgenerateDropColumnSQL()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( 'generateDropColumnSQL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('generateDropColumnSQL', $methods ), 'exists method generateDropColumnSQL' );
$r = new ReflectionMethod('database_base', 'generateDropColumnSQL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sTable');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'sColumn');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +143,21 @@
*/
public function testgenerateAddColumnSQL()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( 'generateAddColumnSQL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('generateAddColumnSQL', $methods ), 'exists method generateAddColumnSQL' );
$r = new ReflectionMethod('database_base', 'generateAddColumnSQL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sTable');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'sColumn');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'aParameters');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +166,21 @@
*/
public function testgenerateChangeColumnSQL()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( 'generateChangeColumnSQL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('generateChangeColumnSQL', $methods ), 'exists method generateChangeColumnSQL' );
$r = new ReflectionMethod('database_base', 'generateChangeColumnSQL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sTable');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'sColumn');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'aParameters');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +189,15 @@
*/
public function testexecuteQuery()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( 'executeQuery', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('executeQuery', $methods ), 'exists method executeQuery' );
$r = new ReflectionMethod('database_base', 'executeQuery');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sQuery');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +206,12 @@
*/
public function testclose()
{
if (class_exists('database_base')) {
$methods = get_class_methods( 'database_base');
$this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('close', $methods ), 'exists method close' );
$r = new ReflectionMethod('database_base', 'close');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,67 @@
<?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.dynaformhandler.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.dynaformhandler.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classdynaFormHandlerTest extends PHPUnit_Framework_TestCase
{
/**
* @var dynaFormHandler
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classdynaFormHandlerTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new dynaFormHandler();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 23);
}
/**
* @covers dynaFormHandler::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('dynaFormHandler', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'file');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +70,12 @@
*/
public function testload()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('dynaFormHandler', 'load');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +84,12 @@
*/
public function testreload()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'reload', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('reload', $methods ), 'exists method reload' );
$r = new ReflectionMethod('dynaFormHandler', 'reload');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +98,12 @@
*/
public function test__cloneEmpty()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( '__cloneEmpty', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__cloneEmpty', $methods ), 'exists method __cloneEmpty' );
$r = new ReflectionMethod('dynaFormHandler', '__cloneEmpty');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +112,16 @@
*/
public function testtoString()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'toString', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('toString', $methods ), 'exists method toString' );
$r = new ReflectionMethod('dynaFormHandler', 'toString');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'op');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +130,15 @@
*/
public function testgetNode()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' );
$r = new ReflectionMethod('dynaFormHandler', 'getNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'nodename');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +147,15 @@
*/
public function testsetNode()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'setNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setNode', $methods ), 'exists method setNode' );
$r = new ReflectionMethod('dynaFormHandler', 'setNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'node');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +164,25 @@
*/
public function testadd()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'add', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('add', $methods ), 'exists method add' );
$r = new ReflectionMethod('dynaFormHandler', 'add');
$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() == 'attributes');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'childs');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'childs_childs');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +191,29 @@
*/
public function testreplace()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'replace', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('replace', $methods ), 'exists method replace' );
$r = new ReflectionMethod('dynaFormHandler', 'replace');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'replaced');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'name');
$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 () == false);
$this->assertTrue( $params[3]->getName() == 'childs');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'childs_childs');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +222,16 @@
*/
public function testsave()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
$r = new ReflectionMethod('dynaFormHandler', 'save');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'fname');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +240,12 @@
*/
public function testfixXmlFile()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'fixXmlFile', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('fixXmlFile', $methods ), 'exists method fixXmlFile' );
$r = new ReflectionMethod('dynaFormHandler', 'fixXmlFile');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +254,18 @@
*/
public function testsetHeaderAttribute()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'setHeaderAttribute', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setHeaderAttribute', $methods ), 'exists method setHeaderAttribute' );
$r = new ReflectionMethod('dynaFormHandler', 'setHeaderAttribute');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'att_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'att_value');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +274,18 @@
*/
public function testmodifyHeaderAttribute()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'modifyHeaderAttribute', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('modifyHeaderAttribute', $methods ), 'exists method modifyHeaderAttribute' );
$r = new ReflectionMethod('dynaFormHandler', 'modifyHeaderAttribute');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'att_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'att_new_value');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +294,21 @@
*/
public function testupdateAttribute()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'updateAttribute', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('updateAttribute', $methods ), 'exists method updateAttribute' );
$r = new ReflectionMethod('dynaFormHandler', 'updateAttribute');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'node_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'att_name');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'att_new_value');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +317,15 @@
*/
public function testremove()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'remove', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('remove', $methods ), 'exists method remove' );
$r = new ReflectionMethod('dynaFormHandler', 'remove');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'v');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +334,15 @@
*/
public function testnodeExists()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'nodeExists', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('nodeExists', $methods ), 'exists method nodeExists' );
$r = new ReflectionMethod('dynaFormHandler', 'nodeExists');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'node_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +351,15 @@
*/
public function testmoveUp()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'moveUp', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('moveUp', $methods ), 'exists method moveUp' );
$r = new ReflectionMethod('dynaFormHandler', 'moveUp');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'selected_node');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +368,15 @@
*/
public function testmoveDown()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'moveDown', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('moveDown', $methods ), 'exists method moveDown' );
$r = new ReflectionMethod('dynaFormHandler', 'moveDown');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'selected_node');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +385,16 @@
*/
public function testgetFields()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
$r = new ReflectionMethod('dynaFormHandler', 'getFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'aFilter');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -244,10 +403,16 @@
*/
public function testgetFieldNames()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getFieldNames', $methods ), 'exists method getFieldNames' );
$r = new ReflectionMethod('dynaFormHandler', 'getFieldNames');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'aFilter');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -256,10 +421,22 @@
*/
public function testaddChilds()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'addChilds', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addChilds', $methods ), 'exists method addChilds' );
$r = new ReflectionMethod('dynaFormHandler', 'addChilds');
$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() == 'childs');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'childs_childs');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -268,10 +445,24 @@
*/
public function testaddOrUpdateChild()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'addOrUpdateChild', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addOrUpdateChild', $methods ), 'exists method addOrUpdateChild' );
$r = new ReflectionMethod('dynaFormHandler', 'addOrUpdateChild');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xnode');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'childName');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'childValue');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'childAttributes');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -280,10 +471,19 @@
*/
public function testgetArray()
{
if (class_exists('dynaFormHandler')) {
$methods = get_class_methods( 'dynaFormHandler');
$this->assertTrue( in_array( 'getArray', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getArray', $methods ), 'exists method getArray' );
$r = new ReflectionMethod('dynaFormHandler', 'getArray');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'node');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'attributes');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,69 @@
<?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.filterForm.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.filterForm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classfilterFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var filterForm
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classfilterFormTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new filterForm();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 13);
}
/**
* @covers filterForm::render
* @todo Implement testrender().
*/
public function testrender()
{
if (class_exists('filterForm')) {
$methods = get_class_methods( 'filterForm');
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
$r = new ReflectionMethod('filterForm', '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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,66 @@
<?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.functionTest.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.functionTest.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classfunctionTestTest extends PHPUnit_Framework_TestCase
{
/**
* @var functionTest
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classfunctionTestTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new functionTest();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 2);
}
/**
* @covers functionTest::functionTest
* @todo Implement testfunctionTest().
*/
public function testfunctionTest()
{
if (class_exists('functionTest')) {
$methods = get_class_methods( 'functionTest');
$this->assertTrue( in_array( 'functionTest', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('functionTest', $methods ), 'exists method functionTest' );
$r = new ReflectionMethod('functionTest', 'functionTest');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dbc');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +69,21 @@
*/
public function testsample()
{
if (class_exists('functionTest')) {
$methods = get_class_methods( 'functionTest');
$this->assertTrue( in_array( 'sample', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('sample', $methods ), 'exists method sample' );
$r = new ReflectionMethod('functionTest', 'sample');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'testCase');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'testDomain');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'limeTestObject');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,63 @@
<?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.headPublisher.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.headPublisher.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classheadPublisherTest extends PHPUnit_Framework_TestCase
{
/**
* @var headPublisher
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classheadPublisherTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new headPublisher();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 28);
}
/**
* @covers headPublisher::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('headPublisher', '__construct');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +66,12 @@
*/
public function testgetSingleton()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' );
$r = new ReflectionMethod('headPublisher', 'getSingleton');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +80,15 @@
*/
public function testsetTitle()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'setTitle', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setTitle', $methods ), 'exists method setTitle' );
$r = new ReflectionMethod('headPublisher', 'setTitle');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'title');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +97,19 @@
*/
public function testaddMaborakFile()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'addMaborakFile', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addMaborakFile', $methods ), 'exists method addMaborakFile' );
$r = new ReflectionMethod('headPublisher', 'addMaborakFile');
$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() == 'loader');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +118,19 @@
*/
public function testaddScriptFile()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'addScriptFile', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addScriptFile', $methods ), 'exists method addScriptFile' );
$r = new ReflectionMethod('headPublisher', 'addScriptFile');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'url');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'LoadType');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '1');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +139,18 @@
*/
public function testaddInstanceModule()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'addInstanceModule', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addInstanceModule', $methods ), 'exists method addInstanceModule' );
$r = new ReflectionMethod('headPublisher', 'addInstanceModule');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'instance');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'module');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +159,18 @@
*/
public function testaddClassModule()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'addClassModule', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addClassModule', $methods ), 'exists method addClassModule' );
$r = new ReflectionMethod('headPublisher', 'addClassModule');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'class');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'module');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +179,15 @@
*/
public function testaddScriptCode()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'addScriptCode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addScriptCode', $methods ), 'exists method addScriptCode' );
$r = new ReflectionMethod('headPublisher', 'addScriptCode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'script');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +196,12 @@
*/
public function testprintHeader()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'printHeader', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printHeader', $methods ), 'exists method printHeader' );
$r = new ReflectionMethod('headPublisher', 'printHeader');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +210,12 @@
*/
public function testprintRawHeader()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'printRawHeader', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printRawHeader', $methods ), 'exists method printRawHeader' );
$r = new ReflectionMethod('headPublisher', 'printRawHeader');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +224,12 @@
*/
public function testclearScripts()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'clearScripts', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('clearScripts', $methods ), 'exists method clearScripts' );
$r = new ReflectionMethod('headPublisher', 'clearScripts');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +238,12 @@
*/
public function testincludeExtJs()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'includeExtJs', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('includeExtJs', $methods ), 'exists method includeExtJs' );
$r = new ReflectionMethod('headPublisher', 'includeExtJs');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +252,15 @@
*/
public function testgetExtJsStylesheets()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'getExtJsStylesheets', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getExtJsStylesheets', $methods ), 'exists method getExtJsStylesheets' );
$r = new ReflectionMethod('headPublisher', 'getExtJsStylesheets');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'skinName');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,10 +269,12 @@
*/
public function testgetExtJsScripts()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'getExtJsScripts', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getExtJsScripts', $methods ), 'exists method getExtJsScripts' );
$r = new ReflectionMethod('headPublisher', 'getExtJsScripts');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -184,10 +283,12 @@
*/
public function testgetExtJsVariablesScript()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'getExtJsVariablesScript', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getExtJsVariablesScript', $methods ), 'exists method getExtJsVariablesScript' );
$r = new ReflectionMethod('headPublisher', 'getExtJsVariablesScript');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -196,10 +297,12 @@
*/
public function testgetExtJsLibraries()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'getExtJsLibraries', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getExtJsLibraries', $methods ), 'exists method getExtJsLibraries' );
$r = new ReflectionMethod('headPublisher', 'getExtJsLibraries');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -208,10 +311,15 @@
*/
public function testusingExtJs()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'usingExtJs', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('usingExtJs', $methods ), 'exists method usingExtJs' );
$r = new ReflectionMethod('headPublisher', 'usingExtJs');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'library');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +328,15 @@
*/
public function testsetExtSkin()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'setExtSkin', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setExtSkin', $methods ), 'exists method setExtSkin' );
$r = new ReflectionMethod('headPublisher', 'setExtSkin');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'skin');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +345,23 @@
*/
public function testaddExtJsScript()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'addExtJsScript', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addExtJsScript', $methods ), 'exists method addExtJsScript' );
$r = new ReflectionMethod('headPublisher', 'addExtJsScript');
$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() == 'debug');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'isExternal');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -244,10 +370,15 @@
*/
public function testAddContent()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' );
$r = new ReflectionMethod('headPublisher', 'AddContent');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'templateHtml');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -256,10 +387,12 @@
*/
public function testgetContent()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'getContent', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getContent', $methods ), 'exists method getContent' );
$r = new ReflectionMethod('headPublisher', 'getContent');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -268,10 +401,18 @@
*/
public function testAssign()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'Assign', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Assign', $methods ), 'exists method Assign' );
$r = new ReflectionMethod('headPublisher', 'Assign');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'variable');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -280,10 +421,18 @@
*/
public function testAssignVar()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'AssignVar', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AssignVar', $methods ), 'exists method AssignVar' );
$r = new ReflectionMethod('headPublisher', 'AssignVar');
$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);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -292,10 +441,12 @@
*/
public function testgetVars()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' );
$r = new ReflectionMethod('headPublisher', 'getVars');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -304,10 +455,18 @@
*/
public function testAssignNumber()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'AssignNumber', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('AssignNumber', $methods ), 'exists method AssignNumber' );
$r = new ReflectionMethod('headPublisher', 'AssignNumber');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'variable');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -316,10 +475,12 @@
*/
public function testrenderExtJs()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'renderExtJs', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderExtJs', $methods ), 'exists method renderExtJs' );
$r = new ReflectionMethod('headPublisher', 'renderExtJs');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -328,10 +489,15 @@
*/
public function teststripCodeQuotes()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'stripCodeQuotes', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('stripCodeQuotes', $methods ), 'exists method stripCodeQuotes' );
$r = new ReflectionMethod('headPublisher', 'stripCodeQuotes');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sJson');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -340,10 +506,12 @@
*/
public function testdisableHeaderScripts()
{
if (class_exists('headPublisher')) {
$methods = get_class_methods( 'headPublisher');
$this->assertTrue( in_array( 'disableHeaderScripts', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('disableHeaderScripts', $methods ), 'exists method disableHeaderScripts' );
$r = new ReflectionMethod('headPublisher', 'disableHeaderScripts');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,66 @@
<?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.i18n_po.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.i18n_po.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classi18n_POTest extends PHPUnit_Framework_TestCase
{
/**
* @var i18n_PO
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classi18n_POTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new i18n_PO();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 17);
}
/**
* @covers i18n_PO::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('i18n_PO', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'file');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +69,12 @@
*/
public function testbuildInit()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'buildInit', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('buildInit', $methods ), 'exists method buildInit' );
$r = new ReflectionMethod('i18n_PO', 'buildInit');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +83,12 @@
*/
public function testreadInit()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'readInit', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('readInit', $methods ), 'exists method readInit' );
$r = new ReflectionMethod('i18n_PO', 'readInit');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +97,18 @@
*/
public function testaddHeader()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'addHeader', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addHeader', $methods ), 'exists method addHeader' );
$r = new ReflectionMethod('i18n_PO', 'addHeader');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'id');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +117,15 @@
*/
public function testaddTranslatorComment()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'addTranslatorComment', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addTranslatorComment', $methods ), 'exists method addTranslatorComment' );
$r = new ReflectionMethod('i18n_PO', 'addTranslatorComment');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +134,15 @@
*/
public function testaddExtractedComment()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'addExtractedComment', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addExtractedComment', $methods ), 'exists method addExtractedComment' );
$r = new ReflectionMethod('i18n_PO', 'addExtractedComment');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +151,15 @@
*/
public function testaddReference()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'addReference', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addReference', $methods ), 'exists method addReference' );
$r = new ReflectionMethod('i18n_PO', 'addReference');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +168,15 @@
*/
public function testaddFlag()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'addFlag', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addFlag', $methods ), 'exists method addFlag' );
$r = new ReflectionMethod('i18n_PO', 'addFlag');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +185,15 @@
*/
public function testaddPreviousUntranslatedString()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'addPreviousUntranslatedString', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addPreviousUntranslatedString', $methods ), 'exists method addPreviousUntranslatedString' );
$r = new ReflectionMethod('i18n_PO', 'addPreviousUntranslatedString');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +202,18 @@
*/
public function testaddTranslation()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'addTranslation', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addTranslation', $methods ), 'exists method addTranslation' );
$r = new ReflectionMethod('i18n_PO', 'addTranslation');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'msgid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'msgstr');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +222,15 @@
*/
public function test_writeLine()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( '_writeLine', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('_writeLine', $methods ), 'exists method _writeLine' );
$r = new ReflectionMethod('i18n_PO', '_writeLine');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -148,10 +239,15 @@
*/
public function test_write()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( '_write', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('_write', $methods ), 'exists method _write' );
$r = new ReflectionMethod('i18n_PO', '_write');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'str');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -160,10 +256,19 @@
*/
public function testprepare()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' );
$r = new ReflectionMethod('i18n_PO', 'prepare');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'string');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'reverse');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -172,34 +277,12 @@
*/
public function testheaderStroke()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'headerStroke', $methods ), 'seems like this function is outside this class' );
}
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('headerStroke', $methods ), 'exists method headerStroke' );
$r = new ReflectionMethod('i18n_PO', 'headerStroke');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers i18n_PO::skipCommets
* @todo Implement testskipCommets().
*/
public function testskipCommets()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'skipCommets', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers i18n_PO::readHeaders
* @todo Implement testreadHeaders().
*/
public function testreadHeaders()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'readHeaders', $methods ), 'seems like this function is outside this class' );
}
}
/**
@@ -208,10 +291,12 @@
*/
public function testgetHeaders()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' );
$r = new ReflectionMethod('i18n_PO', 'getHeaders');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -220,10 +305,12 @@
*/
public function testgetTranslation()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( 'getTranslation', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getTranslation', $methods ), 'exists method getTranslation' );
$r = new ReflectionMethod('i18n_PO', 'getTranslation');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -232,10 +319,12 @@
*/
public function test__destruct()
{
if (class_exists('i18n_PO')) {
$methods = get_class_methods( 'i18n_PO');
$this->assertTrue( in_array( '__destruct', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__destruct', $methods ), 'exists method __destruct' );
$r = new ReflectionMethod('i18n_PO', '__destruct');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,63 @@
<?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.mailer.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.mailer.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classmailerTest extends PHPUnit_Framework_TestCase
{
/**
* @var mailer
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classmailerTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new mailer();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 7);
}
/**
* @covers mailer::instanceMailer
* @todo Implement testinstanceMailer().
*/
public function testinstanceMailer()
{
if (class_exists('mailer')) {
$methods = get_class_methods( 'mailer');
$this->assertTrue( in_array( 'instanceMailer', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('instanceMailer', $methods ), 'exists method instanceMailer' );
$r = new ReflectionMethod('mailer', 'instanceMailer');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +66,15 @@
*/
public function testarpaEMAIL()
{
if (class_exists('mailer')) {
$methods = get_class_methods( 'mailer');
$this->assertTrue( in_array( 'arpaEMAIL', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('arpaEMAIL', $methods ), 'exists method arpaEMAIL' );
$r = new ReflectionMethod('mailer', 'arpaEMAIL');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'address');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +83,52 @@
*/
public function testsendTemplate()
{
if (class_exists('mailer')) {
$methods = get_class_methods( 'mailer');
$this->assertTrue( in_array( 'sendTemplate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('sendTemplate', $methods ), 'exists method sendTemplate' );
$r = new ReflectionMethod('mailer', 'sendTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'from');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'target');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'cc');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'bcc');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'subject');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'Fields');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == 'Array');
$this->assertTrue( $params[6]->getName() == 'templateFile');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == 'empty.html');
$this->assertTrue( $params[7]->getName() == 'attachs');
$this->assertTrue( $params[7]->isArray() == false);
$this->assertTrue( $params[7]->isOptional () == true);
$this->assertTrue( $params[7]->getDefaultValue() == 'Array');
$this->assertTrue( $params[8]->getName() == 'plainText');
$this->assertTrue( $params[8]->isArray() == false);
$this->assertTrue( $params[8]->isOptional () == true);
$this->assertTrue( $params[8]->getDefaultValue() == '');
$this->assertTrue( $params[9]->getName() == 'returnContent');
$this->assertTrue( $params[9]->isArray() == false);
$this->assertTrue( $params[9]->isOptional () == true);
$this->assertTrue( $params[9]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +137,52 @@
*/
public function testsendHtml()
{
if (class_exists('mailer')) {
$methods = get_class_methods( 'mailer');
$this->assertTrue( in_array( 'sendHtml', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('sendHtml', $methods ), 'exists method sendHtml' );
$r = new ReflectionMethod('mailer', 'sendHtml');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'from');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'target');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'cc');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'bcc');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'subject');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'Fields');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == 'Array');
$this->assertTrue( $params[6]->getName() == 'content');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == '');
$this->assertTrue( $params[7]->getName() == 'attachs');
$this->assertTrue( $params[7]->isArray() == false);
$this->assertTrue( $params[7]->isOptional () == true);
$this->assertTrue( $params[7]->getDefaultValue() == 'Array');
$this->assertTrue( $params[8]->getName() == 'plainText');
$this->assertTrue( $params[8]->isArray() == false);
$this->assertTrue( $params[8]->isOptional () == true);
$this->assertTrue( $params[8]->getDefaultValue() == '');
$this->assertTrue( $params[9]->getName() == 'returnContent');
$this->assertTrue( $params[9]->isArray() == false);
$this->assertTrue( $params[9]->isOptional () == true);
$this->assertTrue( $params[9]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +191,40 @@
*/
public function testsendText()
{
if (class_exists('mailer')) {
$methods = get_class_methods( 'mailer');
$this->assertTrue( in_array( 'sendText', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('sendText', $methods ), 'exists method sendText' );
$r = new ReflectionMethod('mailer', 'sendText');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'from');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'target');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'cc');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'bcc');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'subject');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'content');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '');
$this->assertTrue( $params[6]->getName() == 'attachs');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +233,20 @@
*/
public function testreplaceFields()
{
if (class_exists('mailer')) {
$methods = get_class_methods( 'mailer');
$this->assertTrue( in_array( 'replaceFields', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('replaceFields', $methods ), 'exists method replaceFields' );
$r = new ReflectionMethod('mailer', 'replaceFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'Fields');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->assertTrue( $params[1]->getName() == 'content');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +255,12 @@
*/
public function testhtml2text()
{
if (class_exists('mailer')) {
$methods = get_class_methods( 'mailer');
$this->assertTrue( in_array( 'html2text', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('html2text', $methods ), 'exists method html2text' );
$r = new ReflectionMethod('mailer', 'html2text');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,66 @@
<?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.objectTemplate.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.objectTemplate.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classobjectTemplateTest extends PHPUnit_Framework_TestCase
{
/**
* @var objectTemplate
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classobjectTemplateTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new objectTemplate();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 60);
}
/**
* @covers objectTemplate::objectTemplate
* @todo Implement testobjectTemplate().
*/
public function testobjectTemplate()
{
if (class_exists('objectTemplate')) {
$methods = get_class_methods( 'objectTemplate');
$this->assertTrue( in_array( 'objectTemplate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('objectTemplate', $methods ), 'exists method objectTemplate' );
$r = new ReflectionMethod('objectTemplate', 'objectTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'templateFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +69,15 @@
*/
public function testprintObject()
{
if (class_exists('objectTemplate')) {
$methods = get_class_methods( 'objectTemplate');
$this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' );
$r = new ReflectionMethod('objectTemplate', 'printObject');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'object');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,63 @@
<?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.pagedTable.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.pagedTable.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classpagedTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var pagedTable
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classpagedTableTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new pagedTable();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 9);
}
/**
* @covers pagedTable::analizeSql
* @todo Implement testanalizeSql().
*/
public function testanalizeSql()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'analizeSql', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('analizeSql', $methods ), 'exists method analizeSql' );
$r = new ReflectionMethod('pagedTable', 'analizeSql');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +66,12 @@
*/
public function testprepareQuery()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'prepareQuery', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('prepareQuery', $methods ), 'exists method prepareQuery' );
$r = new ReflectionMethod('pagedTable', 'prepareQuery');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +80,15 @@
*/
public function testsetupFromXmlform()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'setupFromXmlform', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setupFromXmlform', $methods ), 'exists method setupFromXmlform' );
$r = new ReflectionMethod('pagedTable', 'setupFromXmlform');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'xmlForm');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +97,12 @@
*/
public function testcount()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'count', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('count', $methods ), 'exists method count' );
$r = new ReflectionMethod('pagedTable', 'count');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +111,12 @@
*/
public function testrenderTitle()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'renderTitle', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderTitle', $methods ), 'exists method renderTitle' );
$r = new ReflectionMethod('pagedTable', 'renderTitle');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +125,21 @@
*/
public function testrenderField()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'renderField', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderField', $methods ), 'exists method renderField' );
$r = new ReflectionMethod('pagedTable', 'renderField');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'row');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'r');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'result');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +148,12 @@
*/
public function testdefaultStyle()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'defaultStyle', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('defaultStyle', $methods ), 'exists method defaultStyle' );
$r = new ReflectionMethod('pagedTable', 'defaultStyle');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +162,16 @@
*/
public function testrenderTable()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$r = new ReflectionMethod('pagedTable', 'renderTable');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'block');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,22 +180,19 @@
*/
public function testprintForm()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'printForm', $methods ), 'seems like this function is outside this class' );
}
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printForm', $methods ), 'exists method printForm' );
$r = new ReflectionMethod('pagedTable', 'printForm');
$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() == 'data');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers pagedTable::var_dump2
* @todo Implement testvar_dump2().
*/
public function testvar_dump2()
{
if (class_exists('pagedTable')) {
$methods = get_class_methods( 'pagedTable');
$this->assertTrue( in_array( 'var_dump2', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,157 +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.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classsoapNtlmTest extends PHPUnit_Framework_TestCase
{
/**
* @covers soapNtlm::getuser
* @todo Implement testgetuser().
*/
public function testgetuser()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'getuser', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::getpassword
* @todo Implement testgetpassword().
*/
public function testgetpassword()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'getpassword', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_open
* @todo Implement teststream_open().
*/
public function teststream_open()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_open', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_close
* @todo Implement teststream_close().
*/
public function teststream_close()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_close', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_read
* @todo Implement teststream_read().
*/
public function teststream_read()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_read', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_write
* @todo Implement teststream_write().
*/
public function teststream_write()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_write', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_eof
* @todo Implement teststream_eof().
*/
public function teststream_eof()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_eof', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_tell
* @todo Implement teststream_tell().
*/
public function teststream_tell()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_tell', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_flush
* @todo Implement teststream_flush().
*/
public function teststream_flush()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_flush', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::stream_stat
* @todo Implement teststream_stat().
*/
public function teststream_stat()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'stream_stat', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::url_stat
* @todo Implement testurl_stat().
*/
public function testurl_stat()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'url_stat', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers soapNtlm::createBuffer
* @todo Implement testcreateBuffer().
*/
public function testcreateBuffer()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->assertTrue( in_array( 'createBuffer', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,78 @@
<?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.testTools.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.testTools.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classtestToolsTest extends PHPUnit_Framework_TestCase
{
/**
* @var testTools
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classtestToolsTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new testTools();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 7);
}
/**
* @covers testTools::importDB
* @todo Implement testimportDB().
*/
public function testimportDB()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'importDB', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('importDB', $methods ), 'exists method importDB' );
$r = new ReflectionMethod('testTools', 'importDB');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'host');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'user');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'password');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'database');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->assertTrue( $params[4]->getName() == 'importFile');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +81,15 @@
*/
public function testimportLocalDB()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'importLocalDB', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('importLocalDB', $methods ), 'exists method importLocalDB' );
$r = new ReflectionMethod('testTools', 'importLocalDB');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'importFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +98,24 @@
*/
public function testcallMethod()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'callMethod', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('callMethod', $methods ), 'exists method callMethod' );
$r = new ReflectionMethod('testTools', 'callMethod');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'methodFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'GET');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'POST');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'SESSION');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +124,18 @@
*/
public function testarrayAppend()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' );
$r = new ReflectionMethod('testTools', 'arrayAppend');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'to');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'appendFrom');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +144,15 @@
*/
public function testarrayDelete()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'arrayDelete', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('arrayDelete', $methods ), 'exists method arrayDelete' );
$r = new ReflectionMethod('testTools', 'arrayDelete');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'array');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +161,19 @@
*/
public function testreplaceVariables()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'replaceVariables', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('replaceVariables', $methods ), 'exists method replaceVariables' );
$r = new ReflectionMethod('testTools', 'replaceVariables');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'Fields');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'ExternalVariables');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,22 +182,18 @@
*/
public function testfindValue()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'findValue', $methods ), 'seems like this function is outside this class' );
}
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('findValue', $methods ), 'exists method findValue' );
$r = new ReflectionMethod('testTools', 'findValue');
$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() == 'obj');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
/**
* @covers testTools::domain
* @todo Implement testdomain().
*/
public function testdomain()
{
if (class_exists('testTools')) {
$methods = get_class_methods( 'testTools');
$this->assertTrue( in_array( 'domain', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,25 +1,72 @@
<?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.unitTest.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.unitTest.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classunitTestTest extends PHPUnit_Framework_TestCase
{
/**
* @var unitTest
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classunitTestTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new unitTest();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 6);
}
/**
* @covers unitTest::unitTest
* @todo Implement testunitTest().
*/
public function testunitTest()
{
if (class_exists('unitTest')) {
$methods = get_class_methods( 'unitTest');
$this->assertTrue( in_array( 'unitTest', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('unitTest', $methods ), 'exists method unitTest' );
$r = new ReflectionMethod('unitTest', 'unitTest');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'ymlFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'testLime');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'testDomain');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +75,19 @@
*/
public function testload()
{
if (class_exists('unitTest')) {
$methods = get_class_methods( 'unitTest');
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('unitTest', 'load');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'testName');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'fields');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +96,16 @@
*/
public function testrunSingle()
{
if (class_exists('unitTest')) {
$methods = get_class_methods( 'unitTest');
$this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' );
$r = new ReflectionMethod('unitTest', 'runSingle');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'fields');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +114,24 @@
*/
public function testrunMultiple()
{
if (class_exists('unitTest')) {
$methods = get_class_methods( 'unitTest');
$this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' );
$r = new ReflectionMethod('unitTest', 'runMultiple');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'fields');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->assertTrue( $params[1]->getName() == 'count');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
$this->assertTrue( $params[2]->getName() == 'start');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '0');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +140,16 @@
*/
public function testrunAll()
{
if (class_exists('unitTest')) {
$methods = get_class_methods( 'unitTest');
$this->assertTrue( in_array( 'runAll', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('runAll', $methods ), 'exists method runAll' );
$r = new ReflectionMethod('unitTest', 'runAll');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'fields');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +158,18 @@
*/
public function testsampleTestFunction()
{
if (class_exists('unitTest')) {
$methods = get_class_methods( 'unitTest');
$this->assertTrue( in_array( 'sampleTestFunction', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('sampleTestFunction', $methods ), 'exists method sampleTestFunction' );
$r = new ReflectionMethod('unitTest', 'sampleTestFunction');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'testCase');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'Fields');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,13 +1,49 @@
<?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.xmlMenu.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.xmlMenu.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/
class classxmlMenuTest extends PHPUnit_Framework_TestCase
{
/**
* @var xmlMenu
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
* 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 xmlMenu();
}
class classxmlMenuTest extends PHPUnit_Framework_TestCase
/**
* 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()
{
$this->assertTrue( count($methods) == 13);
}
}

View File

@@ -1,25 +1,69 @@
<?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.xmlform.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 20:28:31.
*/
class classxmlformTemplateTest extends PHPUnit_Framework_TestCase
{
/**
* @var xmlformTemplate
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classxmlformTemplateTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new xmlformTemplate();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 68);
}
/**
* @covers xmlformTemplate::xmlformTemplate
* @todo Implement testxmlformTemplate().
*/
public function testxmlformTemplate()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( 'xmlformTemplate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('xmlformTemplate', $methods ), 'exists method xmlformTemplate' );
$r = new ReflectionMethod('xmlformTemplate', 'xmlformTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'form');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'templateFile');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +72,19 @@
*/
public function testprintTemplate()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' );
$r = new ReflectionMethod('xmlformTemplate', 'printTemplate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'form');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'target');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'smarty');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +93,15 @@
*/
public function testprintJavaScript()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( 'printJavaScript', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printJavaScript', $methods ), 'exists method printJavaScript' );
$r = new ReflectionMethod('xmlformTemplate', 'printJavaScript');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'form');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +110,15 @@
*/
public function testprintJSFile()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( 'printJSFile', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printJSFile', $methods ), 'exists method printJSFile' );
$r = new ReflectionMethod('xmlformTemplate', 'printJSFile');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'form');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +127,19 @@
*/
public function testgetFields()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
$r = new ReflectionMethod('xmlformTemplate', 'getFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'form');
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +148,19 @@
*/
public function testprintObject()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' );
$r = new ReflectionMethod('xmlformTemplate', 'printObject');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'form');
$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');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +169,21 @@
*/
public function test_get_template()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( '_get_template', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('_get_template', $methods ), 'exists method _get_template' );
$r = new ReflectionMethod('xmlformTemplate', '_get_template');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tpl_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'tpl_source');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'smarty_obj');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +192,21 @@
*/
public function test_get_timestamp()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( '_get_timestamp', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('_get_timestamp', $methods ), 'exists method _get_timestamp' );
$r = new ReflectionMethod('xmlformTemplate', '_get_timestamp');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tpl_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'tpl_timestamp');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'smarty_obj');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +215,18 @@
*/
public function test_get_secure()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( '_get_secure', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('_get_secure', $methods ), 'exists method _get_secure' );
$r = new ReflectionMethod('xmlformTemplate', '_get_secure');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tpl_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'smarty_obj');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +235,18 @@
*/
public function test_get_trusted()
{
if (class_exists('xmlformTemplate')) {
$methods = get_class_methods( 'xmlformTemplate');
$this->assertTrue( in_array( '_get_trusted', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('_get_trusted', $methods ), 'exists method _get_trusted' );
$r = new ReflectionMethod('xmlformTemplate', '_get_trusted');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tpl_name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'smarty_obj');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,63 @@
<?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.ymlDomain.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.ymlDomain.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classymlDomainTest extends PHPUnit_Framework_TestCase
{
/**
* @var ymlDomain
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classymlDomainTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new ymlDomain();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 11);
}
/**
* @covers ymlDomain::ymlDomain
* @todo Implement testymlDomain().
*/
public function testymlDomain()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'ymlDomain', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('ymlDomain', $methods ), 'exists method ymlDomain' );
$r = new ReflectionMethod('ymlDomain', 'ymlDomain');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +66,15 @@
*/
public function testaddDomain()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'addDomain', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addDomain', $methods ), 'exists method addDomain' );
$r = new ReflectionMethod('ymlDomain', 'addDomain');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'domainName');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +83,18 @@
*/
public function testaddDomainValue()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'addDomainValue', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addDomainValue', $methods ), 'exists method addDomainValue' );
$r = new ReflectionMethod('ymlDomain', 'addDomainValue');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'domainName');
$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->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +103,15 @@
*/
public function testexists()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'exists', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('exists', $methods ), 'exists method exists' );
$r = new ReflectionMethod('ymlDomain', 'exists');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'domainName');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +120,15 @@
*/
public function testget()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('get', $methods ), 'exists method get' );
$r = new ReflectionMethod('ymlDomain', 'get');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'resource');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +137,15 @@
*/
public function testname2keys()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'name2keys', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('name2keys', $methods ), 'exists method name2keys' );
$r = new ReflectionMethod('ymlDomain', 'name2keys');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'resource');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -88,10 +154,15 @@
*/
public function testload()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('ymlDomain', 'load');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'resource');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -100,10 +171,18 @@
*/
public function testfind()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'find', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('find', $methods ), 'exists method find' );
$r = new ReflectionMethod('ymlDomain', 'find');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'nodesKey');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'where');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -112,10 +191,18 @@
*/
public function testgetNode()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' );
$r = new ReflectionMethod('ymlDomain', 'getNode');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'nodeKey');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'from');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -124,10 +211,15 @@
*/
public function testplainArray()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'plainArray', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('plainArray', $methods ), 'exists method plainArray' );
$r = new ReflectionMethod('ymlDomain', 'plainArray');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'array');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -136,10 +228,18 @@
*/
public function testarrayAppend()
{
if (class_exists('ymlDomain')) {
$methods = get_class_methods( 'ymlDomain');
$this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' );
$r = new ReflectionMethod('ymlDomain', 'arrayAppend');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'to');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'appendFrom');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,25 +1,72 @@
<?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.ymlTestCases.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.ymlTestCases.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classymlTestCasesTest extends PHPUnit_Framework_TestCase
{
/**
* @var ymlTestCases
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classymlTestCasesTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new ymlTestCases();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 6);
}
/**
* @covers ymlTestCases::ymlTestCases
* @todo Implement testymlTestCases().
*/
public function testymlTestCases()
{
if (class_exists('ymlTestCases')) {
$methods = get_class_methods( 'ymlTestCases');
$this->assertTrue( in_array( 'ymlTestCases', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('ymlTestCases', $methods ), 'exists method ymlTestCases' );
$r = new ReflectionMethod('ymlTestCases', 'ymlTestCases');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'testCaseFile');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'testDomain');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'testLime');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -28,10 +75,20 @@
*/
public function testload()
{
if (class_exists('ymlTestCases')) {
$methods = get_class_methods( 'ymlTestCases');
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('ymlTestCases', 'load');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'inputTestCasesIndex');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'TestCases');
$this->assertTrue( $params[1]->getName() == 'fields');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -40,10 +97,20 @@
*/
public function testaddToPlan()
{
if (class_exists('ymlTestCases')) {
$methods = get_class_methods( 'ymlTestCases');
$this->assertTrue( in_array( 'addToPlan', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addToPlan', $methods ), 'exists method addToPlan' );
$r = new ReflectionMethod('ymlTestCases', 'addToPlan');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'count');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '-1');
$this->assertTrue( $params[1]->getName() == 'start');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '0');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -52,10 +119,27 @@
*/
public function testrun()
{
if (class_exists('ymlTestCases')) {
$methods = get_class_methods( 'ymlTestCases');
$this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('run', $methods ), 'exists method run' );
$r = new ReflectionMethod('ymlTestCases', 'run');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'testerObject');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'fields');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->assertTrue( $params[2]->getName() == 'count');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '-1');
$this->assertTrue( $params[3]->getName() == 'start');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '0');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -64,10 +148,19 @@
*/
public function testrunSingle()
{
if (class_exists('ymlTestCases')) {
$methods = get_class_methods( 'ymlTestCases');
$this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' );
$r = new ReflectionMethod('ymlTestCases', 'runSingle');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'testerObject');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'fields');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -76,10 +169,27 @@
*/
public function testrunMultiple()
{
if (class_exists('ymlTestCases')) {
$methods = get_class_methods( 'ymlTestCases');
$this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' );
$r = new ReflectionMethod('ymlTestCases', 'runMultiple');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'testerObject');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'fields');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->assertTrue( $params[2]->getName() == 'count');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '-1');
$this->assertTrue( $params[3]->getName() == 'start');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '0');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,27 +1,122 @@
<?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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.applications.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 . 'workflow/engine/classes/class.applications.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/
class classApplicationsTest extends PHPUnit_Framework_TestCase
{
/**
* @var Applications
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:11.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classApplicationsTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Applications();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 5);
}
/**
* @covers Applications::getAll
* @todo Implement testgetAll().
*/
public function testgetAll()
{
if (class_exists('Applications')) {
$methods = get_class_methods( 'Applications');
$this->assertTrue( in_array( 'getAll', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAll', $methods ), 'exists method getAll' );
$r = new ReflectionMethod('Applications', 'getAll');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'userUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'start');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'limit');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'action');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'filter');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'search');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '');
$this->assertTrue( $params[6]->getName() == 'process');
$this->assertTrue( $params[6]->isArray() == false);
$this->assertTrue( $params[6]->isOptional () == true);
$this->assertTrue( $params[6]->getDefaultValue() == '');
$this->assertTrue( $params[7]->getName() == 'user');
$this->assertTrue( $params[7]->isArray() == false);
$this->assertTrue( $params[7]->isOptional () == true);
$this->assertTrue( $params[7]->getDefaultValue() == '');
$this->assertTrue( $params[8]->getName() == 'status');
$this->assertTrue( $params[8]->isArray() == false);
$this->assertTrue( $params[8]->isOptional () == true);
$this->assertTrue( $params[8]->getDefaultValue() == '');
$this->assertTrue( $params[9]->getName() == 'type');
$this->assertTrue( $params[9]->isArray() == false);
$this->assertTrue( $params[9]->isOptional () == true);
$this->assertTrue( $params[9]->getDefaultValue() == '');
$this->assertTrue( $params[10]->getName() == 'dateFrom');
$this->assertTrue( $params[10]->isArray() == false);
$this->assertTrue( $params[10]->isOptional () == true);
$this->assertTrue( $params[10]->getDefaultValue() == '');
$this->assertTrue( $params[11]->getName() == 'dateTo');
$this->assertTrue( $params[11]->isArray() == false);
$this->assertTrue( $params[11]->isOptional () == true);
$this->assertTrue( $params[11]->getDefaultValue() == '');
$this->assertTrue( $params[12]->getName() == 'callback');
$this->assertTrue( $params[12]->isArray() == false);
$this->assertTrue( $params[12]->isOptional () == true);
$this->assertTrue( $params[12]->getDefaultValue() == '');
$this->assertTrue( $params[13]->getName() == 'dir');
$this->assertTrue( $params[13]->isArray() == false);
$this->assertTrue( $params[13]->isOptional () == true);
$this->assertTrue( $params[13]->getDefaultValue() == '');
$this->assertTrue( $params[14]->getName() == 'sort');
$this->assertTrue( $params[14]->isArray() == false);
$this->assertTrue( $params[14]->isOptional () == true);
$this->assertTrue( $params[14]->getDefaultValue() == 'APP_CACHE_VIEW.APP_NUMBER');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -30,10 +125,12 @@
*/
public function testsetDefaultFields()
{
if (class_exists('Applications')) {
$methods = get_class_methods( 'Applications');
$this->assertTrue( in_array( 'setDefaultFields', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setDefaultFields', $methods ), 'exists method setDefaultFields' );
$r = new ReflectionMethod('Applications', 'setDefaultFields');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -42,10 +139,15 @@
*/
public function testgetDefaultFields()
{
if (class_exists('Applications')) {
$methods = get_class_methods( 'Applications');
$this->assertTrue( in_array( 'getDefaultFields', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getDefaultFields', $methods ), 'exists method getDefaultFields' );
$r = new ReflectionMethod('Applications', 'getDefaultFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'action');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -54,10 +156,27 @@
*/
public function testgenericJsonResponse()
{
if (class_exists('Applications')) {
$methods = get_class_methods( 'Applications');
$this->assertTrue( in_array( 'genericJsonResponse', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('genericJsonResponse', $methods ), 'exists method genericJsonResponse' );
$r = new ReflectionMethod('Applications', 'genericJsonResponse');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'pmtable');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'first');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'second');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'rowsperpage');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->assertTrue( $params[4]->getName() == 'dateFormat');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -66,10 +185,24 @@
*/
public function testgetSteps()
{
if (class_exists('Applications')) {
$methods = get_class_methods( 'Applications');
$this->assertTrue( in_array( 'getSteps', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getSteps', $methods ), 'exists method getSteps' );
$r = new ReflectionMethod('Applications', 'getSteps');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'appUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'index');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'tasUid');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'proUid');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,267 +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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.ArrayPeer.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:17.
*/
class classArrayBasePeerTest extends PHPUnit_Framework_TestCase
{
/**
* @covers ArrayBasePeer::getMapBuilder
* @todo Implement testgetMapBuilder().
*/
public function testgetMapBuilder()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'getMapBuilder', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::getPhpNameMap
* @todo Implement testgetPhpNameMap().
*/
public function testgetPhpNameMap()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'getPhpNameMap', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::translateFieldName
* @todo Implement testtranslateFieldName().
*/
public function testtranslateFieldName()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'translateFieldName', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::getFieldNames
* @todo Implement testgetFieldNames().
*/
public function testgetFieldNames()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::alias
* @todo Implement testalias().
*/
public function testalias()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'alias', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::addSelectColumns
* @todo Implement testaddSelectColumns().
*/
public function testaddSelectColumns()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'addSelectColumns', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doCount
* @todo Implement testdoCount().
*/
public function testdoCount()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doCount', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doSelectOne
* @todo Implement testdoSelectOne().
*/
public function testdoSelectOne()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doSelectOne', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::createSelectSql
* @todo Implement testcreateSelectSql().
*/
public function testcreateSelectSql()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'createSelectSql', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doSelect
* @todo Implement testdoSelect().
*/
public function testdoSelect()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doSelect', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doSelectRS
* @todo Implement testdoSelectRS().
*/
public function testdoSelectRS()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doSelectRS', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::populateObjects
* @todo Implement testpopulateObjects().
*/
public function testpopulateObjects()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'populateObjects', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::getTableMap
* @todo Implement testgetTableMap().
*/
public function testgetTableMap()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'getTableMap', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::getOMClass
* @todo Implement testgetOMClass().
*/
public function testgetOMClass()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'getOMClass', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doInsert
* @todo Implement testdoInsert().
*/
public function testdoInsert()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doInsert', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doUpdate
* @todo Implement testdoUpdate().
*/
public function testdoUpdate()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doUpdate', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doDeleteAll
* @todo Implement testdoDeleteAll().
*/
public function testdoDeleteAll()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doDeleteAll', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doDelete
* @todo Implement testdoDelete().
*/
public function testdoDelete()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doDelete', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::doValidate
* @todo Implement testdoValidate().
*/
public function testdoValidate()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'doValidate', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::retrieveByPK
* @todo Implement testretrieveByPK().
*/
public function testretrieveByPK()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'retrieveByPK', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers ArrayBasePeer::retrieveByPKs
* @todo Implement testretrieveByPKs().
*/
public function testretrieveByPKs()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->assertTrue( in_array( 'retrieveByPKs', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,27 +1,66 @@
<?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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.cli.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 . 'workflow/engine/classes/class.cli.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:39.
*/
class classCLITest extends PHPUnit_Framework_TestCase
{
/**
* @var CLI
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:18.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classCLITest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new CLI();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 13);
}
/**
* @covers CLI::taskName
* @todo Implement testtaskName().
*/
public function testtaskName()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'taskName', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('taskName', $methods ), 'exists method taskName' );
$r = new ReflectionMethod('CLI', 'taskName');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'name');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -30,10 +69,15 @@
*/
public function testtaskDescription()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'taskDescription', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('taskDescription', $methods ), 'exists method taskDescription' );
$r = new ReflectionMethod('CLI', 'taskDescription');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'description');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -42,10 +86,23 @@
*/
public function testtaskArg()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'taskArg', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('taskArg', $methods ), 'exists method taskArg' );
$r = new ReflectionMethod('CLI', 'taskArg');
$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() == 'optional');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '1');
$this->assertTrue( $params[2]->getName() == 'multiple');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -54,10 +111,25 @@
*/
public function testtaskOpt()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'taskOpt', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('taskOpt', $methods ), 'exists method taskOpt' );
$r = new ReflectionMethod('CLI', 'taskOpt');
$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() == 'description');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'short');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'long');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -66,10 +138,15 @@
*/
public function testtaskRun()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'taskRun', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('taskRun', $methods ), 'exists method taskRun' );
$r = new ReflectionMethod('CLI', 'taskRun');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'function');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -78,10 +155,19 @@
*/
public function testhelp()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'help', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('help', $methods ), 'exists method help' );
$r = new ReflectionMethod('CLI', 'help');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'args');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'opts');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -90,10 +176,12 @@
*/
public function testrun()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('run', $methods ), 'exists method run' );
$r = new ReflectionMethod('CLI', 'run');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -102,10 +190,15 @@
*/
public function testinfo()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'info', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('info', $methods ), 'exists method info' );
$r = new ReflectionMethod('CLI', 'info');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'message');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -114,10 +207,15 @@
*/
public function testwarning()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'warning', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('warning', $methods ), 'exists method warning' );
$r = new ReflectionMethod('CLI', 'warning');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'message');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -126,10 +224,15 @@
*/
public function testerror()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('error', $methods ), 'exists method error' );
$r = new ReflectionMethod('CLI', 'error');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'message');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -138,10 +241,15 @@
*/
public function testprompt()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'prompt', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('prompt', $methods ), 'exists method prompt' );
$r = new ReflectionMethod('CLI', 'prompt');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'message');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -150,10 +258,15 @@
*/
public function testquestion()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'question', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('question', $methods ), 'exists method question' );
$r = new ReflectionMethod('CLI', 'question');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'message');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -162,10 +275,19 @@
*/
public function testlogging()
{
if (class_exists('CLI')) {
$methods = get_class_methods( 'CLI');
$this->assertTrue( in_array( 'logging', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('logging', $methods ), 'exists method logging' );
$r = new ReflectionMethod('CLI', 'logging');
$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() == 'filename');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,27 +1,63 @@
<?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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.configuration.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 . 'workflow/engine/classes/class.configuration.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:39.
*/
class classConfigurationsTest extends PHPUnit_Framework_TestCase
{
/**
* @var Configurations
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:18.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classConfigurationsTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Configurations();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 16);
}
/**
* @covers Configurations::Configurations
* @todo Implement testConfigurations().
*/
public function testConfigurations()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'Configurations', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Configurations', $methods ), 'exists method Configurations' );
$r = new ReflectionMethod('Configurations', 'Configurations');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -30,10 +66,18 @@
*/
public function testarrayClone()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'arrayClone', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('arrayClone', $methods ), 'exists method arrayClone' );
$r = new ReflectionMethod('Configurations', 'arrayClone');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'object');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'cloneObject');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -42,10 +86,18 @@
*/
public function testconfigObject()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'configObject', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('configObject', $methods ), 'exists method configObject' );
$r = new ReflectionMethod('Configurations', 'configObject');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'object');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'from');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -54,10 +106,34 @@
*/
public function testloadConfig()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'loadConfig', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('loadConfig', $methods ), 'exists method loadConfig' );
$r = new ReflectionMethod('Configurations', 'loadConfig');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'object');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'cfg');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'obj');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'pro');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'usr');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'app');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -66,10 +142,31 @@
*/
public function testload()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('Configurations', 'load');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'cfg');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'obj');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->assertTrue( $params[2]->getName() == 'pro');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'usr');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'app');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -78,10 +175,30 @@
*/
public function testsaveConfig()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'saveConfig', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('saveConfig', $methods ), 'exists method saveConfig' );
$r = new ReflectionMethod('Configurations', 'saveConfig');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'cfg');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'obj');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'pro');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'usr');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'app');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -90,10 +207,33 @@
*/
public function testsaveObject()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'saveObject', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('saveObject', $methods ), 'exists method saveObject' );
$r = new ReflectionMethod('Configurations', 'saveObject');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'object');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'cfg');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'obj');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'pro');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'usr');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->assertTrue( $params[5]->getName() == 'app');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -102,10 +242,30 @@
*/
public function testloadObject()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'loadObject', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('loadObject', $methods ), 'exists method loadObject' );
$r = new ReflectionMethod('Configurations', 'loadObject');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'cfg');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'obj');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'pro');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'usr');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'app');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -114,10 +274,30 @@
*/
public function testgetConfiguration()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'getConfiguration', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getConfiguration', $methods ), 'exists method getConfiguration' );
$r = new ReflectionMethod('Configurations', 'getConfiguration');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'cfg');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'obj');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'pro');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
$this->assertTrue( $params[3]->getName() == 'usr');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->assertTrue( $params[4]->getName() == 'app');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -126,10 +306,21 @@
*/
public function testusersNameFormat()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'usersNameFormat', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('usersNameFormat', $methods ), 'exists method usersNameFormat' );
$r = new ReflectionMethod('Configurations', 'usersNameFormat');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'username');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'firstname');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'lastname');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -138,10 +329,12 @@
*/
public function testgetFormats()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'getFormats', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getFormats', $methods ), 'exists method getFormats' );
$r = new ReflectionMethod('Configurations', 'getFormats');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -150,10 +343,21 @@
*/
public function testsetConfig()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'setConfig', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setConfig', $methods ), 'exists method setConfig' );
$r = new ReflectionMethod('Configurations', 'setConfig');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'route');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'object');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'to');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -162,10 +366,12 @@
*/
public function testgetDateFormats()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'getDateFormats', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getDateFormats', $methods ), 'exists method getDateFormats' );
$r = new ReflectionMethod('Configurations', 'getDateFormats');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -174,10 +380,12 @@
*/
public function testgetUserNameFormats()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'getUserNameFormats', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getUserNameFormats', $methods ), 'exists method getUserNameFormats' );
$r = new ReflectionMethod('Configurations', 'getUserNameFormats');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -186,10 +394,15 @@
*/
public function testgetSystemDate()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'getSystemDate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getSystemDate', $methods ), 'exists method getSystemDate' );
$r = new ReflectionMethod('Configurations', 'getSystemDate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dateTime');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -198,10 +411,20 @@
*/
public function testgetEnvSetting()
{
if (class_exists('Configurations')) {
$methods = get_class_methods( 'Configurations');
$this->assertTrue( in_array( 'getEnvSetting', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getEnvSetting', $methods ), 'exists method getEnvSetting' );
$r = new ReflectionMethod('Configurations', 'getEnvSetting');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'key');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'data');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,27 +1,66 @@
<?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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.derivation.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 . 'workflow/engine/classes/class.derivation.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:32.
*/
class classDerivationTest extends PHPUnit_Framework_TestCase
{
/**
* @var Derivation
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:12.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classDerivationTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Derivation();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 13);
}
/**
* @covers Derivation::prepareInformation
* @todo Implement testprepareInformation().
*/
public function testprepareInformation()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'prepareInformation', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('prepareInformation', $methods ), 'exists method prepareInformation' );
$r = new ReflectionMethod('Derivation', 'prepareInformation');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'aData');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -30,10 +69,15 @@
*/
public function testgetRouteCondition()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'getRouteCondition', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getRouteCondition', $methods ), 'exists method getRouteCondition' );
$r = new ReflectionMethod('Derivation', 'getRouteCondition');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'aData');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -42,10 +86,15 @@
*/
public function testGetAppParentIndex()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'GetAppParentIndex', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('GetAppParentIndex', $methods ), 'exists method GetAppParentIndex' );
$r = new ReflectionMethod('Derivation', 'GetAppParentIndex');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'aData');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -54,10 +103,15 @@
*/
public function testgetAllUsersFromAnyTask()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'getAllUsersFromAnyTask', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllUsersFromAnyTask', $methods ), 'exists method getAllUsersFromAnyTask' );
$r = new ReflectionMethod('Derivation', 'getAllUsersFromAnyTask');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sTasUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -66,10 +120,15 @@
*/
public function testgetUsersFullNameFromArray()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'getUsersFullNameFromArray', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getUsersFullNameFromArray', $methods ), 'exists method getUsersFullNameFromArray' );
$r = new ReflectionMethod('Derivation', 'getUsersFullNameFromArray');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'aUsers');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -78,10 +137,15 @@
*/
public function testgetNextAssignedUser()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'getNextAssignedUser', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getNextAssignedUser', $methods ), 'exists method getNextAssignedUser' );
$r = new ReflectionMethod('Derivation', 'getNextAssignedUser');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tasInfo');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -90,10 +154,15 @@
*/
public function testgetDenpendentUser()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'getDenpendentUser', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getDenpendentUser', $methods ), 'exists method getDenpendentUser' );
$r = new ReflectionMethod('Derivation', 'getDenpendentUser');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'USR_UID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -102,10 +171,18 @@
*/
public function testsetTasLastAssigned()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'setTasLastAssigned', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('setTasLastAssigned', $methods ), 'exists method setTasLastAssigned' );
$r = new ReflectionMethod('Derivation', 'setTasLastAssigned');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'tasUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'usrUid');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -114,10 +191,20 @@
*/
public function testderivate()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'derivate', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('derivate', $methods ), 'exists method derivate' );
$r = new ReflectionMethod('Derivation', 'derivate');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'currentDelegation');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->assertTrue( $params[1]->getName() == 'nextDelegations');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -126,10 +213,25 @@
*/
public function testdoDerivation()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'doDerivation', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('doDerivation', $methods ), 'exists method doDerivation' );
$r = new ReflectionMethod('Derivation', 'doDerivation');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'currentDelegation');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'nextDel');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->assertTrue( $params[2]->getName() == 'appFields');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
$this->assertTrue( $params[3]->getName() == 'aSP');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -138,10 +240,15 @@
*/
public function testverifyIsCaseChild()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'verifyIsCaseChild', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('verifyIsCaseChild', $methods ), 'exists method verifyIsCaseChild' );
$r = new ReflectionMethod('Derivation', 'verifyIsCaseChild');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -150,10 +257,18 @@
*/
public function testgetDerivatedCases()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'getDerivatedCases', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getDerivatedCases', $methods ), 'exists method getDerivatedCases' );
$r = new ReflectionMethod('Derivation', 'getDerivatedCases');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sParentUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'sDelIndexParent');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -162,10 +277,15 @@
*/
public function testgetGrpUser()
{
if (class_exists('Derivation')) {
$methods = get_class_methods( 'Derivation');
$this->assertTrue( in_array( 'getGrpUser', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getGrpUser', $methods ), 'exists method getGrpUser' );
$r = new ReflectionMethod('Derivation', 'getGrpUser');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'aData');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,27 +1,66 @@
<?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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.dynaFormField.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 . 'workflow/engine/classes/class.dynaFormField.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:38.
*/
class classDynaFormFieldTest extends PHPUnit_Framework_TestCase
{
/**
* @var DynaFormField
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:17.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classDynaFormFieldTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new DynaFormField();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 12);
}
/**
* @covers DynaFormField::SetTo
* @todo Implement testSetTo().
*/
public function testSetTo()
{
if (class_exists('DynaFormField')) {
$methods = get_class_methods( 'DynaFormField');
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' );
$r = new ReflectionMethod('DynaFormField', 'SetTo');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'objConnection');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -30,10 +69,15 @@
*/
public function testLoad()
{
if (class_exists('DynaFormField')) {
$methods = get_class_methods( 'DynaFormField');
$this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Load', $methods ), 'exists method Load' );
$r = new ReflectionMethod('DynaFormField', 'Load');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -42,10 +86,15 @@
*/
public function testDelete()
{
if (class_exists('DynaFormField')) {
$methods = get_class_methods( 'DynaFormField');
$this->assertTrue( in_array( 'Delete', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Delete', $methods ), 'exists method Delete' );
$r = new ReflectionMethod('DynaFormField', 'Delete');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'uid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -54,10 +103,23 @@
*/
public function testSave()
{
if (class_exists('DynaFormField')) {
$methods = get_class_methods( 'DynaFormField');
$this->assertTrue( in_array( 'Save', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('Save', $methods ), 'exists method Save' );
$r = new ReflectionMethod('DynaFormField', 'Save');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'Fields');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'labels');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->assertTrue( $params[2]->getName() == 'options');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -66,10 +128,12 @@
*/
public function testisNew()
{
if (class_exists('DynaFormField')) {
$methods = get_class_methods( 'DynaFormField');
$this->assertTrue( in_array( 'isNew', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('isNew', $methods ), 'exists method isNew' );
$r = new ReflectionMethod('DynaFormField', 'isNew');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,51 +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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.groupUser.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:18.
*/
class classGroupUserTest extends PHPUnit_Framework_TestCase
{
/**
* @covers GroupUser::GroupUser
* @todo Implement testGroupUser().
*/
public function testGroupUser()
{
if (class_exists('GroupUser')) {
$methods = get_class_methods( 'GroupUser');
$this->assertTrue( in_array( 'GroupUser', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GroupUser::setTo
* @todo Implement testsetTo().
*/
public function testsetTo()
{
if (class_exists('GroupUser')) {
$methods = get_class_methods( 'GroupUser');
$this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GroupUser::ofToAssignUser
* @todo Implement testofToAssignUser().
*/
public function testofToAssignUser()
{
if (class_exists('GroupUser')) {
$methods = get_class_methods( 'GroupUser');
$this->assertTrue( in_array( 'ofToAssignUser', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,27 +1,66 @@
<?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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.groups.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 . 'workflow/engine/classes/class.groups.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:32.
*/
class classGroupsTest extends PHPUnit_Framework_TestCase
{
/**
* @var Groups
*/
protected $object;
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:12.
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
class classGroupsTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->object = new Groups();
}
/**
* 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()
{
$this->assertTrue( count($methods) == 17);
}
/**
* @covers Groups::getUsersOfGroup
* @todo Implement testgetUsersOfGroup().
*/
public function testgetUsersOfGroup()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getUsersOfGroup', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getUsersOfGroup', $methods ), 'exists method getUsersOfGroup' );
$r = new ReflectionMethod('Groups', 'getUsersOfGroup');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -30,10 +69,15 @@
*/
public function testgetActiveGroupsForAnUser()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getActiveGroupsForAnUser', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getActiveGroupsForAnUser', $methods ), 'exists method getActiveGroupsForAnUser' );
$r = new ReflectionMethod('Groups', 'getActiveGroupsForAnUser');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUserUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -42,10 +86,18 @@
*/
public function testaddUserToGroup()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'addUserToGroup', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('addUserToGroup', $methods ), 'exists method addUserToGroup' );
$r = new ReflectionMethod('Groups', 'addUserToGroup');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'GrpUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'UsrUid');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -54,10 +106,18 @@
*/
public function testremoveUserOfGroup()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'removeUserOfGroup', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('removeUserOfGroup', $methods ), 'exists method removeUserOfGroup' );
$r = new ReflectionMethod('Groups', 'removeUserOfGroup');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'GrpUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'UsrUid');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -66,10 +126,12 @@
*/
public function testgetAllGroups()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getAllGroups', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllGroups', $methods ), 'exists method getAllGroups' );
$r = new ReflectionMethod('Groups', 'getAllGroups');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -78,10 +140,15 @@
*/
public function testgetUserGroups()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getUserGroups', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getUserGroups', $methods ), 'exists method getUserGroups' );
$r = new ReflectionMethod('Groups', 'getUserGroups');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUserUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -90,10 +157,19 @@
*/
public function testgetAvailableGroupsCriteria()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getAvailableGroupsCriteria', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAvailableGroupsCriteria', $methods ), 'exists method getAvailableGroupsCriteria' );
$r = new ReflectionMethod('Groups', 'getAvailableGroupsCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUserUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'filter');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -102,10 +178,19 @@
*/
public function testgetAssignedGroupsCriteria()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getAssignedGroupsCriteria', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAssignedGroupsCriteria', $methods ), 'exists method getAssignedGroupsCriteria' );
$r = new ReflectionMethod('Groups', 'getAssignedGroupsCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUserUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'filter');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -114,10 +199,15 @@
*/
public function testgetGroupsForUser()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getGroupsForUser', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getGroupsForUser', $methods ), 'exists method getGroupsForUser' );
$r = new ReflectionMethod('Groups', 'getGroupsForUser');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'usrUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -126,10 +216,16 @@
*/
public function testremoveUserOfAllGroups()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'removeUserOfAllGroups', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('removeUserOfAllGroups', $methods ), 'exists method removeUserOfAllGroups' );
$r = new ReflectionMethod('Groups', 'removeUserOfAllGroups');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUserUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -138,10 +234,16 @@
*/
public function testgetUsersGroupCriteria()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getUsersGroupCriteria', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getUsersGroupCriteria', $methods ), 'exists method getUsersGroupCriteria' );
$r = new ReflectionMethod('Groups', 'getUsersGroupCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -150,10 +252,16 @@
*/
public function testgetUserGroupsCriteria()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getUserGroupsCriteria', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getUserGroupsCriteria', $methods ), 'exists method getUserGroupsCriteria' );
$r = new ReflectionMethod('Groups', 'getUserGroupsCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUserUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -162,10 +270,15 @@
*/
public function testgetNumberGroups()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getNumberGroups', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getNumberGroups', $methods ), 'exists method getNumberGroups' );
$r = new ReflectionMethod('Groups', 'getNumberGroups');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sUserUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -174,10 +287,16 @@
*/
public function testgetAvailableUsersCriteria()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'getAvailableUsersCriteria', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAvailableUsersCriteria', $methods ), 'exists method getAvailableUsersCriteria' );
$r = new ReflectionMethod('Groups', 'getAvailableUsersCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -186,10 +305,18 @@
*/
public function testverifyUsertoGroup()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'verifyUsertoGroup', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('verifyUsertoGroup', $methods ), 'exists method verifyUsertoGroup' );
$r = new ReflectionMethod('Groups', 'verifyUsertoGroup');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'GrpUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'UsrUid');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -198,10 +325,15 @@
*/
public function testverifyGroup()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'verifyGroup', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('verifyGroup', $methods ), 'exists method verifyGroup' );
$r = new ReflectionMethod('Groups', 'verifyGroup');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
@@ -210,10 +342,15 @@
*/
public function testload()
{
if (class_exists('Groups')) {
$methods = get_class_methods( 'Groups');
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
}
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
$r = new ReflectionMethod('Groups', 'load');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'GrpUid');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -1,255 +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/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.BasePeer.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:11.
*/
class classGulliverBasePeerTest extends PHPUnit_Framework_TestCase
{
/**
* @covers GulliverBasePeer::getMapBuilder
* @todo Implement testgetMapBuilder().
*/
public function testgetMapBuilder()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'getMapBuilder', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::getPhpNameMap
* @todo Implement testgetPhpNameMap().
*/
public function testgetPhpNameMap()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'getPhpNameMap', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::translateFieldName
* @todo Implement testtranslateFieldName().
*/
public function testtranslateFieldName()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'translateFieldName', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::getFieldNames
* @todo Implement testgetFieldNames().
*/
public function testgetFieldNames()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::alias
* @todo Implement testalias().
*/
public function testalias()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'alias', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::addSelectColumns
* @todo Implement testaddSelectColumns().
*/
public function testaddSelectColumns()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'addSelectColumns', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doCount
* @todo Implement testdoCount().
*/
public function testdoCount()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doCount', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doSelectOne
* @todo Implement testdoSelectOne().
*/
public function testdoSelectOne()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doSelectOne', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doSelect
* @todo Implement testdoSelect().
*/
public function testdoSelect()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doSelect', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doSelectRS
* @todo Implement testdoSelectRS().
*/
public function testdoSelectRS()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doSelectRS', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::populateObjects
* @todo Implement testpopulateObjects().
*/
public function testpopulateObjects()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'populateObjects', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::getTableMap
* @todo Implement testgetTableMap().
*/
public function testgetTableMap()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'getTableMap', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::getOMClass
* @todo Implement testgetOMClass().
*/
public function testgetOMClass()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'getOMClass', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doInsert
* @todo Implement testdoInsert().
*/
public function testdoInsert()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doInsert', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doUpdate
* @todo Implement testdoUpdate().
*/
public function testdoUpdate()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doUpdate', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doDeleteAll
* @todo Implement testdoDeleteAll().
*/
public function testdoDeleteAll()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doDeleteAll', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doDelete
* @todo Implement testdoDelete().
*/
public function testdoDelete()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doDelete', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::doValidate
* @todo Implement testdoValidate().
*/
public function testdoValidate()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'doValidate', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::retrieveByPK
* @todo Implement testretrieveByPK().
*/
public function testretrieveByPK()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'retrieveByPK', $methods ), 'seems like this function is outside this class' );
}
}
/**
* @covers GulliverBasePeer::retrieveByPKs
* @todo Implement testretrieveByPKs().
*/
public function testretrieveByPKs()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->assertTrue( in_array( 'retrieveByPKs', $methods ), 'seems like this function is outside this class' );
}
}
}

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