Merge remote branch 'upstream/master'

This commit is contained in:
Victor Saisa Lopez
2012-07-13 16:55:20 -04:00
11 changed files with 746 additions and 701 deletions

View File

@@ -26,7 +26,7 @@ class classCasesTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new Cases();
$this->object = new Cases('appUid');
}
/**
@@ -43,7 +43,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Cases'); $this->assertTrue( count($methods) == 96);
$methods = get_class_methods('Cases');
$this->assertTrue( count($methods) == 96);
}
/**
@@ -204,7 +205,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testrefreshCaseTitleAndDescription()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('refreshCaseTitleAndDescription', $methods ), 'exists method refreshCaseTitleAndDescription' );
$this->assertTrue( in_array('refreshCaseTitleAndDescription', $methods ),
'exists method refreshCaseTitleAndDescription' );
$r = new ReflectionMethod('Cases', 'refreshCaseTitleAndDescription');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sAppUid');
@@ -222,7 +224,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testnewRefreshCaseTitleAndDescription()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('newRefreshCaseTitleAndDescription', $methods ), 'exists method newRefreshCaseTitleAndDescription' );
$this->assertTrue( in_array('newRefreshCaseTitleAndDescription', $methods ),
'exists method newRefreshCaseTitleAndDescription' );
$r = new ReflectionMethod('Cases', 'newRefreshCaseTitleAndDescription');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sAppUid');
@@ -324,7 +327,7 @@ class classCasesTest extends PHPUnit_Framework_TestCase
$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[1]->getDefaultValue() == array());
}
/**
@@ -457,7 +460,7 @@ class classCasesTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[2]->getName() == 'aPreviousTasks');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
$this->assertTrue( $params[2]->getDefaultValue() == array());
}
/**
@@ -736,7 +739,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testReactivateCurrentDelegation()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('ReactivateCurrentDelegation', $methods ), 'exists method ReactivateCurrentDelegation' );
$this->assertTrue( in_array('ReactivateCurrentDelegation', $methods ),
'exists method ReactivateCurrentDelegation' );
$r = new ReflectionMethod('Cases', 'ReactivateCurrentDelegation');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sAppUid');
@@ -854,7 +858,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetPreviousSupervisorStep()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getPreviousSupervisorStep', $methods ), 'exists method getPreviousSupervisorStep' );
$this->assertTrue( in_array('getPreviousSupervisorStep', $methods ),
'exists method getPreviousSupervisorStep' );
$r = new ReflectionMethod('Cases', 'getPreviousSupervisorStep');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
@@ -876,7 +881,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetTransferHistoryCriteria()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getTransferHistoryCriteria', $methods ), 'exists method getTransferHistoryCriteria' );
$this->assertTrue( in_array('getTransferHistoryCriteria', $methods ),
'exists method getTransferHistoryCriteria' );
$r = new ReflectionMethod('Cases', 'getTransferHistoryCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sAppUid');
@@ -934,7 +940,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testloadCaseInCurrentDelegation()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('loadCaseInCurrentDelegation', $methods ), 'exists method loadCaseInCurrentDelegation' );
$this->assertTrue( in_array('loadCaseInCurrentDelegation', $methods ),
'exists method loadCaseInCurrentDelegation' );
$r = new ReflectionMethod('Cases', 'loadCaseInCurrentDelegation');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'APP_UID');
@@ -982,7 +989,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testUnpauseRoutedCasesWithPauseFlagEnabled()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('UnpauseRoutedCasesWithPauseFlagEnabled', $methods ), 'exists method UnpauseRoutedCasesWithPauseFlagEnabled' );
$this->assertTrue( in_array('UnpauseRoutedCasesWithPauseFlagEnabled', $methods ),
'exists method UnpauseRoutedCasesWithPauseFlagEnabled' );
$r = new ReflectionMethod('Cases', 'UnpauseRoutedCasesWithPauseFlagEnabled');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'usrLogged');
@@ -997,7 +1005,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetApplicationUIDByNumber()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getApplicationUIDByNumber', $methods ), 'exists method getApplicationUIDByNumber' );
$this->assertTrue( in_array('getApplicationUIDByNumber', $methods ),
'exists method getApplicationUIDByNumber' );
$r = new ReflectionMethod('Cases', 'getApplicationUIDByNumber');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'iApplicationNumber');
@@ -1074,7 +1083,7 @@ class classCasesTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[4]->getName() == 'aFields');
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == true);
$this->assertTrue( $params[4]->getDefaultValue() == 'Array');
$this->assertTrue( $params[4]->getDefaultValue() == array());
}
/**
@@ -1099,7 +1108,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetInputDocumentsCriteria()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getInputDocumentsCriteria', $methods ), 'exists method getInputDocumentsCriteria' );
$this->assertTrue( in_array('getInputDocumentsCriteria', $methods ),
'exists method getInputDocumentsCriteria' );
$r = new ReflectionMethod('Cases', 'getInputDocumentsCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
@@ -1124,7 +1134,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetInputDocumentsCriteriaToRevise()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getInputDocumentsCriteriaToRevise', $methods ), 'exists method getInputDocumentsCriteriaToRevise' );
$this->assertTrue( in_array('getInputDocumentsCriteriaToRevise', $methods ),
'exists method getInputDocumentsCriteriaToRevise' );
$r = new ReflectionMethod('Cases', 'getInputDocumentsCriteriaToRevise');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
@@ -1139,7 +1150,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetOutputDocumentsCriteriaToRevise()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getOutputDocumentsCriteriaToRevise', $methods ), 'exists method getOutputDocumentsCriteriaToRevise' );
$this->assertTrue( in_array('getOutputDocumentsCriteriaToRevise', $methods ),
'exists method getOutputDocumentsCriteriaToRevise' );
$r = new ReflectionMethod('Cases', 'getOutputDocumentsCriteriaToRevise');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
@@ -1288,7 +1300,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllDynaformsStepsToRevise()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllDynaformsStepsToRevise', $methods ), 'exists method getAllDynaformsStepsToRevise' );
$this->assertTrue( in_array('getAllDynaformsStepsToRevise', $methods ),
'exists method getAllDynaformsStepsToRevise' );
$r = new ReflectionMethod('Cases', 'getAllDynaformsStepsToRevise');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'APP_UID');
@@ -1303,7 +1316,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllInputsStepsToRevise()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllInputsStepsToRevise', $methods ), 'exists method getAllInputsStepsToRevise' );
$this->assertTrue( in_array('getAllInputsStepsToRevise', $methods ),
'exists method getAllInputsStepsToRevise' );
$r = new ReflectionMethod('Cases', 'getAllInputsStepsToRevise');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'APP_UID');
@@ -1318,7 +1332,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllUploadedDocumentsCriteria()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllUploadedDocumentsCriteria', $methods ), 'exists method getAllUploadedDocumentsCriteria' );
$this->assertTrue( in_array('getAllUploadedDocumentsCriteria', $methods ),
'exists method getAllUploadedDocumentsCriteria' );
$r = new ReflectionMethod('Cases', 'getAllUploadedDocumentsCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
@@ -1342,7 +1357,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllGeneratedDocumentsCriteria()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllGeneratedDocumentsCriteria', $methods ), 'exists method getAllGeneratedDocumentsCriteria' );
$this->assertTrue( in_array('getAllGeneratedDocumentsCriteria', $methods ),
'exists method getAllGeneratedDocumentsCriteria' );
$r = new ReflectionMethod('Cases', 'getAllGeneratedDocumentsCriteria');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
@@ -1518,7 +1534,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllUploadedDocumentsCriteriaTracker()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllUploadedDocumentsCriteriaTracker', $methods ), 'exists method getAllUploadedDocumentsCriteriaTracker' );
$this->assertTrue( in_array('getAllUploadedDocumentsCriteriaTracker', $methods ),
'exists method getAllUploadedDocumentsCriteriaTracker' );
$r = new ReflectionMethod('Cases', 'getAllUploadedDocumentsCriteriaTracker');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
@@ -1539,7 +1556,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllGeneratedDocumentsCriteriaTracker()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllGeneratedDocumentsCriteriaTracker', $methods ), 'exists method getAllGeneratedDocumentsCriteriaTracker' );
$this->assertTrue( in_array('getAllGeneratedDocumentsCriteriaTracker', $methods ),
'exists method getAllGeneratedDocumentsCriteriaTracker' );
$r = new ReflectionMethod('Cases', 'getAllGeneratedDocumentsCriteriaTracker');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
@@ -1560,7 +1578,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetHistoryMessagesTracker()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getHistoryMessagesTracker', $methods ), 'exists method getHistoryMessagesTracker' );
$this->assertTrue( in_array('getHistoryMessagesTracker', $methods ),
'exists method getHistoryMessagesTracker' );
$r = new ReflectionMethod('Cases', 'getHistoryMessagesTracker');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
@@ -1575,7 +1594,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetHistoryMessagesTrackerExt()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getHistoryMessagesTrackerExt', $methods ), 'exists method getHistoryMessagesTrackerExt' );
$this->assertTrue( in_array('getHistoryMessagesTrackerExt', $methods ),
'exists method getHistoryMessagesTrackerExt' );
$r = new ReflectionMethod('Cases', 'getHistoryMessagesTrackerExt');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
@@ -1590,7 +1610,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetHistoryMessagesTrackerView()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getHistoryMessagesTrackerView', $methods ), 'exists method getHistoryMessagesTrackerView' );
$this->assertTrue( in_array('getHistoryMessagesTrackerView', $methods ),
'exists method getHistoryMessagesTrackerView' );
$r = new ReflectionMethod('Cases', 'getHistoryMessagesTrackerView');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
@@ -1608,7 +1629,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllObjectsFromProcess()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllObjectsFromProcess', $methods ), 'exists method getAllObjectsFromProcess' );
$this->assertTrue( in_array('getAllObjectsFromProcess', $methods ),
'exists method getAllObjectsFromProcess' );
$r = new ReflectionMethod('Cases', 'getAllObjectsFromProcess');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'PRO_UID');
@@ -1627,7 +1649,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testexecuteTriggersAfterExternal()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('executeTriggersAfterExternal', $methods ), 'exists method executeTriggersAfterExternal' );
$this->assertTrue( in_array('executeTriggersAfterExternal', $methods ),
'exists method executeTriggersAfterExternal' );
$r = new ReflectionMethod('Cases', 'executeTriggersAfterExternal');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sProcess');
@@ -1648,7 +1671,7 @@ class classCasesTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[5]->getName() == 'aNewData');
$this->assertTrue( $params[5]->isArray() == false);
$this->assertTrue( $params[5]->isOptional () == true);
$this->assertTrue( $params[5]->getDefaultValue() == 'Array');
$this->assertTrue( $params[5]->getDefaultValue() == array());
}
/**
@@ -1769,7 +1792,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetAllConditionCasesCount()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getAllConditionCasesCount', $methods ), 'exists method getAllConditionCasesCount' );
$this->assertTrue( in_array('getAllConditionCasesCount', $methods ),
'exists method getAllConditionCasesCount' );
$r = new ReflectionMethod('Cases', 'getAllConditionCasesCount');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'types');
@@ -1897,7 +1921,8 @@ class classCasesTest extends PHPUnit_Framework_TestCase
public function testgetUsersParticipatedInCase()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getUsersParticipatedInCase', $methods ), 'exists method getUsersParticipatedInCase' );
$this->assertTrue( in_array('getUsersParticipatedInCase', $methods ),
'exists method getUsersParticipatedInCase' );
$r = new ReflectionMethod('Cases', 'getUsersParticipatedInCase');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'sAppUid');
@@ -1927,5 +1952,5 @@ class classCasesTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == '');
}
}

View File

@@ -1,4 +1,5 @@
<?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';
@@ -43,7 +44,8 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Installer'); $this->assertTrue( count($methods) == 11);
$methods = get_class_methods('Installer');
$this->assertTrue( count($methods) == 11);
}
/**
@@ -71,7 +73,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[0]->getName() == 'config');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->assertTrue( $params[0]->getDefaultValue() == array());
$this->assertTrue( $params[1]->getName() == 'confirmed');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
@@ -225,5 +227,5 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
}
}

View File

@@ -26,7 +26,8 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new Jrml();
$array = array('sql'=>'', 'type'=> array());
$this->object = new Jrml($array);
}
/**
@@ -43,7 +44,8 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('Jrml'); $this->assertTrue( count($methods) == 7);
$methods = get_class_methods('Jrml');
$this->assertTrue( count($methods) == 7);
}
/**
@@ -59,7 +61,7 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[0]->getName() == 'data');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
$this->assertTrue( $params[0]->getDefaultValue() == array());
}
/**
@@ -133,5 +135,5 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('Jrml', 'export');
$params = $r->getParameters();
}
}

View File

@@ -1,4 +1,5 @@
<?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';
@@ -12,9 +13,9 @@ require_once PATH_TRUNK . 'workflow/engine/classes/class.plugin.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:32.
*/
class classPMPluginTest extends PHPUnit_Framework_TestCase
{
/**
* @var PMPlugin
*/
@@ -26,7 +27,7 @@ class classPMPluginTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new PMPlugin();
$this->object = new PMPlugin('sNamespace', 'sFilename');
}
/**
@@ -35,6 +36,7 @@ class classPMPluginTest extends PHPUnit_Framework_TestCase
*/
protected function tearDown()
{
}
/**
@@ -43,7 +45,8 @@ class classPMPluginTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('PMPlugin'); $this->assertTrue( count($methods) == 22);
$methods = get_class_methods('PMPlugin');
$this->assertTrue(count($methods) == 22);
}
/**
@@ -342,7 +345,8 @@ class classPMPluginTest extends PHPUnit_Framework_TestCase
public function testregisterCaseSchedulerPlugin()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('registerCaseSchedulerPlugin', $methods ), 'exists method registerCaseSchedulerPlugin' );
$this->assertTrue(in_array('registerCaseSchedulerPlugin', $methods),
'exists method registerCaseSchedulerPlugin');
$r = new ReflectionMethod('PMPlugin', 'registerCaseSchedulerPlugin');
$params = $r->getParameters();
$this->assertTrue($params[0]->getName() == 'sActionId');
@@ -369,7 +373,8 @@ class classPMPluginTest extends PHPUnit_Framework_TestCase
public function testregisterTaskExtendedProperty()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('registerTaskExtendedProperty', $methods ), 'exists method registerTaskExtendedProperty' );
$this->assertTrue(in_array('registerTaskExtendedProperty', $methods),
'exists method registerTaskExtendedProperty');
$r = new ReflectionMethod('PMPlugin', 'registerTaskExtendedProperty');
$params = $r->getParameters();
$this->assertTrue($params[0]->getName() == 'sPage');
@@ -443,5 +448,5 @@ class classPMPluginTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('PMPlugin', 'getExternalStepAction');
$params = $r->getParameters();
}
}

View File

@@ -26,7 +26,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new PMmemcached();
$this->object = new PMmemcached('workflow');
}
/**
@@ -43,7 +43,8 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('PMmemcached'); $this->assertTrue( count($methods) == 12);
$methods = get_class_methods('PMmemcached');
$this->assertTrue( count($methods) == 12);
}
/**
@@ -223,5 +224,5 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('PMmemcached', 'printDetails');
$params = $r->getParameters();
}
}

View File

@@ -26,7 +26,7 @@ class classcssFileTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new cssFile();
$this->object = new cssFile('sNamespace', 'sCssFile');
}
/**
@@ -43,7 +43,8 @@ class classcssFileTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('cssFile'); $this->assertTrue( count($methods) == 1);
$methods = get_class_methods('cssFile');
$this->assertTrue( count($methods) == 1);
}
/**
@@ -63,5 +64,5 @@ class classcssFileTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
}
}

View File

@@ -26,7 +26,7 @@ class classmenuDetailTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new menuDetail();
$this->object = new menuDetail('nameSpace', 'menuId', 'fileName');
}
/**
@@ -43,7 +43,8 @@ class classmenuDetailTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('menuDetail'); $this->assertTrue( count($methods) == 1);
$methods = get_class_methods('menuDetail');
$this->assertTrue( count($methods) == 1);
}
/**
@@ -66,5 +67,5 @@ class classmenuDetailTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
}
}

View File

@@ -1,4 +1,5 @@
<?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';
@@ -12,9 +13,9 @@ require_once PATH_TRUNK . 'workflow/engine/classes/class.propelTable.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:25.
*/
class classpropelTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var propelTable
*/
@@ -35,6 +36,7 @@ class classpropelTableTest extends PHPUnit_Framework_TestCase
*/
protected function tearDown()
{
}
/**
@@ -43,7 +45,8 @@ class classpropelTableTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('propelTable'); $this->assertTrue( count($methods) == 8);
$methods = get_class_methods('propelTable');
$this->assertTrue(count($methods) == 8);
}
/**
@@ -170,7 +173,7 @@ class classpropelTableTest extends PHPUnit_Framework_TestCase
$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->assertTrue($params[1]->getDefaultValue() == array());
}
}
}

View File

@@ -1,4 +1,5 @@
<?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';
@@ -12,9 +13,9 @@ require_once PATH_TRUNK . 'workflow/engine/classes/class.serverConfiguration.php
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:32.
*/
class classserverConfTest extends PHPUnit_Framework_TestCase
{
/**
* @var serverConf
*/
@@ -35,6 +36,7 @@ class classserverConfTest extends PHPUnit_Framework_TestCase
*/
protected function tearDown()
{
}
/**
@@ -43,7 +45,8 @@ class classserverConfTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('serverConf'); $this->assertTrue( count($methods) == 23);
$methods = get_class_methods('serverConf');
$this->assertTrue(count($methods) == 23);
}
/**
@@ -378,5 +381,5 @@ class classserverConfTest extends PHPUnit_Framework_TestCase
$this->assertTrue($params[1]->isArray() == false);
$this->assertTrue($params[1]->isOptional() == false);
}
}

View File

@@ -26,7 +26,7 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new wsCreateDepartmentResponse();
$this->object = new wsCreateDepartmentResponse('status', 'message', 'departmentUID');
}
/**
@@ -43,7 +43,8 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('wsCreateDepartmentResponse'); $this->assertTrue( count($methods) == 1);
$methods = get_class_methods('wsCreateDepartmentResponse');
$this->assertTrue( count($methods) == 1);
}
/**
@@ -66,5 +67,5 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
}
}

View File

@@ -26,7 +26,7 @@ class classwsGetCaseNotesResponseTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new wsGetCaseNotesResponse();
$this->object = new wsGetCaseNotesResponse(0, 'message', array());
}
/**
@@ -43,7 +43,8 @@ class classwsGetCaseNotesResponseTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('wsGetCaseNotesResponse'); $this->assertTrue( count($methods) == 1);
$methods = get_class_methods('wsGetCaseNotesResponse');
$this->assertTrue( count($methods) == 1);
}
/**
@@ -66,5 +67,5 @@ class classwsGetCaseNotesResponseTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
}
}