Merge remote branch 'upstream/master'
This commit is contained in:
@@ -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() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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() == '');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
@@ -11,437 +12,441 @@ 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
|
||||
*/
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
* This method is called before a test is executed.
|
||||
*/
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new PMPlugin();
|
||||
$this->object = new PMPlugin('sNamespace', 'sFilename');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('PMPlugin'); $this->assertTrue( count($methods) == 22);
|
||||
$methods = get_class_methods('PMPlugin');
|
||||
$this->assertTrue(count($methods) == 22);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::PMPlugin
|
||||
* @todo Implement testPMPlugin().
|
||||
*/
|
||||
* @covers PMPlugin::PMPlugin
|
||||
* @todo Implement testPMPlugin().
|
||||
*/
|
||||
public function testPMPlugin()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('PMPlugin', $methods ), 'exists method PMPlugin' );
|
||||
$this->assertTrue(in_array('PMPlugin', $methods), 'exists method PMPlugin');
|
||||
$r = new ReflectionMethod('PMPlugin', 'PMPlugin');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sNamespace');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sFilename');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'sNamespace');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sFilename');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == true);
|
||||
$this->assertTrue($params[1]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerMenu
|
||||
* @todo Implement testregisterMenu().
|
||||
*/
|
||||
* @covers PMPlugin::registerMenu
|
||||
* @todo Implement testregisterMenu().
|
||||
*/
|
||||
public function testregisterMenu()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerMenu', $methods ), 'exists method registerMenu' );
|
||||
$this->assertTrue(in_array('registerMenu', $methods), 'exists method registerMenu');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerMenu');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'menuId');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'menuFilename');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'menuId');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'menuFilename');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerDashlets
|
||||
* @todo Implement testregisterDashlets().
|
||||
*/
|
||||
* @covers PMPlugin::registerDashlets
|
||||
* @todo Implement testregisterDashlets().
|
||||
*/
|
||||
public function testregisterDashlets()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerDashlets', $methods ), 'exists method registerDashlets' );
|
||||
$this->assertTrue(in_array('registerDashlets', $methods), 'exists method registerDashlets');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerDashlets');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerReport
|
||||
* @todo Implement testregisterReport().
|
||||
*/
|
||||
* @covers PMPlugin::registerReport
|
||||
* @todo Implement testregisterReport().
|
||||
*/
|
||||
public function testregisterReport()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerReport', $methods ), 'exists method registerReport' );
|
||||
$this->assertTrue(in_array('registerReport', $methods), 'exists method registerReport');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerReport');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerPmFunction
|
||||
* @todo Implement testregisterPmFunction().
|
||||
*/
|
||||
* @covers PMPlugin::registerPmFunction
|
||||
* @todo Implement testregisterPmFunction().
|
||||
*/
|
||||
public function testregisterPmFunction()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerPmFunction', $methods ), 'exists method registerPmFunction' );
|
||||
$this->assertTrue(in_array('registerPmFunction', $methods), 'exists method registerPmFunction');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerPmFunction');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::setCompanyLogo
|
||||
* @todo Implement testsetCompanyLogo().
|
||||
*/
|
||||
* @covers PMPlugin::setCompanyLogo
|
||||
* @todo Implement testsetCompanyLogo().
|
||||
*/
|
||||
public function testsetCompanyLogo()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setCompanyLogo', $methods ), 'exists method setCompanyLogo' );
|
||||
$this->assertTrue(in_array('setCompanyLogo', $methods), 'exists method setCompanyLogo');
|
||||
$r = new ReflectionMethod('PMPlugin', 'setCompanyLogo');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'filename');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::redirectLogin
|
||||
* @todo Implement testredirectLogin().
|
||||
*/
|
||||
* @covers PMPlugin::redirectLogin
|
||||
* @todo Implement testredirectLogin().
|
||||
*/
|
||||
public function testredirectLogin()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('redirectLogin', $methods ), 'exists method redirectLogin' );
|
||||
$this->assertTrue(in_array('redirectLogin', $methods), 'exists method redirectLogin');
|
||||
$r = new ReflectionMethod('PMPlugin', 'redirectLogin');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'role');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'pathMethod');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'role');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'pathMethod');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerFolder
|
||||
* @todo Implement testregisterFolder().
|
||||
*/
|
||||
* @covers PMPlugin::registerFolder
|
||||
* @todo Implement testregisterFolder().
|
||||
*/
|
||||
public function testregisterFolder()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerFolder', $methods ), 'exists method registerFolder' );
|
||||
$this->assertTrue(in_array('registerFolder', $methods), 'exists method registerFolder');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerFolder');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sFolderId');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sFolderName');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'sFolderId');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sFolderName');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerStep
|
||||
* @todo Implement testregisterStep().
|
||||
*/
|
||||
* @covers PMPlugin::registerStep
|
||||
* @todo Implement testregisterStep().
|
||||
*/
|
||||
public function testregisterStep()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerStep', $methods ), 'exists method registerStep' );
|
||||
$this->assertTrue(in_array('registerStep', $methods), 'exists method registerStep');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerStep');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sStepId');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sStepName');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'sStepTitle');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'sSetupStepPage');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'sStepId');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sStepName');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
$this->assertTrue($params[2]->getName() == 'sStepTitle');
|
||||
$this->assertTrue($params[2]->isArray() == false);
|
||||
$this->assertTrue($params[2]->isOptional() == false);
|
||||
$this->assertTrue($params[3]->getName() == 'sSetupStepPage');
|
||||
$this->assertTrue($params[3]->isArray() == false);
|
||||
$this->assertTrue($params[3]->isOptional() == true);
|
||||
$this->assertTrue($params[3]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerTrigger
|
||||
* @todo Implement testregisterTrigger().
|
||||
*/
|
||||
* @covers PMPlugin::registerTrigger
|
||||
* @todo Implement testregisterTrigger().
|
||||
*/
|
||||
public function testregisterTrigger()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerTrigger', $methods ), 'exists method registerTrigger' );
|
||||
$this->assertTrue(in_array('registerTrigger', $methods), 'exists method registerTrigger');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerTrigger');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTriggerId');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sTriggerName');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'sTriggerId');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sTriggerName');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::delete
|
||||
* @todo Implement testdelete().
|
||||
*/
|
||||
* @covers PMPlugin::delete
|
||||
* @todo Implement testdelete().
|
||||
*/
|
||||
public function testdelete()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
|
||||
$this->assertTrue(in_array('delete', $methods), 'exists method delete');
|
||||
$r = new ReflectionMethod('PMPlugin', 'delete');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sFilename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'bAbsolutePath');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'sFilename');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'bAbsolutePath');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == true);
|
||||
$this->assertTrue($params[1]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::copy
|
||||
* @todo Implement testcopy().
|
||||
*/
|
||||
* @covers PMPlugin::copy
|
||||
* @todo Implement testcopy().
|
||||
*/
|
||||
public function testcopy()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('copy', $methods ), 'exists method copy' );
|
||||
$this->assertTrue(in_array('copy', $methods), 'exists method copy');
|
||||
$r = new ReflectionMethod('PMPlugin', 'copy');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sSouce');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sTarget');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'bSourceAbsolutePath');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'bTargetAbsolutePath');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'sSouce');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sTarget');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
$this->assertTrue($params[2]->getName() == 'bSourceAbsolutePath');
|
||||
$this->assertTrue($params[2]->isArray() == false);
|
||||
$this->assertTrue($params[2]->isOptional() == true);
|
||||
$this->assertTrue($params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[3]->getName() == 'bTargetAbsolutePath');
|
||||
$this->assertTrue($params[3]->isArray() == false);
|
||||
$this->assertTrue($params[3]->isOptional() == true);
|
||||
$this->assertTrue($params[3]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::rename
|
||||
* @todo Implement testrename().
|
||||
*/
|
||||
* @covers PMPlugin::rename
|
||||
* @todo Implement testrename().
|
||||
*/
|
||||
public function testrename()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('rename', $methods ), 'exists method rename' );
|
||||
$this->assertTrue(in_array('rename', $methods), 'exists method rename');
|
||||
$r = new ReflectionMethod('PMPlugin', 'rename');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sSouce');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sTarget');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'bSourceAbsolutePath');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'bTargetAbsolutePath');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'sSouce');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sTarget');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
$this->assertTrue($params[2]->getName() == 'bSourceAbsolutePath');
|
||||
$this->assertTrue($params[2]->isArray() == false);
|
||||
$this->assertTrue($params[2]->isOptional() == true);
|
||||
$this->assertTrue($params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[3]->getName() == 'bTargetAbsolutePath');
|
||||
$this->assertTrue($params[3]->isArray() == false);
|
||||
$this->assertTrue($params[3]->isOptional() == true);
|
||||
$this->assertTrue($params[3]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerBreakPageTemplate
|
||||
* @todo Implement testregisterBreakPageTemplate().
|
||||
*/
|
||||
* @covers PMPlugin::registerBreakPageTemplate
|
||||
* @todo Implement testregisterBreakPageTemplate().
|
||||
*/
|
||||
public function testregisterBreakPageTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerBreakPageTemplate', $methods ), 'exists method registerBreakPageTemplate' );
|
||||
$this->assertTrue(in_array('registerBreakPageTemplate', $methods), 'exists method registerBreakPageTemplate');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerBreakPageTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'pageId');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'templateFilename');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'pageId');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'templateFilename');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerCss
|
||||
* @todo Implement testregisterCss().
|
||||
*/
|
||||
* @covers PMPlugin::registerCss
|
||||
* @todo Implement testregisterCss().
|
||||
*/
|
||||
public function testregisterCss()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerCss', $methods ), 'exists method registerCss' );
|
||||
$this->assertTrue(in_array('registerCss', $methods), 'exists method registerCss');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerCss');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sCssFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'sCssFile');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerToolbarFile
|
||||
* @todo Implement testregisterToolbarFile().
|
||||
*/
|
||||
* @covers PMPlugin::registerToolbarFile
|
||||
* @todo Implement testregisterToolbarFile().
|
||||
*/
|
||||
public function testregisterToolbarFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerToolbarFile', $methods ), 'exists method registerToolbarFile' );
|
||||
$this->assertTrue(in_array('registerToolbarFile', $methods), 'exists method registerToolbarFile');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerToolbarFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sToolbarId');
|
||||
$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 () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'sToolbarId');
|
||||
$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() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerCaseSchedulerPlugin
|
||||
* @todo Implement testregisterCaseSchedulerPlugin().
|
||||
*/
|
||||
* @covers PMPlugin::registerCaseSchedulerPlugin
|
||||
* @todo Implement testregisterCaseSchedulerPlugin().
|
||||
*/
|
||||
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');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sActionForm');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'sActionSave');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'sActionExecute');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->assertTrue( $params[4]->getName() == 'sActionGetFields');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'sActionId');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sActionForm');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
$this->assertTrue($params[2]->getName() == 'sActionSave');
|
||||
$this->assertTrue($params[2]->isArray() == false);
|
||||
$this->assertTrue($params[2]->isOptional() == false);
|
||||
$this->assertTrue($params[3]->getName() == 'sActionExecute');
|
||||
$this->assertTrue($params[3]->isArray() == false);
|
||||
$this->assertTrue($params[3]->isOptional() == false);
|
||||
$this->assertTrue($params[4]->getName() == 'sActionGetFields');
|
||||
$this->assertTrue($params[4]->isArray() == false);
|
||||
$this->assertTrue($params[4]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerTaskExtendedProperty
|
||||
* @todo Implement testregisterTaskExtendedProperty().
|
||||
*/
|
||||
* @covers PMPlugin::registerTaskExtendedProperty
|
||||
* @todo Implement testregisterTaskExtendedProperty().
|
||||
*/
|
||||
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');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sName');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'sIcon');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'sPage');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'sName');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
$this->assertTrue($params[2]->getName() == 'sIcon');
|
||||
$this->assertTrue($params[2]->isArray() == false);
|
||||
$this->assertTrue($params[2]->isOptional() == true);
|
||||
$this->assertTrue($params[2]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerJavascript
|
||||
* @todo Implement testregisterJavascript().
|
||||
*/
|
||||
* @covers PMPlugin::registerJavascript
|
||||
* @todo Implement testregisterJavascript().
|
||||
*/
|
||||
public function testregisterJavascript()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerJavascript', $methods ), 'exists method registerJavascript' );
|
||||
$this->assertTrue(in_array('registerJavascript', $methods), 'exists method registerJavascript');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerJavascript');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sCoreJsFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'pluginJsFile');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'sCoreJsFile');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'pluginJsFile');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::unregisterJavascript
|
||||
* @todo Implement testunregisterJavascript().
|
||||
*/
|
||||
* @covers PMPlugin::unregisterJavascript
|
||||
* @todo Implement testunregisterJavascript().
|
||||
*/
|
||||
public function testunregisterJavascript()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('unregisterJavascript', $methods ), 'exists method unregisterJavascript' );
|
||||
$this->assertTrue(in_array('unregisterJavascript', $methods), 'exists method unregisterJavascript');
|
||||
$r = new ReflectionMethod('PMPlugin', 'unregisterJavascript');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sCoreJsFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'pluginJsFile');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'sCoreJsFile');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'pluginJsFile');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::registerDashboard
|
||||
* @todo Implement testregisterDashboard().
|
||||
*/
|
||||
* @covers PMPlugin::registerDashboard
|
||||
* @todo Implement testregisterDashboard().
|
||||
*/
|
||||
public function testregisterDashboard()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('registerDashboard', $methods ), 'exists method registerDashboard' );
|
||||
$this->assertTrue(in_array('registerDashboard', $methods), 'exists method registerDashboard');
|
||||
$r = new ReflectionMethod('PMPlugin', 'registerDashboard');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMPlugin::getExternalStepAction
|
||||
* @todo Implement testgetExternalStepAction().
|
||||
*/
|
||||
* @covers PMPlugin::getExternalStepAction
|
||||
* @todo Implement testgetExternalStepAction().
|
||||
*/
|
||||
public function testgetExternalStepAction()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getExternalStepAction', $methods ), 'exists method getExternalStepAction' );
|
||||
$this->assertTrue(in_array('getExternalStepAction', $methods), 'exists method getExternalStepAction');
|
||||
$r = new ReflectionMethod('PMPlugin', 'getExternalStepAction');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
@@ -11,19 +12,19 @@ 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
|
||||
*/
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
* This method is called before a test is executed.
|
||||
*/
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new propelTable();
|
||||
@@ -32,145 +33,147 @@ class classpropelTableTest 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()
|
||||
{
|
||||
$methods = get_class_methods('propelTable'); $this->assertTrue( count($methods) == 8);
|
||||
$methods = get_class_methods('propelTable');
|
||||
$this->assertTrue(count($methods) == 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::prepareQuery
|
||||
* @todo Implement testprepareQuery().
|
||||
*/
|
||||
* @covers propelTable::prepareQuery
|
||||
* @todo Implement testprepareQuery().
|
||||
*/
|
||||
public function testprepareQuery()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('prepareQuery', $methods ), 'exists method prepareQuery' );
|
||||
$this->assertTrue(in_array('prepareQuery', $methods), 'exists method prepareQuery');
|
||||
$r = new ReflectionMethod('propelTable', 'prepareQuery');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'limitPage');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'limitPage');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == true);
|
||||
$this->assertTrue($params[0]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::setupFromXmlform
|
||||
* @todo Implement testsetupFromXmlform().
|
||||
*/
|
||||
* @covers propelTable::setupFromXmlform
|
||||
* @todo Implement testsetupFromXmlform().
|
||||
*/
|
||||
public function testsetupFromXmlform()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setupFromXmlform', $methods ), 'exists method setupFromXmlform' );
|
||||
$this->assertTrue(in_array('setupFromXmlform', $methods), 'exists method setupFromXmlform');
|
||||
$r = new ReflectionMethod('propelTable', 'setupFromXmlform');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlForm');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'xmlForm');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::count
|
||||
* @todo Implement testcount().
|
||||
*/
|
||||
* @covers propelTable::count
|
||||
* @todo Implement testcount().
|
||||
*/
|
||||
public function testcount()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('count', $methods ), 'exists method count' );
|
||||
$this->assertTrue(in_array('count', $methods), 'exists method count');
|
||||
$r = new ReflectionMethod('propelTable', 'count');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::renderTitle
|
||||
* @todo Implement testrenderTitle().
|
||||
*/
|
||||
* @covers propelTable::renderTitle
|
||||
* @todo Implement testrenderTitle().
|
||||
*/
|
||||
public function testrenderTitle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTitle', $methods ), 'exists method renderTitle' );
|
||||
$this->assertTrue(in_array('renderTitle', $methods), 'exists method renderTitle');
|
||||
$r = new ReflectionMethod('propelTable', 'renderTitle');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::renderField
|
||||
* @todo Implement testrenderField().
|
||||
*/
|
||||
* @covers propelTable::renderField
|
||||
* @todo Implement testrenderField().
|
||||
*/
|
||||
public function testrenderField()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderField', $methods ), 'exists method renderField' );
|
||||
$this->assertTrue(in_array('renderField', $methods), 'exists method renderField');
|
||||
$r = new ReflectionMethod('propelTable', '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->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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::defaultStyle
|
||||
* @todo Implement testdefaultStyle().
|
||||
*/
|
||||
* @covers propelTable::defaultStyle
|
||||
* @todo Implement testdefaultStyle().
|
||||
*/
|
||||
public function testdefaultStyle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('defaultStyle', $methods ), 'exists method defaultStyle' );
|
||||
$this->assertTrue(in_array('defaultStyle', $methods), 'exists method defaultStyle');
|
||||
$r = new ReflectionMethod('propelTable', 'defaultStyle');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
* @covers propelTable::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$this->assertTrue(in_array('renderTable', $methods), 'exists method renderTable');
|
||||
$r = new ReflectionMethod('propelTable', '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->assertTrue( $params[1]->getName() == 'fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[0]->getName() == 'block');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == true);
|
||||
$this->assertTrue($params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[1]->getName() == 'fields');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == true);
|
||||
$this->assertTrue($params[1]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::printForm
|
||||
* @todo Implement testprintForm().
|
||||
*/
|
||||
* @covers propelTable::printForm
|
||||
* @todo Implement testprintForm().
|
||||
*/
|
||||
public function testprintForm()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printForm', $methods ), 'exists method printForm' );
|
||||
$this->assertTrue(in_array('printForm', $methods), 'exists method printForm');
|
||||
$r = new ReflectionMethod('propelTable', '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->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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
@@ -11,19 +12,19 @@ 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
|
||||
*/
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
* This method is called before a test is executed.
|
||||
*/
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new serverConf();
|
||||
@@ -32,351 +33,353 @@ class classserverConfTest 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()
|
||||
{
|
||||
$methods = get_class_methods('serverConf'); $this->assertTrue( count($methods) == 23);
|
||||
$methods = get_class_methods('serverConf');
|
||||
$this->assertTrue(count($methods) == 23);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::__construct
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
* @covers serverConf::__construct
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$this->assertTrue(in_array('__construct', $methods), 'exists method __construct');
|
||||
$r = new ReflectionMethod('serverConf', '__construct');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getSingleton
|
||||
* @todo Implement testgetSingleton().
|
||||
*/
|
||||
* @covers serverConf::getSingleton
|
||||
* @todo Implement testgetSingleton().
|
||||
*/
|
||||
public function testgetSingleton()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' );
|
||||
$this->assertTrue(in_array('getSingleton', $methods), 'exists method getSingleton');
|
||||
$r = new ReflectionMethod('serverConf', 'getSingleton');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::serializeInstance
|
||||
* @todo Implement testserializeInstance().
|
||||
*/
|
||||
* @covers serverConf::serializeInstance
|
||||
* @todo Implement testserializeInstance().
|
||||
*/
|
||||
public function testserializeInstance()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('serializeInstance', $methods ), 'exists method serializeInstance' );
|
||||
$this->assertTrue(in_array('serializeInstance', $methods), 'exists method serializeInstance');
|
||||
$r = new ReflectionMethod('serverConf', 'serializeInstance');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::unSerializeInstance
|
||||
* @todo Implement testunSerializeInstance().
|
||||
*/
|
||||
* @covers serverConf::unSerializeInstance
|
||||
* @todo Implement testunSerializeInstance().
|
||||
*/
|
||||
public function testunSerializeInstance()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('unSerializeInstance', $methods ), 'exists method unSerializeInstance' );
|
||||
$this->assertTrue(in_array('unSerializeInstance', $methods), 'exists method unSerializeInstance');
|
||||
$r = new ReflectionMethod('serverConf', 'unSerializeInstance');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'serialized');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'serialized');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::saveSingleton
|
||||
* @todo Implement testsaveSingleton().
|
||||
*/
|
||||
* @covers serverConf::saveSingleton
|
||||
* @todo Implement testsaveSingleton().
|
||||
*/
|
||||
public function testsaveSingleton()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('saveSingleton', $methods ), 'exists method saveSingleton' );
|
||||
$this->assertTrue(in_array('saveSingleton', $methods), 'exists method saveSingleton');
|
||||
$r = new ReflectionMethod('serverConf', 'saveSingleton');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::setProperty
|
||||
* @todo Implement testsetProperty().
|
||||
*/
|
||||
* @covers serverConf::setProperty
|
||||
* @todo Implement testsetProperty().
|
||||
*/
|
||||
public function testsetProperty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setProperty', $methods ), 'exists method setProperty' );
|
||||
$this->assertTrue(in_array('setProperty', $methods), 'exists method setProperty');
|
||||
$r = new ReflectionMethod('serverConf', 'setProperty');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'propertyValue');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'propertyValue');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::unsetProperty
|
||||
* @todo Implement testunsetProperty().
|
||||
*/
|
||||
* @covers serverConf::unsetProperty
|
||||
* @todo Implement testunsetProperty().
|
||||
*/
|
||||
public function testunsetProperty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('unsetProperty', $methods ), 'exists method unsetProperty' );
|
||||
$this->assertTrue(in_array('unsetProperty', $methods), 'exists method unsetProperty');
|
||||
$r = new ReflectionMethod('serverConf', 'unsetProperty');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getProperty
|
||||
* @todo Implement testgetProperty().
|
||||
*/
|
||||
* @covers serverConf::getProperty
|
||||
* @todo Implement testgetProperty().
|
||||
*/
|
||||
public function testgetProperty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getProperty', $methods ), 'exists method getProperty' );
|
||||
$this->assertTrue(in_array('getProperty', $methods), 'exists method getProperty');
|
||||
$r = new ReflectionMethod('serverConf', 'getProperty');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::sucessfulLogin
|
||||
* @todo Implement testsucessfulLogin().
|
||||
*/
|
||||
* @covers serverConf::sucessfulLogin
|
||||
* @todo Implement testsucessfulLogin().
|
||||
*/
|
||||
public function testsucessfulLogin()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('sucessfulLogin', $methods ), 'exists method sucessfulLogin' );
|
||||
$this->assertTrue(in_array('sucessfulLogin', $methods), 'exists method sucessfulLogin');
|
||||
$r = new ReflectionMethod('serverConf', 'sucessfulLogin');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::setWsInfo
|
||||
* @todo Implement testsetWsInfo().
|
||||
*/
|
||||
* @covers serverConf::setWsInfo
|
||||
* @todo Implement testsetWsInfo().
|
||||
*/
|
||||
public function testsetWsInfo()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setWsInfo', $methods ), 'exists method setWsInfo' );
|
||||
$this->assertTrue(in_array('setWsInfo', $methods), 'exists method setWsInfo');
|
||||
$r = new ReflectionMethod('serverConf', 'setWsInfo');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'wsname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'info');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'wsname');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'info');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::changeStatusWS
|
||||
* @todo Implement testchangeStatusWS().
|
||||
*/
|
||||
* @covers serverConf::changeStatusWS
|
||||
* @todo Implement testchangeStatusWS().
|
||||
*/
|
||||
public function testchangeStatusWS()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('changeStatusWS', $methods ), 'exists method changeStatusWS' );
|
||||
$this->assertTrue(in_array('changeStatusWS', $methods), 'exists method changeStatusWS');
|
||||
$r = new ReflectionMethod('serverConf', 'changeStatusWS');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'wsName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'wsName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::isWSDisabled
|
||||
* @todo Implement testisWSDisabled().
|
||||
*/
|
||||
* @covers serverConf::isWSDisabled
|
||||
* @todo Implement testisWSDisabled().
|
||||
*/
|
||||
public function testisWSDisabled()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('isWSDisabled', $methods ), 'exists method isWSDisabled' );
|
||||
$this->assertTrue(in_array('isWSDisabled', $methods), 'exists method isWSDisabled');
|
||||
$r = new ReflectionMethod('serverConf', 'isWSDisabled');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'wsName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'wsName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::checkIfHostNameHasChanged
|
||||
* @todo Implement testcheckIfHostNameHasChanged().
|
||||
*/
|
||||
* @covers serverConf::checkIfHostNameHasChanged
|
||||
* @todo Implement testcheckIfHostNameHasChanged().
|
||||
*/
|
||||
public function testcheckIfHostNameHasChanged()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('checkIfHostNameHasChanged', $methods ), 'exists method checkIfHostNameHasChanged' );
|
||||
$this->assertTrue(in_array('checkIfHostNameHasChanged', $methods), 'exists method checkIfHostNameHasChanged');
|
||||
$r = new ReflectionMethod('serverConf', 'checkIfHostNameHasChanged');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getWSList
|
||||
* @todo Implement testgetWSList().
|
||||
*/
|
||||
* @covers serverConf::getWSList
|
||||
* @todo Implement testgetWSList().
|
||||
*/
|
||||
public function testgetWSList()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getWSList', $methods ), 'exists method getWSList' );
|
||||
$this->assertTrue(in_array('getWSList', $methods), 'exists method getWSList');
|
||||
$r = new ReflectionMethod('serverConf', 'getWSList');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getWorkspaceInfo
|
||||
* @todo Implement testgetWorkspaceInfo().
|
||||
*/
|
||||
* @covers serverConf::getWorkspaceInfo
|
||||
* @todo Implement testgetWorkspaceInfo().
|
||||
*/
|
||||
public function testgetWorkspaceInfo()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getWorkspaceInfo', $methods ), 'exists method getWorkspaceInfo' );
|
||||
$this->assertTrue(in_array('getWorkspaceInfo', $methods), 'exists method getWorkspaceInfo');
|
||||
$r = new ReflectionMethod('serverConf', 'getWorkspaceInfo');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'wsName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'wsName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getPluginsList
|
||||
* @todo Implement testgetPluginsList().
|
||||
*/
|
||||
* @covers serverConf::getPluginsList
|
||||
* @todo Implement testgetPluginsList().
|
||||
*/
|
||||
public function testgetPluginsList()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getPluginsList', $methods ), 'exists method getPluginsList' );
|
||||
$this->assertTrue(in_array('getPluginsList', $methods), 'exists method getPluginsList');
|
||||
$r = new ReflectionMethod('serverConf', 'getPluginsList');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::addPlugin
|
||||
* @todo Implement testaddPlugin().
|
||||
*/
|
||||
* @covers serverConf::addPlugin
|
||||
* @todo Implement testaddPlugin().
|
||||
*/
|
||||
public function testaddPlugin()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addPlugin', $methods ), 'exists method addPlugin' );
|
||||
$this->assertTrue(in_array('addPlugin', $methods), 'exists method addPlugin');
|
||||
$r = new ReflectionMethod('serverConf', 'addPlugin');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'workspace');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'info');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'workspace');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'info');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getDBVersion
|
||||
* @todo Implement testgetDBVersion().
|
||||
*/
|
||||
* @covers serverConf::getDBVersion
|
||||
* @todo Implement testgetDBVersion().
|
||||
*/
|
||||
public function testgetDBVersion()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getDBVersion', $methods ), 'exists method getDBVersion' );
|
||||
$this->assertTrue(in_array('getDBVersion', $methods), 'exists method getDBVersion');
|
||||
$r = new ReflectionMethod('serverConf', 'getDBVersion');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::resetLogins
|
||||
* @todo Implement testresetLogins().
|
||||
*/
|
||||
* @covers serverConf::resetLogins
|
||||
* @todo Implement testresetLogins().
|
||||
*/
|
||||
public function testresetLogins()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('resetLogins', $methods ), 'exists method resetLogins' );
|
||||
$this->assertTrue(in_array('resetLogins', $methods), 'exists method resetLogins');
|
||||
$r = new ReflectionMethod('serverConf', 'resetLogins');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getLanDirection
|
||||
* @todo Implement testgetLanDirection().
|
||||
*/
|
||||
* @covers serverConf::getLanDirection
|
||||
* @todo Implement testgetLanDirection().
|
||||
*/
|
||||
public function testgetLanDirection()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getLanDirection', $methods ), 'exists method getLanDirection' );
|
||||
$this->assertTrue(in_array('getLanDirection', $methods), 'exists method getLanDirection');
|
||||
$r = new ReflectionMethod('serverConf', 'getLanDirection');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::setHeartbeatProperty
|
||||
* @todo Implement testsetHeartbeatProperty().
|
||||
*/
|
||||
* @covers serverConf::setHeartbeatProperty
|
||||
* @todo Implement testsetHeartbeatProperty().
|
||||
*/
|
||||
public function testsetHeartbeatProperty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setHeartbeatProperty', $methods ), 'exists method setHeartbeatProperty' );
|
||||
$this->assertTrue(in_array('setHeartbeatProperty', $methods), 'exists method setHeartbeatProperty');
|
||||
$r = new ReflectionMethod('serverConf', 'setHeartbeatProperty');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'propertyValue');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'workspace');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'propertyValue');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
$this->assertTrue($params[2]->getName() == 'workspace');
|
||||
$this->assertTrue($params[2]->isArray() == false);
|
||||
$this->assertTrue($params[2]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::unsetHeartbeatProperty
|
||||
* @todo Implement testunsetHeartbeatProperty().
|
||||
*/
|
||||
* @covers serverConf::unsetHeartbeatProperty
|
||||
* @todo Implement testunsetHeartbeatProperty().
|
||||
*/
|
||||
public function testunsetHeartbeatProperty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('unsetHeartbeatProperty', $methods ), 'exists method unsetHeartbeatProperty' );
|
||||
$this->assertTrue(in_array('unsetHeartbeatProperty', $methods), 'exists method unsetHeartbeatProperty');
|
||||
$r = new ReflectionMethod('serverConf', 'unsetHeartbeatProperty');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'workspace');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'workspace');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers serverConf::getHeartbeatProperty
|
||||
* @todo Implement testgetHeartbeatProperty().
|
||||
*/
|
||||
* @covers serverConf::getHeartbeatProperty
|
||||
* @todo Implement testgetHeartbeatProperty().
|
||||
*/
|
||||
public function testgetHeartbeatProperty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getHeartbeatProperty', $methods ), 'exists method getHeartbeatProperty' );
|
||||
$this->assertTrue(in_array('getHeartbeatProperty', $methods), 'exists method getHeartbeatProperty');
|
||||
$r = new ReflectionMethod('serverConf', 'getHeartbeatProperty');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'workspace');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue($params[0]->getName() == 'propertyName');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
$this->assertTrue($params[1]->getName() == 'workspace');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user