Merge pull request #271 from hector-cortez/master

BUG 0000 Adjustment in te class classserverConfTest
This commit is contained in:
julceslauhub
2012-07-13 13:37:47 -07:00

View File

@@ -1,4 +1,5 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.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.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.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. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:32.
*/ */
class classserverConfTest extends PHPUnit_Framework_TestCase class classserverConfTest extends PHPUnit_Framework_TestCase
{ {
/** /**
* @var serverConf * @var serverConf
*/ */
protected $object; protected $object;
/** /**
* Sets up the fixture, for example, opens a network connection. * Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed. * This method is called before a test is executed.
*/ */
protected function setUp() protected function setUp()
{ {
$this->object = new serverConf(); $this->object = new serverConf();
@@ -32,351 +33,353 @@ class classserverConfTest extends PHPUnit_Framework_TestCase
/** /**
* Tears down the fixture, for example, closes a network connection. * Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed. * This method is called after a test is executed.
*/ */
protected function tearDown() protected function tearDown()
{ {
} }
/** /**
* This is the default method to test, if the class still having * This is the default method to test, if the class still having
* the same number of methods. * the same number of methods.
*/ */
public function testNumberOfMethodsInThisClass() 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 * @covers serverConf::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', '__construct');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::getSingleton * @covers serverConf::getSingleton
* @todo Implement testgetSingleton(). * @todo Implement testgetSingleton().
*/ */
public function testgetSingleton() public function testgetSingleton()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getSingleton');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::serializeInstance * @covers serverConf::serializeInstance
* @todo Implement testserializeInstance(). * @todo Implement testserializeInstance().
*/ */
public function testserializeInstance() public function testserializeInstance()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'serializeInstance');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::unSerializeInstance * @covers serverConf::unSerializeInstance
* @todo Implement testunSerializeInstance(). * @todo Implement testunSerializeInstance().
*/ */
public function testunSerializeInstance() public function testunSerializeInstance()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'unSerializeInstance');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'serialized'); $this->assertTrue($params[0]->getName() == 'serialized');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
} }
/** /**
* @covers serverConf::saveSingleton * @covers serverConf::saveSingleton
* @todo Implement testsaveSingleton(). * @todo Implement testsaveSingleton().
*/ */
public function testsaveSingleton() public function testsaveSingleton()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'saveSingleton');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::setProperty * @covers serverConf::setProperty
* @todo Implement testsetProperty(). * @todo Implement testsetProperty().
*/ */
public function testsetProperty() public function testsetProperty()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'setProperty');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'propertyName'); $this->assertTrue($params[0]->getName() == 'propertyName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
$this->assertTrue( $params[1]->getName() == 'propertyValue'); $this->assertTrue($params[1]->getName() == 'propertyValue');
$this->assertTrue( $params[1]->isArray() == false); $this->assertTrue($params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue($params[1]->isOptional() == false);
} }
/** /**
* @covers serverConf::unsetProperty * @covers serverConf::unsetProperty
* @todo Implement testunsetProperty(). * @todo Implement testunsetProperty().
*/ */
public function testunsetProperty() public function testunsetProperty()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'unsetProperty');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'propertyName'); $this->assertTrue($params[0]->getName() == 'propertyName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
} }
/** /**
* @covers serverConf::getProperty * @covers serverConf::getProperty
* @todo Implement testgetProperty(). * @todo Implement testgetProperty().
*/ */
public function testgetProperty() public function testgetProperty()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getProperty');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'propertyName'); $this->assertTrue($params[0]->getName() == 'propertyName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
} }
/** /**
* @covers serverConf::sucessfulLogin * @covers serverConf::sucessfulLogin
* @todo Implement testsucessfulLogin(). * @todo Implement testsucessfulLogin().
*/ */
public function testsucessfulLogin() public function testsucessfulLogin()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'sucessfulLogin');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::setWsInfo * @covers serverConf::setWsInfo
* @todo Implement testsetWsInfo(). * @todo Implement testsetWsInfo().
*/ */
public function testsetWsInfo() public function testsetWsInfo()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'setWsInfo');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'wsname'); $this->assertTrue($params[0]->getName() == 'wsname');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
$this->assertTrue( $params[1]->getName() == 'info'); $this->assertTrue($params[1]->getName() == 'info');
$this->assertTrue( $params[1]->isArray() == false); $this->assertTrue($params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue($params[1]->isOptional() == false);
} }
/** /**
* @covers serverConf::changeStatusWS * @covers serverConf::changeStatusWS
* @todo Implement testchangeStatusWS(). * @todo Implement testchangeStatusWS().
*/ */
public function testchangeStatusWS() public function testchangeStatusWS()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'changeStatusWS');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'wsName'); $this->assertTrue($params[0]->getName() == 'wsName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
} }
/** /**
* @covers serverConf::isWSDisabled * @covers serverConf::isWSDisabled
* @todo Implement testisWSDisabled(). * @todo Implement testisWSDisabled().
*/ */
public function testisWSDisabled() public function testisWSDisabled()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'isWSDisabled');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'wsName'); $this->assertTrue($params[0]->getName() == 'wsName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
} }
/** /**
* @covers serverConf::checkIfHostNameHasChanged * @covers serverConf::checkIfHostNameHasChanged
* @todo Implement testcheckIfHostNameHasChanged(). * @todo Implement testcheckIfHostNameHasChanged().
*/ */
public function testcheckIfHostNameHasChanged() public function testcheckIfHostNameHasChanged()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'checkIfHostNameHasChanged');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::getWSList * @covers serverConf::getWSList
* @todo Implement testgetWSList(). * @todo Implement testgetWSList().
*/ */
public function testgetWSList() public function testgetWSList()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getWSList');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::getWorkspaceInfo * @covers serverConf::getWorkspaceInfo
* @todo Implement testgetWorkspaceInfo(). * @todo Implement testgetWorkspaceInfo().
*/ */
public function testgetWorkspaceInfo() public function testgetWorkspaceInfo()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getWorkspaceInfo');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'wsName'); $this->assertTrue($params[0]->getName() == 'wsName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
} }
/** /**
* @covers serverConf::getPluginsList * @covers serverConf::getPluginsList
* @todo Implement testgetPluginsList(). * @todo Implement testgetPluginsList().
*/ */
public function testgetPluginsList() public function testgetPluginsList()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getPluginsList');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::addPlugin * @covers serverConf::addPlugin
* @todo Implement testaddPlugin(). * @todo Implement testaddPlugin().
*/ */
public function testaddPlugin() public function testaddPlugin()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'addPlugin');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace'); $this->assertTrue($params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
$this->assertTrue( $params[1]->getName() == 'info'); $this->assertTrue($params[1]->getName() == 'info');
$this->assertTrue( $params[1]->isArray() == false); $this->assertTrue($params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue($params[1]->isOptional() == false);
} }
/** /**
* @covers serverConf::getDBVersion * @covers serverConf::getDBVersion
* @todo Implement testgetDBVersion(). * @todo Implement testgetDBVersion().
*/ */
public function testgetDBVersion() public function testgetDBVersion()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getDBVersion');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::resetLogins * @covers serverConf::resetLogins
* @todo Implement testresetLogins(). * @todo Implement testresetLogins().
*/ */
public function testresetLogins() public function testresetLogins()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'resetLogins');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::getLanDirection * @covers serverConf::getLanDirection
* @todo Implement testgetLanDirection(). * @todo Implement testgetLanDirection().
*/ */
public function testgetLanDirection() public function testgetLanDirection()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getLanDirection');
$params = $r->getParameters(); $params = $r->getParameters();
} }
/** /**
* @covers serverConf::setHeartbeatProperty * @covers serverConf::setHeartbeatProperty
* @todo Implement testsetHeartbeatProperty(). * @todo Implement testsetHeartbeatProperty().
*/ */
public function testsetHeartbeatProperty() public function testsetHeartbeatProperty()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'setHeartbeatProperty');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'propertyName'); $this->assertTrue($params[0]->getName() == 'propertyName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
$this->assertTrue( $params[1]->getName() == 'propertyValue'); $this->assertTrue($params[1]->getName() == 'propertyValue');
$this->assertTrue( $params[1]->isArray() == false); $this->assertTrue($params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue($params[1]->isOptional() == false);
$this->assertTrue( $params[2]->getName() == 'workspace'); $this->assertTrue($params[2]->getName() == 'workspace');
$this->assertTrue( $params[2]->isArray() == false); $this->assertTrue($params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false); $this->assertTrue($params[2]->isOptional() == false);
} }
/** /**
* @covers serverConf::unsetHeartbeatProperty * @covers serverConf::unsetHeartbeatProperty
* @todo Implement testunsetHeartbeatProperty(). * @todo Implement testunsetHeartbeatProperty().
*/ */
public function testunsetHeartbeatProperty() public function testunsetHeartbeatProperty()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'unsetHeartbeatProperty');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'propertyName'); $this->assertTrue($params[0]->getName() == 'propertyName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
$this->assertTrue( $params[1]->getName() == 'workspace'); $this->assertTrue($params[1]->getName() == 'workspace');
$this->assertTrue( $params[1]->isArray() == false); $this->assertTrue($params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue($params[1]->isOptional() == false);
} }
/** /**
* @covers serverConf::getHeartbeatProperty * @covers serverConf::getHeartbeatProperty
* @todo Implement testgetHeartbeatProperty(). * @todo Implement testgetHeartbeatProperty().
*/ */
public function testgetHeartbeatProperty() public function testgetHeartbeatProperty()
{ {
$methods = get_class_methods($this->object); $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'); $r = new ReflectionMethod('serverConf', 'getHeartbeatProperty');
$params = $r->getParameters(); $params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'propertyName'); $this->assertTrue($params[0]->getName() == 'propertyName');
$this->assertTrue( $params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue($params[0]->isOptional() == false);
$this->assertTrue( $params[1]->getName() == 'workspace'); $this->assertTrue($params[1]->getName() == 'workspace');
$this->assertTrue( $params[1]->isArray() == false); $this->assertTrue($params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue($params[1]->isOptional() == false);
} }
}
}