Merge pull request #271 from hector-cortez/master
BUG 0000 Adjustment in te class classserverConfTest
This commit is contained in:
@@ -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
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user