diff --git a/tests/automated/gulliver/system/classControllerTest.php b/tests/automated/gulliver/system/classControllerTest.php index 9b74b123f..353b46c4a 100644 --- a/tests/automated/gulliver/system/classControllerTest.php +++ b/tests/automated/gulliver/system/classControllerTest.php @@ -1,241 +1,384 @@ -object = new Controller(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 19); + } - class classControllerTest extends PHPUnit_Framework_TestCase - { /** * @covers Controller::__set * @todo Implement test__set(). */ - public function test__set() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' ); - } + public function test__set() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__set', $methods ), 'exists method __set' ); + $r = new ReflectionMethod('Controller', '__set'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::__get * @todo Implement test__get(). */ - public function test__get() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' ); - } + public function test__get() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__get', $methods ), 'exists method __get' ); + $r = new ReflectionMethod('Controller', '__get'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::__isset * @todo Implement test__isset(). */ - public function test__isset() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' ); - } + public function test__isset() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' ); + $r = new ReflectionMethod('Controller', '__isset'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::__unset * @todo Implement test__unset(). */ - public function test__unset() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' ); - } + public function test__unset() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' ); + $r = new ReflectionMethod('Controller', '__unset'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::setResponseType * @todo Implement testsetResponseType(). */ - public function testsetResponseType() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'setResponseType', $methods ), 'seems like this function is outside this class' ); - } + public function testsetResponseType() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setResponseType', $methods ), 'exists method setResponseType' ); + $r = new ReflectionMethod('Controller', 'setResponseType'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::call * @todo Implement testcall(). */ - public function testcall() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' ); - } + public function testcall() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('call', $methods ), 'exists method call' ); + $r = new ReflectionMethod('Controller', 'call'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::setHttpRequestData * @todo Implement testsetHttpRequestData(). */ - public function testsetHttpRequestData() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' ); - } + public function testsetHttpRequestData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' ); + $r = new ReflectionMethod('Controller', 'setHttpRequestData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'data'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::setDebug * @todo Implement testsetDebug(). */ - public function testsetDebug() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'setDebug', $methods ), 'seems like this function is outside this class' ); - } + public function testsetDebug() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setDebug', $methods ), 'exists method setDebug' ); + $r = new ReflectionMethod('Controller', 'setDebug'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'val'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::getDebug * @todo Implement testgetDebug(). */ - public function testgetDebug() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'getDebug', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDebug() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDebug', $methods ), 'exists method getDebug' ); + $r = new ReflectionMethod('Controller', 'getDebug'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::includeExtJSLib * @todo Implement testincludeExtJSLib(). */ - public function testincludeExtJSLib() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'includeExtJSLib', $methods ), 'seems like this function is outside this class' ); - } + public function testincludeExtJSLib() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('includeExtJSLib', $methods ), 'exists method includeExtJSLib' ); + $r = new ReflectionMethod('Controller', 'includeExtJSLib'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'srcFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'debug'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::includeExtJS * @todo Implement testincludeExtJS(). */ - public function testincludeExtJS() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'includeExtJS', $methods ), 'seems like this function is outside this class' ); - } + public function testincludeExtJS() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('includeExtJS', $methods ), 'exists method includeExtJS' ); + $r = new ReflectionMethod('Controller', 'includeExtJS'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'srcFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'debug'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::setView * @todo Implement testsetView(). */ - public function testsetView() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'setView', $methods ), 'seems like this function is outside this class' ); - } + public function testsetView() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setView', $methods ), 'exists method setView' ); + $r = new ReflectionMethod('Controller', 'setView'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::setJSVar * @todo Implement testsetJSVar(). */ - public function testsetJSVar() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'setJSVar', $methods ), 'seems like this function is outside this class' ); - } + public function testsetJSVar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setJSVar', $methods ), 'exists method setJSVar' ); + $r = new ReflectionMethod('Controller', 'setJSVar'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::setVar * @todo Implement testsetVar(). */ - public function testsetVar() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'setVar', $methods ), 'seems like this function is outside this class' ); - } + public function testsetVar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setVar', $methods ), 'exists method setVar' ); + $r = new ReflectionMethod('Controller', 'setVar'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::getHeadPublisher * @todo Implement testgetHeadPublisher(). */ - public function testgetHeadPublisher() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'getHeadPublisher', $methods ), 'seems like this function is outside this class' ); - } + public function testgetHeadPublisher() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getHeadPublisher', $methods ), 'exists method getHeadPublisher' ); + $r = new ReflectionMethod('Controller', 'getHeadPublisher'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::setLayout * @todo Implement testsetLayout(). */ - public function testsetLayout() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'setLayout', $methods ), 'seems like this function is outside this class' ); - } + public function testsetLayout() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setLayout', $methods ), 'exists method setLayout' ); + $r = new ReflectionMethod('Controller', 'setLayout'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'layout'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('Controller', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'mvc'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::header * @todo Implement testheader(). */ - public function testheader() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'header', $methods ), 'seems like this function is outside this class' ); - } + public function testheader() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('header', $methods ), 'exists method header' ); + $r = new ReflectionMethod('Controller', 'header'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'header'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Controller::redirect * @todo Implement testredirect(). */ - public function testredirect() - { - if (class_exists('Controller')) { - $methods = get_class_methods( 'Controller'); - $this->assertTrue( in_array( 'redirect', $methods ), 'seems like this function is outside this class' ); - } + public function testredirect() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('redirect', $methods ), 'exists method redirect' ); + $r = new ReflectionMethod('Controller', 'redirect'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classDBConnectionTest.php b/tests/automated/gulliver/system/classDBConnectionTest.php deleted file mode 100644 index 4f0011558..000000000 --- a/tests/automated/gulliver/system/classDBConnectionTest.php +++ /dev/null @@ -1,109 +0,0 @@ -assertTrue( in_array( 'DBConnection', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBConnection::Reset - * @todo Implement testReset(). - */ - public function testReset() - { - if (class_exists('DBConnection')) { - $methods = get_class_methods( 'DBConnection'); - $this->assertTrue( in_array( 'Reset', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBConnection::Free - * @todo Implement testFree(). - */ - public function testFree() - { - if (class_exists('DBConnection')) { - $methods = get_class_methods( 'DBConnection'); - $this->assertTrue( in_array( 'Free', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBConnection::Close - * @todo Implement testClose(). - */ - public function testClose() - { - if (class_exists('DBConnection')) { - $methods = get_class_methods( 'DBConnection'); - $this->assertTrue( in_array( 'Close', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBConnection::logError - * @todo Implement testlogError(). - */ - public function testlogError() - { - if (class_exists('DBConnection')) { - $methods = get_class_methods( 'DBConnection'); - $this->assertTrue( in_array( 'logError', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBConnection::traceError - * @todo Implement testtraceError(). - */ - public function testtraceError() - { - if (class_exists('DBConnection')) { - $methods = get_class_methods( 'DBConnection'); - $this->assertTrue( in_array( 'traceError', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBConnection::printArgs - * @todo Implement testprintArgs(). - */ - public function testprintArgs() - { - if (class_exists('DBConnection')) { - $methods = get_class_methods( 'DBConnection'); - $this->assertTrue( in_array( 'printArgs', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBConnection::GetLastID - * @todo Implement testGetLastID(). - */ - public function testGetLastID() - { - if (class_exists('DBConnection')) { - $methods = get_class_methods( 'DBConnection'); - $this->assertTrue( in_array( 'GetLastID', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classDBRecordSetTest.php b/tests/automated/gulliver/system/classDBRecordSetTest.php deleted file mode 100644 index 0bc964302..000000000 --- a/tests/automated/gulliver/system/classDBRecordSetTest.php +++ /dev/null @@ -1,85 +0,0 @@ -assertTrue( in_array( 'DBRecordSet', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBRecordSet::SetTo - * @todo Implement testSetTo(). - */ - public function testSetTo() - { - if (class_exists('DBRecordSet')) { - $methods = get_class_methods( 'DBRecordSet'); - $this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBRecordSet::Free - * @todo Implement testFree(). - */ - public function testFree() - { - if (class_exists('DBRecordSet')) { - $methods = get_class_methods( 'DBRecordSet'); - $this->assertTrue( in_array( 'Free', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBRecordSet::Count - * @todo Implement testCount(). - */ - public function testCount() - { - if (class_exists('DBRecordSet')) { - $methods = get_class_methods( 'DBRecordSet'); - $this->assertTrue( in_array( 'Count', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBRecordSet::Read - * @todo Implement testRead(). - */ - public function testRead() - { - if (class_exists('DBRecordSet')) { - $methods = get_class_methods( 'DBRecordSet'); - $this->assertTrue( in_array( 'Read', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBRecordSet::ReadAbsolute - * @todo Implement testReadAbsolute(). - */ - public function testReadAbsolute() - { - if (class_exists('DBRecordSet')) { - $methods = get_class_methods( 'DBRecordSet'); - $this->assertTrue( in_array( 'ReadAbsolute', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classDBSessionTest.php b/tests/automated/gulliver/system/classDBSessionTest.php deleted file mode 100644 index a2e38f866..000000000 --- a/tests/automated/gulliver/system/classDBSessionTest.php +++ /dev/null @@ -1,73 +0,0 @@ -assertTrue( in_array( 'DBSession', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBSession::setTo - * @todo Implement testsetTo(). - */ - public function testsetTo() - { - if (class_exists('DBSession')) { - $methods = get_class_methods( 'DBSession'); - $this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBSession::UseDB - * @todo Implement testUseDB(). - */ - public function testUseDB() - { - if (class_exists('DBSession')) { - $methods = get_class_methods( 'DBSession'); - $this->assertTrue( in_array( 'UseDB', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBSession::Execute - * @todo Implement testExecute(). - */ - public function testExecute() - { - if (class_exists('DBSession')) { - $methods = get_class_methods( 'DBSession'); - $this->assertTrue( in_array( 'Execute', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers DBSession::Free - * @todo Implement testFree(). - */ - public function testFree() - { - if (class_exists('DBSession')) { - $methods = get_class_methods( 'DBSession'); - $this->assertTrue( in_array( 'Free', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classDBTableTest.php b/tests/automated/gulliver/system/classDBTableTest.php index 667bf12b6..45fd8beb9 100644 --- a/tests/automated/gulliver/system/classDBTableTest.php +++ b/tests/automated/gulliver/system/classDBTableTest.php @@ -1,145 +1,232 @@ -object = new DBTable(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 11); + } - class classDBTableTest extends PHPUnit_Framework_TestCase - { /** * @covers DBTable::dBTable * @todo Implement testdBTable(). */ - public function testdBTable() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'dBTable', $methods ), 'seems like this function is outside this class' ); - } + public function testdBTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dBTable', $methods ), 'exists method dBTable' ); + $r = new ReflectionMethod('DBTable', 'dBTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'objConnection'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'strTable'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'arrKeys'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::setTo * @todo Implement testsetTo(). */ - public function testsetTo() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' ); - } + public function testsetTo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setTo', $methods ), 'exists method setTo' ); + $r = new ReflectionMethod('DBTable', 'setTo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'objDBConnection'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strTable'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'arrKeys'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::loadEmpty * @todo Implement testloadEmpty(). */ - public function testloadEmpty() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'loadEmpty', $methods ), 'seems like this function is outside this class' ); - } + public function testloadEmpty() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadEmpty', $methods ), 'exists method loadEmpty' ); + $r = new ReflectionMethod('DBTable', 'loadEmpty'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::loadWhere * @todo Implement testloadWhere(). */ - public function testloadWhere() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'loadWhere', $methods ), 'seems like this function is outside this class' ); - } + public function testloadWhere() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadWhere', $methods ), 'exists method loadWhere' ); + $r = new ReflectionMethod('DBTable', 'loadWhere'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strWhere'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('DBTable', 'load'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::nextvalPGSql * @todo Implement testnextvalPGSql(). */ - public function testnextvalPGSql() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'nextvalPGSql', $methods ), 'seems like this function is outside this class' ); - } + public function testnextvalPGSql() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('nextvalPGSql', $methods ), 'exists method nextvalPGSql' ); + $r = new ReflectionMethod('DBTable', 'nextvalPGSql'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'seq'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::insert * @todo Implement testinsert(). */ - public function testinsert() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'insert', $methods ), 'seems like this function is outside this class' ); - } + public function testinsert() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('insert', $methods ), 'exists method insert' ); + $r = new ReflectionMethod('DBTable', 'insert'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::update * @todo Implement testupdate(). */ - public function testupdate() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'update', $methods ), 'seems like this function is outside this class' ); - } + public function testupdate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('update', $methods ), 'exists method update' ); + $r = new ReflectionMethod('DBTable', 'update'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::save * @todo Implement testsave(). */ - public function testsave() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); - } + public function testsave() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('save', $methods ), 'exists method save' ); + $r = new ReflectionMethod('DBTable', 'save'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::delete * @todo Implement testdelete(). */ - public function testdelete() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' ); - } + public function testdelete() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('delete', $methods ), 'exists method delete' ); + $r = new ReflectionMethod('DBTable', 'delete'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DBTable::next * @todo Implement testnext(). */ - public function testnext() - { - if (class_exists('DBTable')) { - $methods = get_class_methods( 'DBTable'); - $this->assertTrue( in_array( 'next', $methods ), 'seems like this function is outside this class' ); - } + public function testnext() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('next', $methods ), 'exists method next' ); + $r = new ReflectionMethod('DBTable', 'next'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classDataBaseMaintenanceTest.php b/tests/automated/gulliver/system/classDataBaseMaintenanceTest.php index 0d48361eb..2c80c9477 100644 --- a/tests/automated/gulliver/system/classDataBaseMaintenanceTest.php +++ b/tests/automated/gulliver/system/classDataBaseMaintenanceTest.php @@ -1,337 +1,503 @@ -object = new DataBaseMaintenance(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 27); + } - class classDataBaseMaintenanceTest extends PHPUnit_Framework_TestCase - { /** * @covers DataBaseMaintenance::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('DataBaseMaintenance', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'host'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'user'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'passwd'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::setUser * @todo Implement testsetUser(). */ - public function testsetUser() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'setUser', $methods ), 'seems like this function is outside this class' ); - } + public function testsetUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setUser', $methods ), 'exists method setUser' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'setUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'user'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::setPasswd * @todo Implement testsetPasswd(). */ - public function testsetPasswd() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'setPasswd', $methods ), 'seems like this function is outside this class' ); - } + public function testsetPasswd() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setPasswd', $methods ), 'exists method setPasswd' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'setPasswd'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'passwd'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::setHost * @todo Implement testsetHost(). */ - public function testsetHost() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'setHost', $methods ), 'seems like this function is outside this class' ); - } + public function testsetHost() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setHost', $methods ), 'exists method setHost' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'setHost'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'host'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::setTempDir * @todo Implement testsetTempDir(). */ - public function testsetTempDir() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'setTempDir', $methods ), 'seems like this function is outside this class' ); - } + public function testsetTempDir() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setTempDir', $methods ), 'exists method setTempDir' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'setTempDir'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tmpDir'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::getTempDir * @todo Implement testgetTempDir(). */ - public function testgetTempDir() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'getTempDir', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTempDir() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTempDir', $methods ), 'exists method getTempDir' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'getTempDir'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::status * @todo Implement teststatus(). */ - public function teststatus() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'status', $methods ), 'seems like this function is outside this class' ); - } + public function teststatus() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('status', $methods ), 'exists method status' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'status'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::connect * @todo Implement testconnect(). */ - public function testconnect() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'connect', $methods ), 'seems like this function is outside this class' ); - } + public function testconnect() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('connect', $methods ), 'exists method connect' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'connect'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::setDbName * @todo Implement testsetDbName(). */ - public function testsetDbName() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'setDbName', $methods ), 'seems like this function is outside this class' ); - } + public function testsetDbName() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setDbName', $methods ), 'exists method setDbName' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'setDbName'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::selectDataBase * @todo Implement testselectDataBase(). */ - public function testselectDataBase() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'selectDataBase', $methods ), 'seems like this function is outside this class' ); - } + public function testselectDataBase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('selectDataBase', $methods ), 'exists method selectDataBase' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'selectDataBase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::query * @todo Implement testquery(). */ - public function testquery() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'query', $methods ), 'seems like this function is outside this class' ); - } + public function testquery() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('query', $methods ), 'exists method query' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'query'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sql'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::error * @todo Implement testerror(). */ - public function testerror() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' ); - } + public function testerror() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('error', $methods ), 'exists method error' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'error'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::getTablesList * @todo Implement testgetTablesList(). */ - public function testgetTablesList() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'getTablesList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTablesList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTablesList', $methods ), 'exists method getTablesList' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'getTablesList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::dumpData * @todo Implement testdumpData(). */ - public function testdumpData() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'dumpData', $methods ), 'seems like this function is outside this class' ); - } + public function testdumpData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dumpData', $methods ), 'exists method dumpData' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'dumpData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'table'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::restoreData * @todo Implement testrestoreData(). */ - public function testrestoreData() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'restoreData', $methods ), 'seems like this function is outside this class' ); - } + public function testrestoreData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('restoreData', $methods ), 'exists method restoreData' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'restoreData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'backupFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::backupData * @todo Implement testbackupData(). */ - public function testbackupData() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'backupData', $methods ), 'seems like this function is outside this class' ); - } + public function testbackupData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('backupData', $methods ), 'exists method backupData' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'backupData'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::backupSqlData * @todo Implement testbackupSqlData(). */ - public function testbackupSqlData() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'backupSqlData', $methods ), 'seems like this function is outside this class' ); - } + public function testbackupSqlData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('backupSqlData', $methods ), 'exists method backupSqlData' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'backupSqlData'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::restoreAllData * @todo Implement testrestoreAllData(). */ - public function testrestoreAllData() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'restoreAllData', $methods ), 'seems like this function is outside this class' ); - } + public function testrestoreAllData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('restoreAllData', $methods ), 'exists method restoreAllData' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'restoreAllData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::createDb * @todo Implement testcreateDb(). */ - public function testcreateDb() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'createDb', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateDb() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createDb', $methods ), 'exists method createDb' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'createDb'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'drop'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::restoreFromSql2 * @todo Implement testrestoreFromSql2(). */ - public function testrestoreFromSql2() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'restoreFromSql2', $methods ), 'seems like this function is outside this class' ); - } + public function testrestoreFromSql2() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('restoreFromSql2', $methods ), 'exists method restoreFromSql2' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'restoreFromSql2'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sqlfile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::lockTables * @todo Implement testlockTables(). */ - public function testlockTables() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'lockTables', $methods ), 'seems like this function is outside this class' ); - } + public function testlockTables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('lockTables', $methods ), 'exists method lockTables' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'lockTables'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::unlockTables * @todo Implement testunlockTables(). */ - public function testunlockTables() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'unlockTables', $methods ), 'seems like this function is outside this class' ); - } + public function testunlockTables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unlockTables', $methods ), 'exists method unlockTables' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'unlockTables'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::dumpSqlInserts * @todo Implement testdumpSqlInserts(). */ - public function testdumpSqlInserts() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'dumpSqlInserts', $methods ), 'seems like this function is outside this class' ); - } + public function testdumpSqlInserts() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dumpSqlInserts', $methods ), 'exists method dumpSqlInserts' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'dumpSqlInserts'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'table'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::backupDataBase * @todo Implement testbackupDataBase(). */ - public function testbackupDataBase() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'backupDataBase', $methods ), 'seems like this function is outside this class' ); - } + public function testbackupDataBase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('backupDataBase', $methods ), 'exists method backupDataBase' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'backupDataBase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'outfile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::restoreFromSql * @todo Implement testrestoreFromSql(). */ - public function testrestoreFromSql() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'restoreFromSql', $methods ), 'seems like this function is outside this class' ); - } + public function testrestoreFromSql() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('restoreFromSql', $methods ), 'exists method restoreFromSql' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'restoreFromSql'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sqlfile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'file'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::getSchemaFromTable * @todo Implement testgetSchemaFromTable(). */ - public function testgetSchemaFromTable() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'getSchemaFromTable', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSchemaFromTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSchemaFromTable', $methods ), 'exists method getSchemaFromTable' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'getSchemaFromTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tablename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DataBaseMaintenance::removeCommentsIntoString * @todo Implement testremoveCommentsIntoString(). */ - public function testremoveCommentsIntoString() - { - if (class_exists('DataBaseMaintenance')) { - $methods = get_class_methods( 'DataBaseMaintenance'); - $this->assertTrue( in_array( 'removeCommentsIntoString', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveCommentsIntoString() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeCommentsIntoString', $methods ), 'exists method removeCommentsIntoString' ); + $r = new ReflectionMethod('DataBaseMaintenance', 'removeCommentsIntoString'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classFormTest.php b/tests/automated/gulliver/system/classFormTest.php index 79d56f9be..09db0d87f 100644 --- a/tests/automated/gulliver/system/classFormTest.php +++ b/tests/automated/gulliver/system/classFormTest.php @@ -1,145 +1,262 @@ -object = new Form(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 13); + } - class classFormTest extends PHPUnit_Framework_TestCase - { /** * @covers Form::setDefaultValues * @todo Implement testsetDefaultValues(). */ - public function testsetDefaultValues() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'setDefaultValues', $methods ), 'seems like this function is outside this class' ); - } + public function testsetDefaultValues() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setDefaultValues', $methods ), 'exists method setDefaultValues' ); + $r = new ReflectionMethod('Form', 'setDefaultValues'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::Form * @todo Implement testForm(). */ - public function testForm() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'Form', $methods ), 'seems like this function is outside this class' ); - } + public function testForm() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Form', $methods ), 'exists method Form' ); + $r = new ReflectionMethod('Form', 'Form'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'home'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'language'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'forceParse'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'visual_frontend'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::printTemplate * @todo Implement testprintTemplate(). */ - public function testprintTemplate() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testprintTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' ); + $r = new ReflectionMethod('Form', 'printTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'template'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'scriptContent'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('Form', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'template'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'scriptContent'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::setValues * @todo Implement testsetValues(). */ - public function testsetValues() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' ); - } + public function testsetValues() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' ); + $r = new ReflectionMethod('Form', 'setValues'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'newValues'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::getFields * @todo Implement testgetFields(). */ - public function testgetFields() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' ); + $r = new ReflectionMethod('Form', 'getFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'template'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'therow'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::validatePost * @todo Implement testvalidatePost(). */ - public function testvalidatePost() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'validatePost', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidatePost() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validatePost', $methods ), 'exists method validatePost' ); + $r = new ReflectionMethod('Form', 'validatePost'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::validateArray * @todo Implement testvalidateArray(). */ - public function testvalidateArray() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'validateArray', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateArray', $methods ), 'exists method validateArray' ); + $r = new ReflectionMethod('Form', 'validateArray'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'newValues'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::getVars * @todo Implement testgetVars(). */ - public function testgetVars() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' ); - } + public function testgetVars() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' ); + $r = new ReflectionMethod('Form', 'getVars'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'bWhitSystemVars'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::validateRequiredFields * @todo Implement testvalidateRequiredFields(). */ - public function testvalidateRequiredFields() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'validateRequiredFields', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateRequiredFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateRequiredFields', $methods ), 'exists method validateRequiredFields' ); + $r = new ReflectionMethod('Form', 'validateRequiredFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dataFields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'noRequired'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Form::validateFields * @todo Implement testvalidateFields(). */ - public function testvalidateFields() - { - if (class_exists('Form')) { - $methods = get_class_methods( 'Form'); - $this->assertTrue( in_array( 'validateFields', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateFields', $methods ), 'exists method validateFields' ); + $r = new ReflectionMethod('Form', 'validateFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'data'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classGTest.php b/tests/automated/gulliver/system/classGTest.php index 071fc73a6..c7b0be168 100644 --- a/tests/automated/gulliver/system/classGTest.php +++ b/tests/automated/gulliver/system/classGTest.php @@ -1,1669 +1,2684 @@ -object = new G(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 134); + } - class classGTest extends PHPUnit_Framework_TestCase - { /** * @covers G::is_https * @todo Implement testis_https(). */ - public function testis_https() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'is_https', $methods ), 'seems like this function is outside this class' ); - } + public function testis_https() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('is_https', $methods ), 'exists method is_https' ); + $r = new ReflectionMethod('G', 'is_https'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::array_fill_value * @todo Implement testarray_fill_value(). */ - public function testarray_fill_value() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'array_fill_value', $methods ), 'seems like this function is outside this class' ); - } + public function testarray_fill_value() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('array_fill_value', $methods ), 'exists method array_fill_value' ); + $r = new ReflectionMethod('G', 'array_fill_value'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'arr'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'recursive'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::generate_password * @todo Implement testgenerate_password(). */ - public function testgenerate_password() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'generate_password', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerate_password() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generate_password', $methods ), 'exists method generate_password' ); + $r = new ReflectionMethod('G', 'generate_password'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'length'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '8'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::array_concat * @todo Implement testarray_concat(). */ - public function testarray_concat() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'array_concat', $methods ), 'seems like this function is outside this class' ); - } + public function testarray_concat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('array_concat', $methods ), 'exists method array_concat' ); + $r = new ReflectionMethod('G', 'array_concat'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::var_compare * @todo Implement testvar_compare(). */ - public function testvar_compare() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'var_compare', $methods ), 'seems like this function is outside this class' ); - } + public function testvar_compare() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('var_compare', $methods ), 'exists method var_compare' ); + $r = new ReflectionMethod('G', 'var_compare'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'varN'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::var_probe * @todo Implement testvar_probe(). */ - public function testvar_probe() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'var_probe', $methods ), 'seems like this function is outside this class' ); - } + public function testvar_probe() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('var_probe', $methods ), 'exists method var_probe' ); + $r = new ReflectionMethod('G', 'var_probe'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getVersion * @todo Implement testgetVersion(). */ - public function testgetVersion() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getVersion', $methods ), 'seems like this function is outside this class' ); - } + public function testgetVersion() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getVersion', $methods ), 'exists method getVersion' ); + $r = new ReflectionMethod('G', 'getVersion'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getIpAddress * @todo Implement testgetIpAddress(). */ - public function testgetIpAddress() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getIpAddress', $methods ), 'seems like this function is outside this class' ); - } + public function testgetIpAddress() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getIpAddress', $methods ), 'exists method getIpAddress' ); + $r = new ReflectionMethod('G', 'getIpAddress'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getMacAddress * @todo Implement testgetMacAddress(). */ - public function testgetMacAddress() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getMacAddress', $methods ), 'seems like this function is outside this class' ); - } + public function testgetMacAddress() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getMacAddress', $methods ), 'exists method getMacAddress' ); + $r = new ReflectionMethod('G', 'getMacAddress'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::microtime_float * @todo Implement testmicrotime_float(). */ - public function testmicrotime_float() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'microtime_float', $methods ), 'seems like this function is outside this class' ); - } + public function testmicrotime_float() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('microtime_float', $methods ), 'exists method microtime_float' ); + $r = new ReflectionMethod('G', 'microtime_float'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::setFatalErrorHandler * @todo Implement testsetFatalErrorHandler(). */ - public function testsetFatalErrorHandler() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'setFatalErrorHandler', $methods ), 'seems like this function is outside this class' ); - } + public function testsetFatalErrorHandler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setFatalErrorHandler', $methods ), 'exists method setFatalErrorHandler' ); + $r = new ReflectionMethod('G', 'setFatalErrorHandler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'newFatalErrorHandler'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::setErrorHandler * @todo Implement testsetErrorHandler(). */ - public function testsetErrorHandler() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'setErrorHandler', $methods ), 'seems like this function is outside this class' ); - } + public function testsetErrorHandler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setErrorHandler', $methods ), 'exists method setErrorHandler' ); + $r = new ReflectionMethod('G', 'setErrorHandler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'newCustomErrorHandler'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::fatalErrorHandler * @todo Implement testfatalErrorHandler(). */ - public function testfatalErrorHandler() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'fatalErrorHandler', $methods ), 'seems like this function is outside this class' ); - } + public function testfatalErrorHandler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('fatalErrorHandler', $methods ), 'exists method fatalErrorHandler' ); + $r = new ReflectionMethod('G', 'fatalErrorHandler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'buffer'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::customErrorHandler * @todo Implement testcustomErrorHandler(). */ - public function testcustomErrorHandler() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'customErrorHandler', $methods ), 'seems like this function is outside this class' ); - } + public function testcustomErrorHandler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('customErrorHandler', $methods ), 'exists method customErrorHandler' ); + $r = new ReflectionMethod('G', 'customErrorHandler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'errno'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'msg'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'file'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'line'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'context'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::showErrorSource * @todo Implement testshowErrorSource(). */ - public function testshowErrorSource() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'showErrorSource', $methods ), 'seems like this function is outside this class' ); - } + public function testshowErrorSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('showErrorSource', $methods ), 'exists method showErrorSource' ); + $r = new ReflectionMethod('G', 'showErrorSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'msg'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'file'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'line'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::customErrorLog * @todo Implement testcustomErrorLog(). */ - public function testcustomErrorLog() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'customErrorLog', $methods ), 'seems like this function is outside this class' ); - } + public function testcustomErrorLog() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('customErrorLog', $methods ), 'exists method customErrorLog' ); + $r = new ReflectionMethod('G', 'customErrorLog'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'msg'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'file'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'line'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::verboseError * @todo Implement testverboseError(). */ - public function testverboseError() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'verboseError', $methods ), 'seems like this function is outside this class' ); - } + public function testverboseError() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verboseError', $methods ), 'exists method verboseError' ); + $r = new ReflectionMethod('G', 'verboseError'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'errno'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'msg'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'file'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'line'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'context'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::encrypt * @todo Implement testencrypt(). */ - public function testencrypt() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'encrypt', $methods ), 'seems like this function is outside this class' ); - } + public function testencrypt() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('encrypt', $methods ), 'exists method encrypt' ); + $r = new ReflectionMethod('G', 'encrypt'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'key'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::decrypt * @todo Implement testdecrypt(). */ - public function testdecrypt() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'decrypt', $methods ), 'seems like this function is outside this class' ); - } + public function testdecrypt() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('decrypt', $methods ), 'exists method decrypt' ); + $r = new ReflectionMethod('G', 'decrypt'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'key'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::lookup * @todo Implement testlookup(). */ - public function testlookup() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'lookup', $methods ), 'seems like this function is outside this class' ); - } + public function testlookup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('lookup', $methods ), 'exists method lookup' ); + $r = new ReflectionMethod('G', 'lookup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'target'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::mk_dir * @todo Implement testmk_dir(). */ - public function testmk_dir() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'mk_dir', $methods ), 'seems like this function is outside this class' ); - } + public function testmk_dir() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('mk_dir', $methods ), 'exists method mk_dir' ); + $r = new ReflectionMethod('G', 'mk_dir'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strPath'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'rights'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '511'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::rm_dir * @todo Implement testrm_dir(). */ - public function testrm_dir() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'rm_dir', $methods ), 'seems like this function is outside this class' ); - } + public function testrm_dir() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('rm_dir', $methods ), 'exists method rm_dir' ); + $r = new ReflectionMethod('G', 'rm_dir'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dirName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::verifyPath * @todo Implement testverifyPath(). */ - public function testverifyPath() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'verifyPath', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyPath() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyPath', $methods ), 'exists method verifyPath' ); + $r = new ReflectionMethod('G', 'verifyPath'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strPath'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'createPath'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::expandPath * @todo Implement testexpandPath(). */ - public function testexpandPath() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'expandPath', $methods ), 'seems like this function is outside this class' ); - } + public function testexpandPath() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('expandPath', $methods ), 'exists method expandPath' ); + $r = new ReflectionMethod('G', 'expandPath'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strPath'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadSystem * @todo Implement testLoadSystem(). */ - public function testLoadSystem() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadSystem', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadSystem() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadSystem', $methods ), 'exists method LoadSystem' ); + $r = new ReflectionMethod('G', 'LoadSystem'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strClass'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadSystemExist * @todo Implement testLoadSystemExist(). */ - public function testLoadSystemExist() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadSystemExist', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadSystemExist() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadSystemExist', $methods ), 'exists method LoadSystemExist' ); + $r = new ReflectionMethod('G', 'LoadSystemExist'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strClass'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::RenderPage * @todo Implement testRenderPage(). */ - public function testRenderPage() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'RenderPage', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderPage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderPage', $methods ), 'exists method RenderPage' ); + $r = new ReflectionMethod('G', 'RenderPage'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strTemplate'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'default'); + $this->assertTrue( $params[1]->getName() == 'strSkin'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'classic'); + $this->assertTrue( $params[2]->getName() == 'objContent'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'layout'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadSkin * @todo Implement testLoadSkin(). */ - public function testLoadSkin() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadSkin', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadSkin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadSkin', $methods ), 'exists method LoadSkin' ); + $r = new ReflectionMethod('G', 'LoadSkin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strSkinName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadInclude * @todo Implement testLoadInclude(). */ - public function testLoadInclude() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadInclude', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadInclude() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadInclude', $methods ), 'exists method LoadInclude' ); + $r = new ReflectionMethod('G', 'LoadInclude'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strInclude'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadAllModelClasses * @todo Implement testLoadAllModelClasses(). */ - public function testLoadAllModelClasses() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadAllModelClasses', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadAllModelClasses() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadAllModelClasses', $methods ), 'exists method LoadAllModelClasses' ); + $r = new ReflectionMethod('G', 'LoadAllModelClasses'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadAllPluginModelClasses * @todo Implement testLoadAllPluginModelClasses(). */ - public function testLoadAllPluginModelClasses() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadAllPluginModelClasses', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadAllPluginModelClasses() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadAllPluginModelClasses', $methods ), 'exists method LoadAllPluginModelClasses' ); + $r = new ReflectionMethod('G', 'LoadAllPluginModelClasses'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadTemplate * @todo Implement testLoadTemplate(). */ - public function testLoadTemplate() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadTemplate', $methods ), 'exists method LoadTemplate' ); + $r = new ReflectionMethod('G', 'LoadTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strTemplateName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadClassRBAC * @todo Implement testLoadClassRBAC(). */ - public function testLoadClassRBAC() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadClassRBAC', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadClassRBAC() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadClassRBAC', $methods ), 'exists method LoadClassRBAC' ); + $r = new ReflectionMethod('G', 'LoadClassRBAC'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strClass'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadClass * @todo Implement testLoadClass(). */ - public function testLoadClass() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadClass', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadClass() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadClass', $methods ), 'exists method LoadClass' ); + $r = new ReflectionMethod('G', 'LoadClass'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strClass'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadThirdParty * @todo Implement testLoadThirdParty(). */ - public function testLoadThirdParty() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadThirdParty', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadThirdParty() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadThirdParty', $methods ), 'exists method LoadThirdParty' ); + $r = new ReflectionMethod('G', 'LoadThirdParty'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sPath'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sFile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::encryptlink * @todo Implement testencryptlink(). */ - public function testencryptlink() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'encryptlink', $methods ), 'seems like this function is outside this class' ); - } + public function testencryptlink() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('encryptlink', $methods ), 'exists method encryptlink' ); + $r = new ReflectionMethod('G', 'encryptlink'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::parseURI * @todo Implement testparseURI(). */ - public function testparseURI() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'parseURI', $methods ), 'seems like this function is outside this class' ); - } + public function testparseURI() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parseURI', $methods ), 'exists method parseURI' ); + $r = new ReflectionMethod('G', 'parseURI'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'uri'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'config'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::strip_slashes * @todo Implement teststrip_slashes(). */ - public function teststrip_slashes() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'strip_slashes', $methods ), 'seems like this function is outside this class' ); - } + public function teststrip_slashes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('strip_slashes', $methods ), 'exists method strip_slashes' ); + $r = new ReflectionMethod('G', 'strip_slashes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'vVar'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::logTimeByPage * @todo Implement testlogTimeByPage(). */ - public function testlogTimeByPage() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'logTimeByPage', $methods ), 'seems like this function is outside this class' ); - } + public function testlogTimeByPage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('logTimeByPage', $methods ), 'exists method logTimeByPage' ); + $r = new ReflectionMethod('G', 'logTimeByPage'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::streamCSSBigFile * @todo Implement teststreamCSSBigFile(). */ - public function teststreamCSSBigFile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'streamCSSBigFile', $methods ), 'seems like this function is outside this class' ); - } + public function teststreamCSSBigFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('streamCSSBigFile', $methods ), 'exists method streamCSSBigFile' ); + $r = new ReflectionMethod('G', 'streamCSSBigFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::streamJSTranslationFile * @todo Implement teststreamJSTranslationFile(). */ - public function teststreamJSTranslationFile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'streamJSTranslationFile', $methods ), 'seems like this function is outside this class' ); - } + public function teststreamJSTranslationFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('streamJSTranslationFile', $methods ), 'exists method streamJSTranslationFile' ); + $r = new ReflectionMethod('G', 'streamJSTranslationFile'); + $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() == 'locale'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'en'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::streamFile * @todo Implement teststreamFile(). */ - public function teststreamFile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'streamFile', $methods ), 'seems like this function is outside this class' ); - } + public function teststreamFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('streamFile', $methods ), 'exists method streamFile' ); + $r = new ReflectionMethod('G', 'streamFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'download'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'downloadFileName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::trimSourceCodeFile * @todo Implement testtrimSourceCodeFile(). */ - public function testtrimSourceCodeFile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'trimSourceCodeFile', $methods ), 'seems like this function is outside this class' ); - } + public function testtrimSourceCodeFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('trimSourceCodeFile', $methods ), 'exists method trimSourceCodeFile' ); + $r = new ReflectionMethod('G', 'trimSourceCodeFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::sendHeaders * @todo Implement testsendHeaders(). */ - public function testsendHeaders() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'sendHeaders', $methods ), 'seems like this function is outside this class' ); - } + public function testsendHeaders() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendHeaders', $methods ), 'exists method sendHeaders' ); + $r = new ReflectionMethod('G', 'sendHeaders'); + $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() == 'contentType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'download'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'downloadFileName'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::virtualURI * @todo Implement testvirtualURI(). */ - public function testvirtualURI() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'virtualURI', $methods ), 'seems like this function is outside this class' ); - } + public function testvirtualURI() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('virtualURI', $methods ), 'exists method virtualURI' ); + $r = new ReflectionMethod('G', 'virtualURI'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'convertionTable'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'realPath'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::createUID * @todo Implement testcreateUID(). */ - public function testcreateUID() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'createUID', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createUID', $methods ), 'exists method createUID' ); + $r = new ReflectionMethod('G', 'createUID'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'scope'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'id'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getUIDName * @todo Implement testgetUIDName(). */ - public function testgetUIDName() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getUIDName', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUIDName() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUIDName', $methods ), 'exists method getUIDName' ); + $r = new ReflectionMethod('G', 'getUIDName'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'uid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'scope'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::formatNumber * @todo Implement testformatNumber(). */ - public function testformatNumber() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'formatNumber', $methods ), 'seems like this function is outside this class' ); - } + public function testformatNumber() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('formatNumber', $methods ), 'exists method formatNumber' ); + $r = new ReflectionMethod('G', 'formatNumber'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'num'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'language'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'latin'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::formatDate * @todo Implement testformatDate(). */ - public function testformatDate() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'formatDate', $methods ), 'seems like this function is outside this class' ); - } + public function testformatDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('formatDate', $methods ), 'exists method formatDate' ); + $r = new ReflectionMethod('G', 'formatDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'datetime'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'format'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Y-m-d'); + $this->assertTrue( $params[2]->getName() == 'lang'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getformatedDate * @todo Implement testgetformatedDate(). */ - public function testgetformatedDate() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getformatedDate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetformatedDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getformatedDate', $methods ), 'exists method getformatedDate' ); + $r = new ReflectionMethod('G', 'getformatedDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'format'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'yyyy-mm-dd'); + $this->assertTrue( $params[2]->getName() == 'lang'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::arrayDiff * @todo Implement testarrayDiff(). */ - public function testarrayDiff() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'arrayDiff', $methods ), 'seems like this function is outside this class' ); - } + public function testarrayDiff() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('arrayDiff', $methods ), 'exists method arrayDiff' ); + $r = new ReflectionMethod('G', 'arrayDiff'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array1'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'array2'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::complete_field * @todo Implement testcomplete_field(). */ - public function testcomplete_field() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'complete_field', $methods ), 'seems like this function is outside this class' ); - } + public function testcomplete_field() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('complete_field', $methods ), 'exists method complete_field' ); + $r = new ReflectionMethod('G', 'complete_field'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'campo'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'long'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'tipo'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::sqlEscape * @todo Implement testsqlEscape(). */ - public function testsqlEscape() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'sqlEscape', $methods ), 'seems like this function is outside this class' ); - } + public function testsqlEscape() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sqlEscape', $methods ), 'exists method sqlEscape' ); + $r = new ReflectionMethod('G', 'sqlEscape'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sqlString'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'DBEngine'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'DB_ADAPTER'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::MySQLSintaxis * @todo Implement testMySQLSintaxis(). */ - public function testMySQLSintaxis() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'MySQLSintaxis', $methods ), 'seems like this function is outside this class' ); - } + public function testMySQLSintaxis() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('MySQLSintaxis', $methods ), 'exists method MySQLSintaxis' ); + $r = new ReflectionMethod('G', 'MySQLSintaxis'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::replaceDataField * @todo Implement testreplaceDataField(). */ - public function testreplaceDataField() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'replaceDataField', $methods ), 'seems like this function is outside this class' ); - } + public function testreplaceDataField() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('replaceDataField', $methods ), 'exists method replaceDataField' ); + $r = new ReflectionMethod('G', 'replaceDataField'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sqlString'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'result'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'DBEngine'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'mysql'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::loadLanguageFile * @todo Implement testloadLanguageFile(). */ - public function testloadLanguageFile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'loadLanguageFile', $methods ), 'seems like this function is outside this class' ); - } + public function testloadLanguageFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadLanguageFile', $methods ), 'exists method loadLanguageFile' ); + $r = new ReflectionMethod('G', 'loadLanguageFile'); + $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() == 'languageId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'forceParse'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::registerLabel * @todo Implement testregisterLabel(). */ - public function testregisterLabel() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'registerLabel', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterLabel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerLabel', $methods ), 'exists method registerLabel' ); + $r = new ReflectionMethod('G', 'registerLabel'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'id'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'label'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadMenuXml * @todo Implement testLoadMenuXml(). */ - public function testLoadMenuXml() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadMenuXml', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadMenuXml() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadMenuXml', $methods ), 'exists method LoadMenuXml' ); + $r = new ReflectionMethod('G', 'LoadMenuXml'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::SendMessageXml * @todo Implement testSendMessageXml(). */ - public function testSendMessageXml() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'SendMessageXml', $methods ), 'seems like this function is outside this class' ); - } + public function testSendMessageXml() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SendMessageXml', $methods ), 'exists method SendMessageXml' ); + $r = new ReflectionMethod('G', 'SendMessageXml'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'file'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'labels'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::SendTemporalMessage * @todo Implement testSendTemporalMessage(). */ - public function testSendTemporalMessage() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'SendTemporalMessage', $methods ), 'seems like this function is outside this class' ); - } + public function testSendTemporalMessage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SendTemporalMessage', $methods ), 'exists method SendTemporalMessage' ); + $r = new ReflectionMethod('G', 'SendTemporalMessage'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'LABEL'); + $this->assertTrue( $params[3]->getName() == 'time'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'width'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'customLabels'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::SendMessage * @todo Implement testSendMessage(). */ - public function testSendMessage() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'SendMessage', $methods ), 'seems like this function is outside this class' ); - } + public function testSendMessage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SendMessage', $methods ), 'exists method SendMessage' ); + $r = new ReflectionMethod('G', 'SendMessage'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'file'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'labels'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::SendMessageText * @todo Implement testSendMessageText(). */ - public function testSendMessageText() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'SendMessageText', $methods ), 'seems like this function is outside this class' ); - } + public function testSendMessageText() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SendMessageText', $methods ), 'exists method SendMessageText' ); + $r = new ReflectionMethod('G', 'SendMessageText'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'text'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadMessage * @todo Implement testLoadMessage(). */ - public function testLoadMessage() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadMessage', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadMessage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadMessage', $methods ), 'exists method LoadMessage' ); + $r = new ReflectionMethod('G', 'LoadMessage'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'file'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'messages'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadXmlLabel * @todo Implement testLoadXmlLabel(). */ - public function testLoadXmlLabel() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadXmlLabel', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadXmlLabel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadXmlLabel', $methods ), 'exists method LoadXmlLabel' ); + $r = new ReflectionMethod('G', 'LoadXmlLabel'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'file'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'labels'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadMessageXml * @todo Implement testLoadMessageXml(). */ - public function testLoadMessageXml() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadMessageXml', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadMessageXml() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadMessageXml', $methods ), 'exists method LoadMessageXml' ); + $r = new ReflectionMethod('G', 'LoadMessageXml'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'file'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'labels'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadTranslationObject * @todo Implement testLoadTranslationObject(). */ - public function testLoadTranslationObject() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadTranslationObject', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadTranslationObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadTranslationObject', $methods ), 'exists method LoadTranslationObject' ); + $r = new ReflectionMethod('G', 'LoadTranslationObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'lang'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'en'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadTranslation * @todo Implement testLoadTranslation(). */ - public function testLoadTranslation() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadTranslation', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadTranslation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadTranslation', $methods ), 'exists method LoadTranslation' ); + $r = new ReflectionMethod('G', 'LoadTranslation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'lang'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'en'); + $this->assertTrue( $params[2]->getName() == 'data'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getTranslations * @todo Implement testgetTranslations(). */ - public function testgetTranslations() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getTranslations', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTranslations() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTranslations', $methods ), 'exists method getTranslations' ); + $r = new ReflectionMethod('G', 'getTranslations'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgIDs'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'lang'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'en'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::LoadArrayFile * @todo Implement testLoadArrayFile(). */ - public function testLoadArrayFile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'LoadArrayFile', $methods ), 'seems like this function is outside this class' ); - } + public function testLoadArrayFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('LoadArrayFile', $methods ), 'exists method LoadArrayFile' ); + $r = new ReflectionMethod('G', 'LoadArrayFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::expandUri * @todo Implement testexpandUri(). */ - public function testexpandUri() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'expandUri', $methods ), 'seems like this function is outside this class' ); - } + public function testexpandUri() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('expandUri', $methods ), 'exists method expandUri' ); + $r = new ReflectionMethod('G', 'expandUri'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'methodPage'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::genericForceLogin * @todo Implement testgenericForceLogin(). */ - public function testgenericForceLogin() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'genericForceLogin', $methods ), 'seems like this function is outside this class' ); - } + public function testgenericForceLogin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('genericForceLogin', $methods ), 'exists method genericForceLogin' ); + $r = new ReflectionMethod('G', 'genericForceLogin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'permission'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'urlNoAccess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'urlLogin'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'login/login'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::capitalize * @todo Implement testcapitalize(). */ - public function testcapitalize() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'capitalize', $methods ), 'seems like this function is outside this class' ); - } + public function testcapitalize() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('capitalize', $methods ), 'exists method capitalize' ); + $r = new ReflectionMethod('G', 'capitalize'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::toUpper * @todo Implement testtoUpper(). */ - public function testtoUpper() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'toUpper', $methods ), 'seems like this function is outside this class' ); - } + public function testtoUpper() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('toUpper', $methods ), 'exists method toUpper' ); + $r = new ReflectionMethod('G', 'toUpper'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sText'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::toLower * @todo Implement testtoLower(). */ - public function testtoLower() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'toLower', $methods ), 'seems like this function is outside this class' ); - } + public function testtoLower() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('toLower', $methods ), 'exists method toLower' ); + $r = new ReflectionMethod('G', 'toLower'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sText'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::http_build_query * @todo Implement testhttp_build_query(). */ - public function testhttp_build_query() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'http_build_query', $methods ), 'seems like this function is outside this class' ); - } + public function testhttp_build_query() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('http_build_query', $methods ), 'exists method http_build_query' ); + $r = new ReflectionMethod('G', 'http_build_query'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'formdata'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'numeric_prefix'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'key'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::header * @todo Implement testheader(). */ - public function testheader() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'header', $methods ), 'seems like this function is outside this class' ); - } + public function testheader() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('header', $methods ), 'exists method header' ); + $r = new ReflectionMethod('G', 'header'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'parameter'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::forceLogin * @todo Implement testforceLogin(). */ - public function testforceLogin() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'forceLogin', $methods ), 'seems like this function is outside this class' ); - } + public function testforceLogin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('forceLogin', $methods ), 'exists method forceLogin' ); + $r = new ReflectionMethod('G', 'forceLogin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'permission'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'urlNoAccess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::add_slashes * @todo Implement testadd_slashes(). */ - public function testadd_slashes() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'add_slashes', $methods ), 'seems like this function is outside this class' ); - } + public function testadd_slashes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('add_slashes', $methods ), 'exists method add_slashes' ); + $r = new ReflectionMethod('G', 'add_slashes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'val_old'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::uploadFile * @todo Implement testuploadFile(). */ - public function testuploadFile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'uploadFile', $methods ), 'seems like this function is outside this class' ); - } + public function testuploadFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('uploadFile', $methods ), 'exists method uploadFile' ); + $r = new ReflectionMethod('G', 'uploadFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'path'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'nameToSave'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'permission'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '438'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::resizeImage * @todo Implement testresizeImage(). */ - public function testresizeImage() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'resizeImage', $methods ), 'seems like this function is outside this class' ); - } + public function testresizeImage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('resizeImage', $methods ), 'exists method resizeImage' ); + $r = new ReflectionMethod('G', 'resizeImage'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'path'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'resWidth'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'resHeight'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'saveTo'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::array_merges * @todo Implement testarray_merges(). */ - public function testarray_merges() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'array_merges', $methods ), 'seems like this function is outside this class' ); - } + public function testarray_merges() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('array_merges', $methods ), 'exists method array_merges' ); + $r = new ReflectionMethod('G', 'array_merges'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::array_merge_2 * @todo Implement testarray_merge_2(). */ - public function testarray_merge_2() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'array_merge_2', $methods ), 'seems like this function is outside this class' ); - } + public function testarray_merge_2() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('array_merge_2', $methods ), 'exists method array_merge_2' ); + $r = new ReflectionMethod('G', 'array_merge_2'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'array_i'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::generateUniqueID * @todo Implement testgenerateUniqueID(). */ - public function testgenerateUniqueID() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'generateUniqueID', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateUniqueID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateUniqueID', $methods ), 'exists method generateUniqueID' ); + $r = new ReflectionMethod('G', 'generateUniqueID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::generateCode * @todo Implement testgenerateCode(). */ - public function testgenerateCode() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'generateCode', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateCode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateCode', $methods ), 'exists method generateCode' ); + $r = new ReflectionMethod('G', 'generateCode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'iDigits'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '4'); + $this->assertTrue( $params[1]->getName() == 'sType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'NUMERIC'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::verifyUniqueID * @todo Implement testverifyUniqueID(). */ - public function testverifyUniqueID() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'verifyUniqueID', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyUniqueID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyUniqueID', $methods ), 'exists method verifyUniqueID' ); + $r = new ReflectionMethod('G', 'verifyUniqueID'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'uid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::is_utf8 * @todo Implement testis_utf8(). */ - public function testis_utf8() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'is_utf8', $methods ), 'seems like this function is outside this class' ); - } + public function testis_utf8() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('is_utf8', $methods ), 'exists method is_utf8' ); + $r = new ReflectionMethod('G', 'is_utf8'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::CurDate * @todo Implement testCurDate(). */ - public function testCurDate() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'CurDate', $methods ), 'seems like this function is outside this class' ); - } + public function testCurDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('CurDate', $methods ), 'exists method CurDate' ); + $r = new ReflectionMethod('G', 'CurDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sFormat'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getSystemConstants * @todo Implement testgetSystemConstants(). */ - public function testgetSystemConstants() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getSystemConstants', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSystemConstants() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSystemConstants', $methods ), 'exists method getSystemConstants' ); + $r = new ReflectionMethod('G', 'getSystemConstants'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'params'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::capitalizeWords * @todo Implement testcapitalizeWords(). */ - public function testcapitalizeWords() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'capitalizeWords', $methods ), 'seems like this function is outside this class' ); - } + public function testcapitalizeWords() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('capitalizeWords', $methods ), 'exists method capitalizeWords' ); + $r = new ReflectionMethod('G', 'capitalizeWords'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'text'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::unhtmlentities * @todo Implement testunhtmlentities(). */ - public function testunhtmlentities() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'unhtmlentities', $methods ), 'seems like this function is outside this class' ); - } + public function testunhtmlentities() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unhtmlentities', $methods ), 'exists method unhtmlentities' ); + $r = new ReflectionMethod('G', 'unhtmlentities'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::xmlParser * @todo Implement testxmlParser(). */ - public function testxmlParser() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'xmlParser', $methods ), 'seems like this function is outside this class' ); - } + public function testxmlParser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('xmlParser', $methods ), 'exists method xmlParser' ); + $r = new ReflectionMethod('G', 'xmlParser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::_del_p * @todo Implement test_del_p(). */ - public function test_del_p() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( '_del_p', $methods ), 'seems like this function is outside this class' ); - } + public function test_del_p() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_del_p', $methods ), 'exists method _del_p' ); + $r = new ReflectionMethod('G', '_del_p'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ary'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::ary2xml * @todo Implement testary2xml(). */ - public function testary2xml() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'ary2xml', $methods ), 'seems like this function is outside this class' ); - } + public function testary2xml() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ary2xml', $methods ), 'exists method ary2xml' ); + $r = new ReflectionMethod('G', 'ary2xml'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'cary'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'd'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'forcetag'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::ins2ary * @todo Implement testins2ary(). */ - public function testins2ary() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'ins2ary', $methods ), 'seems like this function is outside this class' ); - } + public function testins2ary() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ins2ary', $methods ), 'exists method ins2ary' ); + $r = new ReflectionMethod('G', 'ins2ary'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ary'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'element'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pos'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::evalJScript * @todo Implement testevalJScript(). */ - public function testevalJScript() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'evalJScript', $methods ), 'seems like this function is outside this class' ); - } + public function testevalJScript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('evalJScript', $methods ), 'exists method evalJScript' ); + $r = new ReflectionMethod('G', 'evalJScript'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'c'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::inflect * @todo Implement testinflect(). */ - public function testinflect() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'inflect', $methods ), 'seems like this function is outside this class' ); - } + public function testinflect() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('inflect', $methods ), 'exists method inflect' ); + $r = new ReflectionMethod('G', 'inflect'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'replacement'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '_'); + $this->assertTrue( $params[2]->getName() == 'map'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::pr * @todo Implement testpr(). */ - public function testpr() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'pr', $methods ), 'seems like this function is outside this class' ); - } + public function testpr() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('pr', $methods ), 'exists method pr' ); + $r = new ReflectionMethod('G', 'pr'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'var'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::dump * @todo Implement testdump(). */ - public function testdump() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'dump', $methods ), 'seems like this function is outside this class' ); - } + public function testdump() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dump', $methods ), 'exists method dump' ); + $r = new ReflectionMethod('G', 'dump'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'var'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::stripCDATA * @todo Implement teststripCDATA(). */ - public function teststripCDATA() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'stripCDATA', $methods ), 'seems like this function is outside this class' ); - } + public function teststripCDATA() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('stripCDATA', $methods ), 'exists method stripCDATA' ); + $r = new ReflectionMethod('G', 'stripCDATA'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::sys_get_temp_dir * @todo Implement testsys_get_temp_dir(). */ - public function testsys_get_temp_dir() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'sys_get_temp_dir', $methods ), 'seems like this function is outside this class' ); - } + public function testsys_get_temp_dir() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sys_get_temp_dir', $methods ), 'exists method sys_get_temp_dir' ); + $r = new ReflectionMethod('G', 'sys_get_temp_dir'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::PMWSCompositeResponse * @todo Implement testPMWSCompositeResponse(). */ - public function testPMWSCompositeResponse() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'PMWSCompositeResponse', $methods ), 'seems like this function is outside this class' ); - } + public function testPMWSCompositeResponse() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('PMWSCompositeResponse', $methods ), 'exists method PMWSCompositeResponse' ); + $r = new ReflectionMethod('G', 'PMWSCompositeResponse'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oResp'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'prop'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::emailAddress * @todo Implement testemailAddress(). */ - public function testemailAddress() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'emailAddress', $methods ), 'seems like this function is outside this class' ); - } + public function testemailAddress() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('emailAddress', $methods ), 'exists method emailAddress' ); + $r = new ReflectionMethod('G', 'emailAddress'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sEmail'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::json_encode * @todo Implement testjson_encode(). */ - public function testjson_encode() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'json_encode', $methods ), 'seems like this function is outside this class' ); - } + public function testjson_encode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('json_encode', $methods ), 'exists method json_encode' ); + $r = new ReflectionMethod('G', 'json_encode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'Json'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::json_decode * @todo Implement testjson_decode(). */ - public function testjson_decode() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'json_decode', $methods ), 'seems like this function is outside this class' ); - } + public function testjson_decode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('json_decode', $methods ), 'exists method json_decode' ); + $r = new ReflectionMethod('G', 'json_decode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'Json'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::isHttpRequest * @todo Implement testisHttpRequest(). */ - public function testisHttpRequest() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'isHttpRequest', $methods ), 'seems like this function is outside this class' ); - } + public function testisHttpRequest() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isHttpRequest', $methods ), 'exists method isHttpRequest' ); + $r = new ReflectionMethod('G', 'isHttpRequest'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::sendMail * @todo Implement testsendMail(). */ - public function testsendMail() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'sendMail', $methods ), 'seems like this function is outside this class' ); - } + public function testsendMail() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendMail', $methods ), 'exists method sendMail' ); + $r = new ReflectionMethod('G', 'sendMail'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fromName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'address'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'subject'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'body'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::envelopEmailAddresses * @todo Implement testenvelopEmailAddresses(). */ - public function testenvelopEmailAddresses() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'envelopEmailAddresses', $methods ), 'seems like this function is outside this class' ); - } + public function testenvelopEmailAddresses() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('envelopEmailAddresses', $methods ), 'exists method envelopEmailAddresses' ); + $r = new ReflectionMethod('G', 'envelopEmailAddresses'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'address'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::gettype * @todo Implement testgettype(). */ - public function testgettype() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'gettype', $methods ), 'seems like this function is outside this class' ); - } + public function testgettype() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('gettype', $methods ), 'exists method gettype' ); + $r = new ReflectionMethod('G', 'gettype'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'var'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::removeComments * @todo Implement testremoveComments(). */ - public function testremoveComments() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'removeComments', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveComments() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeComments', $methods ), 'exists method removeComments' ); + $r = new ReflectionMethod('G', 'removeComments'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'buffer'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getMemoryUsage * @todo Implement testgetMemoryUsage(). */ - public function testgetMemoryUsage() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getMemoryUsage', $methods ), 'seems like this function is outside this class' ); - } + public function testgetMemoryUsage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getMemoryUsage', $methods ), 'exists method getMemoryUsage' ); + $r = new ReflectionMethod('G', 'getMemoryUsage'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getFormatUserList * @todo Implement testgetFormatUserList(). */ - public function testgetFormatUserList() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getFormatUserList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFormatUserList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFormatUserList', $methods ), 'exists method getFormatUserList' ); + $r = new ReflectionMethod('G', 'getFormatUserList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'format'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aUserInfo'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getModel * @todo Implement testgetModel(). */ - public function testgetModel() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getModel', $methods ), 'seems like this function is outside this class' ); - } + public function testgetModel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getModel', $methods ), 'exists method getModel' ); + $r = new ReflectionMethod('G', 'getModel'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'model'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::is_rwritable * @todo Implement testis_rwritable(). */ - public function testis_rwritable() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'is_rwritable', $methods ), 'seems like this function is outside this class' ); - } + public function testis_rwritable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('is_rwritable', $methods ), 'exists method is_rwritable' ); + $r = new ReflectionMethod('G', 'is_rwritable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'path'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pattern'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '*'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::rglob * @todo Implement testrglob(). */ - public function testrglob() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'rglob', $methods ), 'seems like this function is outside this class' ); - } + public function testrglob() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('rglob', $methods ), 'exists method rglob' ); + $r = new ReflectionMethod('G', 'rglob'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pattern'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '*'); + $this->assertTrue( $params[1]->getName() == 'flags'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'path'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::browser_detection * @todo Implement testbrowser_detection(). */ - public function testbrowser_detection() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'browser_detection', $methods ), 'seems like this function is outside this class' ); - } + public function testbrowser_detection() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('browser_detection', $methods ), 'exists method browser_detection' ); + $r = new ReflectionMethod('G', 'browser_detection'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'which_test'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'test_excludes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'external_ua_string'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::get_os_data * @todo Implement testget_os_data(). */ - public function testget_os_data() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'get_os_data', $methods ), 'seems like this function is outside this class' ); - } + public function testget_os_data() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_os_data', $methods ), 'exists method get_os_data' ); + $r = new ReflectionMethod('G', 'get_os_data'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pv_browser_string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pv_browser_name'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pv_version_number'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::get_item_version * @todo Implement testget_item_version(). */ - public function testget_item_version() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'get_item_version', $methods ), 'seems like this function is outside this class' ); - } + public function testget_item_version() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_item_version', $methods ), 'exists method get_item_version' ); + $r = new ReflectionMethod('G', 'get_item_version'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pv_browser_user_agent'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pv_search_string'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pv_b_break_last'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'pv_extra_search'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::get_set_count * @todo Implement testget_set_count(). */ - public function testget_set_count() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'get_set_count', $methods ), 'seems like this function is outside this class' ); - } + public function testget_set_count() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_set_count', $methods ), 'exists method get_set_count' ); + $r = new ReflectionMethod('G', 'get_set_count'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pv_type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pv_value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::check_is_mobile * @todo Implement testcheck_is_mobile(). */ - public function testcheck_is_mobile() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'check_is_mobile', $methods ), 'seems like this function is outside this class' ); - } + public function testcheck_is_mobile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('check_is_mobile', $methods ), 'exists method check_is_mobile' ); + $r = new ReflectionMethod('G', 'check_is_mobile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pv_browser_user_agent'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::get_mobile_data * @todo Implement testget_mobile_data(). */ - public function testget_mobile_data() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'get_mobile_data', $methods ), 'seems like this function is outside this class' ); - } + public function testget_mobile_data() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_mobile_data', $methods ), 'exists method get_mobile_data' ); + $r = new ReflectionMethod('G', 'get_mobile_data'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pv_browser_user_agent'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getBrowser * @todo Implement testgetBrowser(). */ - public function testgetBrowser() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getBrowser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetBrowser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getBrowser', $methods ), 'exists method getBrowser' ); + $r = new ReflectionMethod('G', 'getBrowser'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::script_time * @todo Implement testscript_time(). */ - public function testscript_time() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'script_time', $methods ), 'seems like this function is outside this class' ); - } + public function testscript_time() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('script_time', $methods ), 'exists method script_time' ); + $r = new ReflectionMethod('G', 'script_time'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getDirectorySize * @todo Implement testgetDirectorySize(). */ - public function testgetDirectorySize() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getDirectorySize', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDirectorySize() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDirectorySize', $methods ), 'exists method getDirectorySize' ); + $r = new ReflectionMethod('G', 'getDirectorySize'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'path'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'maxmtime'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getCacheFileNameByPattern * @todo Implement testgetCacheFileNameByPattern(). */ - public function testgetCacheFileNameByPattern() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getCacheFileNameByPattern', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCacheFileNameByPattern() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCacheFileNameByPattern', $methods ), 'exists method getCacheFileNameByPattern' ); + $r = new ReflectionMethod('G', 'getCacheFileNameByPattern'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'path'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pattern'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::getCheckSum * @todo Implement testgetCheckSum(). */ - public function testgetCheckSum() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'getCheckSum', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCheckSum() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCheckSum', $methods ), 'exists method getCheckSum' ); + $r = new ReflectionMethod('G', 'getCheckSum'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'files'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::parse_ini_string * @todo Implement testparse_ini_string(). */ - public function testparse_ini_string() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'parse_ini_string', $methods ), 'seems like this function is outside this class' ); - } + public function testparse_ini_string() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parse_ini_string', $methods ), 'exists method parse_ini_string' ); + $r = new ReflectionMethod('G', 'parse_ini_string'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::disableEnableINIvariable * @todo Implement testdisableEnableINIvariable(). */ - public function testdisableEnableINIvariable() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'disableEnableINIvariable', $methods ), 'seems like this function is outside this class' ); - } + public function testdisableEnableINIvariable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('disableEnableINIvariable', $methods ), 'exists method disableEnableINIvariable' ); + $r = new ReflectionMethod('G', 'disableEnableINIvariable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'inifile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'variable'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::setINIvariable * @todo Implement testsetINIvariable(). */ - public function testsetINIvariable() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'setINIvariable', $methods ), 'seems like this function is outside this class' ); - } + public function testsetINIvariable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setINIvariable', $methods ), 'exists method setINIvariable' ); + $r = new ReflectionMethod('G', 'setINIvariable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'inifile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'variable'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'value'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::write_php_ini * @todo Implement testwrite_php_ini(). */ - public function testwrite_php_ini() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'write_php_ini', $methods ), 'seems like this function is outside this class' ); - } + public function testwrite_php_ini() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('write_php_ini', $methods ), 'exists method write_php_ini' ); + $r = new ReflectionMethod('G', 'write_php_ini'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'array'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::verifyWriteAccess * @todo Implement testverifyWriteAccess(). */ - public function testverifyWriteAccess() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'verifyWriteAccess', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyWriteAccess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyWriteAccess', $methods ), 'exists method verifyWriteAccess' ); + $r = new ReflectionMethod('G', 'verifyWriteAccess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'resources'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::renderTemplate * @todo Implement testrenderTemplate(). */ - public function testrenderTemplate() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'renderTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTemplate', $methods ), 'exists method renderTemplate' ); + $r = new ReflectionMethod('G', 'renderTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'template'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'data'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::parseTemplate * @todo Implement testparseTemplate(). */ - public function testparseTemplate() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'parseTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testparseTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parseTemplate', $methods ), 'exists method parseTemplate' ); + $r = new ReflectionMethod('G', 'parseTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'template'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'data'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::update_php_ini * @todo Implement testupdate_php_ini(). */ - public function testupdate_php_ini() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'update_php_ini', $methods ), 'seems like this function is outside this class' ); - } + public function testupdate_php_ini() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('update_php_ini', $methods ), 'exists method update_php_ini' ); + $r = new ReflectionMethod('G', 'update_php_ini'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'array'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G::is_writable_r * @todo Implement testis_writable_r(). */ - public function testis_writable_r() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'is_writable_r', $methods ), 'seems like this function is outside this class' ); - } - } + public function testis_writable_r() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('is_writable_r', $methods ), 'exists method is_writable_r' ); + $r = new ReflectionMethod('G', 'is_writable_r'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'path'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'noWritableFiles'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers G::eprint - * @todo Implement testeprint(). - */ - public function testeprint() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'eprint', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers G::println - * @todo Implement testprintln(). - */ - public function testprintln() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'println', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers G::eprintln - * @todo Implement testeprintln(). - */ - public function testeprintln() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( 'eprintln', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers G::__ - * @todo Implement test__(). - */ - public function test__() - { - if (class_exists('G')) { - $methods = get_class_methods( 'G'); - $this->assertTrue( in_array( '__', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/gulliver/system/classG_ErrorTest.php b/tests/automated/gulliver/system/classG_ErrorTest.php index 574c4a079..da75be6cd 100644 --- a/tests/automated/gulliver/system/classG_ErrorTest.php +++ b/tests/automated/gulliver/system/classG_ErrorTest.php @@ -1,37 +1,96 @@ -object = new G_Error(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 13); + } - class classG_ErrorTest extends PHPUnit_Framework_TestCase - { /** * @covers G_Error::G_Error * @todo Implement testG_Error(). */ - public function testG_Error() - { - if (class_exists('G_Error')) { - $methods = get_class_methods( 'G_Error'); - $this->assertTrue( in_array( 'G_Error', $methods ), 'seems like this function is outside this class' ); - } + public function testG_Error() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('G_Error', $methods ), 'exists method G_Error' ); + $r = new ReflectionMethod('G_Error', 'G_Error'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'code'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '-100'); + $this->assertTrue( $params[1]->getName() == 'mode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->assertTrue( $params[2]->getName() == 'level'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '1024'); + $this->assertTrue( $params[3]->getName() == 'debuginfo'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers G_Error::errorMessage * @todo Implement testerrorMessage(). */ - public function testerrorMessage() - { - if (class_exists('G_Error')) { - $methods = get_class_methods( 'G_Error'); - $this->assertTrue( in_array( 'errorMessage', $methods ), 'seems like this function is outside this class' ); - } + public function testerrorMessage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('errorMessage', $methods ), 'exists method errorMessage' ); + $r = new ReflectionMethod('G_Error', 'errorMessage'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'code'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classHelperTest.php b/tests/automated/gulliver/system/classHelperTest.php index 210a5529e..e3280cb26 100644 --- a/tests/automated/gulliver/system/classHelperTest.php +++ b/tests/automated/gulliver/system/classHelperTest.php @@ -1,109 +1,174 @@ -object = new Helper(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 8); + } - class classHelperTest extends PHPUnit_Framework_TestCase - { /** * @covers Helper::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('Helper', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Helper::addFile * @todo Implement testaddFile(). */ - public function testaddFile() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( 'addFile', $methods ), 'seems like this function is outside this class' ); - } + public function testaddFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addFile', $methods ), 'exists method addFile' ); + $r = new ReflectionMethod('Helper', 'addFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Helper::addContent * @todo Implement testaddContent(). */ - public function testaddContent() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( 'addContent', $methods ), 'seems like this function is outside this class' ); - } + public function testaddContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addContent', $methods ), 'exists method addContent' ); + $r = new ReflectionMethod('Helper', 'addContent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'content'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Helper::setContentType * @todo Implement testsetContentType(). */ - public function testsetContentType() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' ); - } + public function testsetContentType() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' ); + $r = new ReflectionMethod('Helper', 'setContentType'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ctype'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Helper::init * @todo Implement testinit(). */ - public function testinit() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( 'init', $methods ), 'seems like this function is outside this class' ); - } + public function testinit() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('init', $methods ), 'exists method init' ); + $r = new ReflectionMethod('Helper', 'init'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Helper::minify * @todo Implement testminify(). */ - public function testminify() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( 'minify', $methods ), 'seems like this function is outside this class' ); - } + public function testminify() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('minify', $methods ), 'exists method minify' ); + $r = new ReflectionMethod('Helper', 'minify'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Helper::flush * @todo Implement testflush(). */ - public function testflush() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( 'flush', $methods ), 'seems like this function is outside this class' ); - } + public function testflush() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('flush', $methods ), 'exists method flush' ); + $r = new ReflectionMethod('Helper', 'flush'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Helper::serve * @todo Implement testserve(). */ - public function testserve() - { - if (class_exists('Helper')) { - $methods = get_class_methods( 'Helper'); - $this->assertTrue( in_array( 'serve', $methods ), 'seems like this function is outside this class' ); - } + public function testserve() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('serve', $methods ), 'exists method serve' ); + $r = new ReflectionMethod('Helper', 'serve'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classHttpProxyControllerTest.php b/tests/automated/gulliver/system/classHttpProxyControllerTest.php index 800256f0a..796c910e5 100644 --- a/tests/automated/gulliver/system/classHttpProxyControllerTest.php +++ b/tests/automated/gulliver/system/classHttpProxyControllerTest.php @@ -1,109 +1,188 @@ -object = new HttpProxyController(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 8); + } - class classHttpProxyControllerTest extends PHPUnit_Framework_TestCase - { /** * @covers HttpProxyController::__set * @todo Implement test__set(). */ - public function test__set() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' ); - } + public function test__set() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__set', $methods ), 'exists method __set' ); + $r = new ReflectionMethod('HttpProxyController', '__set'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers HttpProxyController::__get * @todo Implement test__get(). */ - public function test__get() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' ); - } + public function test__get() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__get', $methods ), 'exists method __get' ); + $r = new ReflectionMethod('HttpProxyController', '__get'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers HttpProxyController::__isset * @todo Implement test__isset(). */ - public function test__isset() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' ); - } + public function test__isset() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' ); + $r = new ReflectionMethod('HttpProxyController', '__isset'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers HttpProxyController::__unset * @todo Implement test__unset(). */ - public function test__unset() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' ); - } + public function test__unset() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' ); + $r = new ReflectionMethod('HttpProxyController', '__unset'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers HttpProxyController::call * @todo Implement testcall(). */ - public function testcall() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' ); - } + public function testcall() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('call', $methods ), 'exists method call' ); + $r = new ReflectionMethod('HttpProxyController', 'call'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers HttpProxyController::setHttpRequestData * @todo Implement testsetHttpRequestData(). */ - public function testsetHttpRequestData() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' ); - } + public function testsetHttpRequestData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' ); + $r = new ReflectionMethod('HttpProxyController', 'setHttpRequestData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'data'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers HttpProxyController::setJsonResponse * @todo Implement testsetJsonResponse(). */ - public function testsetJsonResponse() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( 'setJsonResponse', $methods ), 'seems like this function is outside this class' ); - } + public function testsetJsonResponse() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setJsonResponse', $methods ), 'exists method setJsonResponse' ); + $r = new ReflectionMethod('HttpProxyController', 'setJsonResponse'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'bool'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers HttpProxyController::setSendResponse * @todo Implement testsetSendResponse(). */ - public function testsetSendResponse() - { - if (class_exists('HttpProxyController')) { - $methods = get_class_methods( 'HttpProxyController'); - $this->assertTrue( in_array( 'setSendResponse', $methods ), 'seems like this function is outside this class' ); - } + public function testsetSendResponse() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setSendResponse', $methods ), 'exists method setSendResponse' ); + $r = new ReflectionMethod('HttpProxyController', 'setSendResponse'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'val'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classMenuTest.php b/tests/automated/gulliver/system/classMenuTest.php index fdec1563d..e4420b57e 100644 --- a/tests/automated/gulliver/system/classMenuTest.php +++ b/tests/automated/gulliver/system/classMenuTest.php @@ -1,145 +1,292 @@ -object = new Menu(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 11); + } - class classMenuTest extends PHPUnit_Framework_TestCase - { /** * @covers Menu::SetClass * @todo Implement testSetClass(). */ - public function testSetClass() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'SetClass', $methods ), 'seems like this function is outside this class' ); - } + public function testSetClass() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SetClass', $methods ), 'exists method SetClass' ); + $r = new ReflectionMethod('Menu', 'SetClass'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strClass'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'mnu'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::Load * @todo Implement testLoad(). */ - public function testLoad() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' ); - } + public function testLoad() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Load', $methods ), 'exists method Load' ); + $r = new ReflectionMethod('Menu', 'Load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strMenuName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::OptionCount * @todo Implement testOptionCount(). */ - public function testOptionCount() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'OptionCount', $methods ), 'seems like this function is outside this class' ); - } + public function testOptionCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('OptionCount', $methods ), 'exists method OptionCount' ); + $r = new ReflectionMethod('Menu', 'OptionCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::AddOption * @todo Implement testAddOption(). */ - public function testAddOption() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'AddOption', $methods ), 'seems like this function is outside this class' ); - } + public function testAddOption() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddOption', $methods ), 'exists method AddOption' ); + $r = new ReflectionMethod('Menu', 'AddOption'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strLabel'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strURL'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'strType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'plugins'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::AddIdOption * @todo Implement testAddIdOption(). */ - public function testAddIdOption() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'AddIdOption', $methods ), 'seems like this function is outside this class' ); - } + public function testAddIdOption() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddIdOption', $methods ), 'exists method AddIdOption' ); + $r = new ReflectionMethod('Menu', 'AddIdOption'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strLabel'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'strURL'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'strType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == 'plugins'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::AddRawOption * @todo Implement testAddRawOption(). */ - public function testAddRawOption() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'AddRawOption', $methods ), 'seems like this function is outside this class' ); - } + public function testAddRawOption() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddRawOption', $methods ), 'exists method AddRawOption' ); + $r = new ReflectionMethod('Menu', 'AddRawOption'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strURL'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'strType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'plugins'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::AddIdRawOption * @todo Implement testAddIdRawOption(). */ - public function testAddIdRawOption() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'AddIdRawOption', $methods ), 'seems like this function is outside this class' ); - } + public function testAddIdRawOption() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddIdRawOption', $methods ), 'exists method AddIdRawOption' ); + $r = new ReflectionMethod('Menu', 'AddIdRawOption'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strURL'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'label'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'icon'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'js'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'strType'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == 'plugins'); + $this->assertTrue( $params[6]->getName() == 'elementClass'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::DisableOptionPos * @todo Implement testDisableOptionPos(). */ - public function testDisableOptionPos() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'DisableOptionPos', $methods ), 'seems like this function is outside this class' ); - } + public function testDisableOptionPos() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('DisableOptionPos', $methods ), 'exists method DisableOptionPos' ); + $r = new ReflectionMethod('Menu', 'DisableOptionPos'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'intPos'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::DisableOptionId * @todo Implement testDisableOptionId(). */ - public function testDisableOptionId() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'DisableOptionId', $methods ), 'seems like this function is outside this class' ); - } + public function testDisableOptionId() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('DisableOptionId', $methods ), 'exists method DisableOptionId' ); + $r = new ReflectionMethod('Menu', 'DisableOptionId'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'id'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::RenderOption * @todo Implement testRenderOption(). */ - public function testRenderOption() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'RenderOption', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderOption() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderOption', $methods ), 'exists method RenderOption' ); + $r = new ReflectionMethod('Menu', 'RenderOption'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'intPos'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Menu::generateArrayForTemplate * @todo Implement testgenerateArrayForTemplate(). */ - public function testgenerateArrayForTemplate() - { - if (class_exists('Menu')) { - $methods = get_class_methods( 'Menu'); - $this->assertTrue( in_array( 'generateArrayForTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateArrayForTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateArrayForTemplate', $methods ), 'exists method generateArrayForTemplate' ); + $r = new ReflectionMethod('Menu', 'generateArrayForTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'G_MAIN_MENU'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'classOn'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'classOff'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'G_MENU_SELECTED'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'G_ID_MENU_SELECTED'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classNTLMSoapClientTest.php b/tests/automated/gulliver/system/classNTLMSoapClientTest.php deleted file mode 100644 index 48b0c68b3..000000000 --- a/tests/automated/gulliver/system/classNTLMSoapClientTest.php +++ /dev/null @@ -1,37 +0,0 @@ -assertTrue( in_array( '__doRequest', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers NTLMSoapClient::__getLastRequestHeaders - * @todo Implement test__getLastRequestHeaders(). - */ - public function test__getLastRequestHeaders() - { - if (class_exists('NTLMSoapClient')) { - $methods = get_class_methods( 'NTLMSoapClient'); - $this->assertTrue( in_array( '__getLastRequestHeaders', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classPHPSQLParserTest.php b/tests/automated/gulliver/system/classPHPSQLParserTest.php index 09fdeabbf..04b4a79ea 100644 --- a/tests/automated/gulliver/system/classPHPSQLParserTest.php +++ b/tests/automated/gulliver/system/classPHPSQLParserTest.php @@ -1,217 +1,119 @@ -object = new PHPSQLParser(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 4); + } - class classPHPSQLParserTest extends PHPUnit_Framework_TestCase - { /** * @covers PHPSQLParser::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('PHPSQLParser', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sql'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PHPSQLParser::parse * @todo Implement testparse(). */ - public function testparse() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'parse', $methods ), 'seems like this function is outside this class' ); - } - } + public function testparse() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parse', $methods ), 'exists method parse' ); + $r = new ReflectionMethod('PHPSQLParser', 'parse'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sql'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers PHPSQLParser::count_paren - * @todo Implement testcount_paren(). - */ - public function testcount_paren() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'count_paren', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::count_backtick - * @todo Implement testcount_backtick(). - */ - public function testcount_backtick() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'count_backtick', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::split_sql - * @todo Implement testsplit_sql(). - */ - public function testsplit_sql() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'split_sql', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_sql - * @todo Implement testprocess_sql(). - */ - public function testprocess_sql() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_sql', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_set_list - * @todo Implement testprocess_set_list(). - */ - public function testprocess_set_list() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_set_list', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_limit - * @todo Implement testprocess_limit(). - */ - public function testprocess_limit() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_limit', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_select - * @todo Implement testprocess_select(). - */ - public function testprocess_select() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_select', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_select_expr - * @todo Implement testprocess_select_expr(). - */ - public function testprocess_select_expr() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_select_expr', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_from - * @todo Implement testprocess_from(). - */ - public function testprocess_from() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_from', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_group - * @todo Implement testprocess_group(). - */ - public function testprocess_group() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_group', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_expr_list - * @todo Implement testprocess_expr_list(). - */ - public function testprocess_expr_list() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_expr_list', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_update - * @todo Implement testprocess_update(). - */ - public function testprocess_update() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_update', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PHPSQLParser::process_delete - * @todo Implement testprocess_delete(). - */ - public function testprocess_delete() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_delete', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers PHPSQLParser::process_insert * @todo Implement testprocess_insert(). */ - public function testprocess_insert() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'process_insert', $methods ), 'seems like this function is outside this class' ); - } + public function testprocess_insert() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('process_insert', $methods ), 'exists method process_insert' ); + $r = new ReflectionMethod('PHPSQLParser', 'process_insert'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tokens'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'token_category'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'INSERT'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PHPSQLParser::load_reserved_words * @todo Implement testload_reserved_words(). */ - public function testload_reserved_words() - { - if (class_exists('PHPSQLParser')) { - $methods = get_class_methods( 'PHPSQLParser'); - $this->assertTrue( in_array( 'load_reserved_words', $methods ), 'seems like this function is outside this class' ); - } + public function testload_reserved_words() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load_reserved_words', $methods ), 'exists method load_reserved_words' ); + $r = new ReflectionMethod('PHPSQLParser', 'load_reserved_words'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classPMExceptionTest.php b/tests/automated/gulliver/system/classPMExceptionTest.php index 4dcf6e6be..d2e960d61 100644 --- a/tests/automated/gulliver/system/classPMExceptionTest.php +++ b/tests/automated/gulliver/system/classPMExceptionTest.php @@ -1,37 +1,88 @@ -object = new PMException(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 8); + } - class classPMExceptionTest extends PHPUnit_Framework_TestCase - { /** * @covers PMException::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('PMException')) { - $methods = get_class_methods( 'PMException'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('PMException', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'code'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'previous'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMException::__toString * @todo Implement test__toString(). */ - public function test__toString() - { - if (class_exists('PMException')) { - $methods = get_class_methods( 'PMException'); - $this->assertTrue( in_array( '__toString', $methods ), 'seems like this function is outside this class' ); - } + public function test__toString() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__toString', $methods ), 'exists method __toString' ); + $r = new ReflectionMethod('PMException', '__toString'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classPMServiceNTLMSoapClientTest.php b/tests/automated/gulliver/system/classPMServiceNTLMSoapClientTest.php deleted file mode 100644 index be957fc09..000000000 --- a/tests/automated/gulliver/system/classPMServiceNTLMSoapClientTest.php +++ /dev/null @@ -1,25 +0,0 @@ -assertTrue( in_array( 'setAuthClient', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classPMServiceProviderNTLMStreamTest.php b/tests/automated/gulliver/system/classPMServiceProviderNTLMStreamTest.php deleted file mode 100644 index 223064b7d..000000000 --- a/tests/automated/gulliver/system/classPMServiceProviderNTLMStreamTest.php +++ /dev/null @@ -1,49 +0,0 @@ -assertTrue( in_array( 'getuser', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMServiceProviderNTLMStream::getpassword - * @todo Implement testgetpassword(). - */ - public function testgetpassword() - { - if (class_exists('PMServiceProviderNTLMStream')) { - $methods = get_class_methods( 'PMServiceProviderNTLMStream'); - $this->assertTrue( in_array( 'getpassword', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMServiceProviderNTLMStream::setAuthStream - * @todo Implement testsetAuthStream(). - */ - public function testsetAuthStream() - { - if (class_exists('PMServiceProviderNTLMStream')) { - $methods = get_class_methods( 'PMServiceProviderNTLMStream'); - $this->assertTrue( in_array( 'setAuthStream', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classPublisherTest.php b/tests/automated/gulliver/system/classPublisherTest.php index 0171d8e3d..8bd2cefb0 100644 --- a/tests/automated/gulliver/system/classPublisherTest.php +++ b/tests/automated/gulliver/system/classPublisherTest.php @@ -1,49 +1,139 @@ -object = new Publisher(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 3); + } - class classPublisherTest extends PHPUnit_Framework_TestCase - { /** * @covers Publisher::AddContent * @todo Implement testAddContent(). */ - public function testAddContent() - { - if (class_exists('Publisher')) { - $methods = get_class_methods( 'Publisher'); - $this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' ); - } + public function testAddContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' ); + $r = new ReflectionMethod('Publisher', 'AddContent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strType'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'form'); + $this->assertTrue( $params[1]->getName() == 'strLayout'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'form'); + $this->assertTrue( $params[2]->getName() == 'strName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'strContent'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'arrData'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'strTarget'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'ajaxServer'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->assertTrue( $params[7]->getName() == 'mode'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == ''); + $this->assertTrue( $params[8]->getName() == 'bAbsolutePath'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Publisher::RenderContent * @todo Implement testRenderContent(). */ - public function testRenderContent() - { - if (class_exists('Publisher')) { - $methods = get_class_methods( 'Publisher'); - $this->assertTrue( in_array( 'RenderContent', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderContent', $methods ), 'exists method RenderContent' ); + $r = new ReflectionMethod('Publisher', 'RenderContent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'intPos'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Publisher::RenderContent0 * @todo Implement testRenderContent0(). */ - public function testRenderContent0() - { - if (class_exists('Publisher')) { - $methods = get_class_methods( 'Publisher'); - $this->assertTrue( in_array( 'RenderContent0', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderContent0() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderContent0', $methods ), 'exists method RenderContent0' ); + $r = new ReflectionMethod('Publisher', 'RenderContent0'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'intPos'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '0'); + $this->assertTrue( $params[1]->getName() == 'showXMLFormName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classRBACTest.php b/tests/automated/gulliver/system/classRBACTest.php index 29c9805c5..6dd532656 100644 --- a/tests/automated/gulliver/system/classRBACTest.php +++ b/tests/automated/gulliver/system/classRBACTest.php @@ -1,685 +1,1035 @@ -object = new RBAC(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 54); + } - class classRBACTest extends PHPUnit_Framework_TestCase - { /** * @covers RBAC::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('RBAC', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getSingleton * @todo Implement testgetSingleton(). */ - public function testgetSingleton() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSingleton() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' ); + $r = new ReflectionMethod('RBAC', 'getSingleton'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::initRBAC * @todo Implement testinitRBAC(). */ - public function testinitRBAC() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'initRBAC', $methods ), 'seems like this function is outside this class' ); - } + public function testinitRBAC() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('initRBAC', $methods ), 'exists method initRBAC' ); + $r = new ReflectionMethod('RBAC', 'initRBAC'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::loadUserRolePermission * @todo Implement testloadUserRolePermission(). */ - public function testloadUserRolePermission() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'loadUserRolePermission', $methods ), 'seems like this function is outside this class' ); - } + public function testloadUserRolePermission() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadUserRolePermission', $methods ), 'exists method loadUserRolePermission' ); + $r = new ReflectionMethod('RBAC', 'loadUserRolePermission'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSystem'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUser'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::checkAutomaticRegister * @todo Implement testcheckAutomaticRegister(). */ - public function testcheckAutomaticRegister() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'checkAutomaticRegister', $methods ), 'seems like this function is outside this class' ); - } + public function testcheckAutomaticRegister() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('checkAutomaticRegister', $methods ), 'exists method checkAutomaticRegister' ); + $r = new ReflectionMethod('RBAC', 'checkAutomaticRegister'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strPass'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::VerifyWithOtherAuthenticationSource * @todo Implement testVerifyWithOtherAuthenticationSource(). */ - public function testVerifyWithOtherAuthenticationSource() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'VerifyWithOtherAuthenticationSource', $methods ), 'seems like this function is outside this class' ); - } + public function testVerifyWithOtherAuthenticationSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('VerifyWithOtherAuthenticationSource', $methods ), 'exists method VerifyWithOtherAuthenticationSource' ); + $r = new ReflectionMethod('RBAC', 'VerifyWithOtherAuthenticationSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAuthType'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sAuthSource'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'aUserFields'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sAuthUserDn'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'strPass'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::VerifyLogin * @todo Implement testVerifyLogin(). */ - public function testVerifyLogin() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'VerifyLogin', $methods ), 'seems like this function is outside this class' ); - } + public function testVerifyLogin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('VerifyLogin', $methods ), 'exists method VerifyLogin' ); + $r = new ReflectionMethod('RBAC', 'VerifyLogin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strPass'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::verifyUser * @todo Implement testverifyUser(). */ - public function testverifyUser() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'verifyUser', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyUser', $methods ), 'exists method verifyUser' ); + $r = new ReflectionMethod('RBAC', 'verifyUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::verifyUserId * @todo Implement testverifyUserId(). */ - public function testverifyUserId() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'verifyUserId', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyUserId() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyUserId', $methods ), 'exists method verifyUserId' ); + $r = new ReflectionMethod('RBAC', 'verifyUserId'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strUserId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::userCanAccess * @todo Implement testuserCanAccess(). */ - public function testuserCanAccess() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'userCanAccess', $methods ), 'seems like this function is outside this class' ); - } + public function testuserCanAccess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('userCanAccess', $methods ), 'exists method userCanAccess' ); + $r = new ReflectionMethod('RBAC', 'userCanAccess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'perm'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::createUser * @todo Implement testcreateUser(). */ - public function testcreateUser() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'createUser', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createUser', $methods ), 'exists method createUser' ); + $r = new ReflectionMethod('RBAC', 'createUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'sRolCode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::updateUser * @todo Implement testupdateUser(). */ - public function testupdateUser() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'updateUser', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateUser', $methods ), 'exists method updateUser' ); + $r = new ReflectionMethod('RBAC', 'updateUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'sRolCode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::assignRoleToUser * @todo Implement testassignRoleToUser(). */ - public function testassignRoleToUser() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'assignRoleToUser', $methods ), 'seems like this function is outside this class' ); - } + public function testassignRoleToUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignRoleToUser', $methods ), 'exists method assignRoleToUser' ); + $r = new ReflectionMethod('RBAC', 'assignRoleToUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sRolCode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::removeRolesFromUser * @todo Implement testremoveRolesFromUser(). */ - public function testremoveRolesFromUser() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'removeRolesFromUser', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveRolesFromUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeRolesFromUser', $methods ), 'exists method removeRolesFromUser' ); + $r = new ReflectionMethod('RBAC', 'removeRolesFromUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::changeUserStatus * @todo Implement testchangeUserStatus(). */ - public function testchangeUserStatus() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'changeUserStatus', $methods ), 'seems like this function is outside this class' ); - } + public function testchangeUserStatus() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('changeUserStatus', $methods ), 'exists method changeUserStatus' ); + $r = new ReflectionMethod('RBAC', 'changeUserStatus'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sStatus'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'ACTIVE'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::removeUser * @todo Implement testremoveUser(). */ - public function testremoveUser() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'removeUser', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeUser', $methods ), 'exists method removeUser' ); + $r = new ReflectionMethod('RBAC', 'removeUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('RBAC', 'load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'uid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::createPermision * @todo Implement testcreatePermision(). */ - public function testcreatePermision() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'createPermision', $methods ), 'seems like this function is outside this class' ); - } + public function testcreatePermision() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createPermision', $methods ), 'exists method createPermision' ); + $r = new ReflectionMethod('RBAC', 'createPermision'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::listAllRoles * @todo Implement testlistAllRoles(). */ - public function testlistAllRoles() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'listAllRoles', $methods ), 'seems like this function is outside this class' ); - } + public function testlistAllRoles() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('listAllRoles', $methods ), 'exists method listAllRoles' ); + $r = new ReflectionMethod('RBAC', 'listAllRoles'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'systemCode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'PROCESSMAKER'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllRoles * @todo Implement testgetAllRoles(). */ - public function testgetAllRoles() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllRoles', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllRoles() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllRoles', $methods ), 'exists method getAllRoles' ); + $r = new ReflectionMethod('RBAC', 'getAllRoles'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'systemCode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'PROCESSMAKER'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllRolesFilter * @todo Implement testgetAllRolesFilter(). */ - public function testgetAllRolesFilter() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllRolesFilter', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllRolesFilter() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllRolesFilter', $methods ), 'exists method getAllRolesFilter' ); + $r = new ReflectionMethod('RBAC', 'getAllRolesFilter'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'filter'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::listAllPermissions * @todo Implement testlistAllPermissions(). */ - public function testlistAllPermissions() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'listAllPermissions', $methods ), 'seems like this function is outside this class' ); - } + public function testlistAllPermissions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('listAllPermissions', $methods ), 'exists method listAllPermissions' ); + $r = new ReflectionMethod('RBAC', 'listAllPermissions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'systemCode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'PROCESSMAKER'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::createRole * @todo Implement testcreateRole(). */ - public function testcreateRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'createRole', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createRole', $methods ), 'exists method createRole' ); + $r = new ReflectionMethod('RBAC', 'createRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::removeRole * @todo Implement testremoveRole(). */ - public function testremoveRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'removeRole', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeRole', $methods ), 'exists method removeRole' ); + $r = new ReflectionMethod('RBAC', 'removeRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::verifyNewRole * @todo Implement testverifyNewRole(). */ - public function testverifyNewRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'verifyNewRole', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyNewRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyNewRole', $methods ), 'exists method verifyNewRole' ); + $r = new ReflectionMethod('RBAC', 'verifyNewRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'code'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::updateRole * @todo Implement testupdateRole(). */ - public function testupdateRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'updateRole', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateRole', $methods ), 'exists method updateRole' ); + $r = new ReflectionMethod('RBAC', 'updateRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::loadById * @todo Implement testloadById(). */ - public function testloadById() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'loadById', $methods ), 'seems like this function is outside this class' ); - } + public function testloadById() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadById', $methods ), 'exists method loadById' ); + $r = new ReflectionMethod('RBAC', 'loadById'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getRoleUsers * @todo Implement testgetRoleUsers(). */ - public function testgetRoleUsers() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getRoleUsers', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRoleUsers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRoleUsers', $methods ), 'exists method getRoleUsers' ); + $r = new ReflectionMethod('RBAC', 'getRoleUsers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'filter'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllUsersByRole * @todo Implement testgetAllUsersByRole(). */ - public function testgetAllUsersByRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllUsersByRole', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllUsersByRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllUsersByRole', $methods ), 'exists method getAllUsersByRole' ); + $r = new ReflectionMethod('RBAC', 'getAllUsersByRole'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllUsersByDepartment * @todo Implement testgetAllUsersByDepartment(). */ - public function testgetAllUsersByDepartment() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllUsersByDepartment', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllUsersByDepartment() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllUsersByDepartment', $methods ), 'exists method getAllUsersByDepartment' ); + $r = new ReflectionMethod('RBAC', 'getAllUsersByDepartment'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getRoleCode * @todo Implement testgetRoleCode(). */ - public function testgetRoleCode() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getRoleCode', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRoleCode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRoleCode', $methods ), 'exists method getRoleCode' ); + $r = new ReflectionMethod('RBAC', 'getRoleCode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::deleteUserRole * @todo Implement testdeleteUserRole(). */ - public function testdeleteUserRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'deleteUserRole', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteUserRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteUserRole', $methods ), 'exists method deleteUserRole' ); + $r = new ReflectionMethod('RBAC', 'deleteUserRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'USR_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllUsers * @todo Implement testgetAllUsers(). */ - public function testgetAllUsers() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllUsers', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllUsers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllUsers', $methods ), 'exists method getAllUsers' ); + $r = new ReflectionMethod('RBAC', 'getAllUsers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'filter'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::assignUserToRole * @todo Implement testassignUserToRole(). */ - public function testassignUserToRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'assignUserToRole', $methods ), 'seems like this function is outside this class' ); - } + public function testassignUserToRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignUserToRole', $methods ), 'exists method assignUserToRole' ); + $r = new ReflectionMethod('RBAC', 'assignUserToRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getRolePermissions * @todo Implement testgetRolePermissions(). */ - public function testgetRolePermissions() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getRolePermissions', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRolePermissions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRolePermissions', $methods ), 'exists method getRolePermissions' ); + $r = new ReflectionMethod('RBAC', 'getRolePermissions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'filter'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllPermissions * @todo Implement testgetAllPermissions(). */ - public function testgetAllPermissions() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllPermissions', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllPermissions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllPermissions', $methods ), 'exists method getAllPermissions' ); + $r = new ReflectionMethod('RBAC', 'getAllPermissions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'PER_SYSTEM'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'filter'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::assignPermissionRole * @todo Implement testassignPermissionRole(). */ - public function testassignPermissionRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'assignPermissionRole', $methods ), 'seems like this function is outside this class' ); - } + public function testassignPermissionRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignPermissionRole', $methods ), 'exists method assignPermissionRole' ); + $r = new ReflectionMethod('RBAC', 'assignPermissionRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::assignPermissionToRole * @todo Implement testassignPermissionToRole(). */ - public function testassignPermissionToRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'assignPermissionToRole', $methods ), 'seems like this function is outside this class' ); - } + public function testassignPermissionToRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignPermissionToRole', $methods ), 'exists method assignPermissionToRole' ); + $r = new ReflectionMethod('RBAC', 'assignPermissionToRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sRoleUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sPermissionUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::deletePermissionRole * @todo Implement testdeletePermissionRole(). */ - public function testdeletePermissionRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'deletePermissionRole', $methods ), 'seems like this function is outside this class' ); - } + public function testdeletePermissionRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deletePermissionRole', $methods ), 'exists method deletePermissionRole' ); + $r = new ReflectionMethod('RBAC', 'deletePermissionRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'PER_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::numUsersWithRole * @todo Implement testnumUsersWithRole(). */ - public function testnumUsersWithRole() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'numUsersWithRole', $methods ), 'seems like this function is outside this class' ); - } + public function testnumUsersWithRole() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('numUsersWithRole', $methods ), 'exists method numUsersWithRole' ); + $r = new ReflectionMethod('RBAC', 'numUsersWithRole'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ROL_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::createSystem * @todo Implement testcreateSystem(). */ - public function testcreateSystem() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'createSystem', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSystem() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSystem', $methods ), 'exists method createSystem' ); + $r = new ReflectionMethod('RBAC', 'createSystem'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::verifyByCode * @todo Implement testverifyByCode(). */ - public function testverifyByCode() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'verifyByCode', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyByCode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyByCode', $methods ), 'exists method verifyByCode' ); + $r = new ReflectionMethod('RBAC', 'verifyByCode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllAuthSources * @todo Implement testgetAllAuthSources(). */ - public function testgetAllAuthSources() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllAuthSources', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllAuthSources() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllAuthSources', $methods ), 'exists method getAllAuthSources' ); + $r = new ReflectionMethod('RBAC', 'getAllAuthSources'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllAuthSourcesByUser * @todo Implement testgetAllAuthSourcesByUser(). */ - public function testgetAllAuthSourcesByUser() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllAuthSourcesByUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllAuthSourcesByUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllAuthSourcesByUser', $methods ), 'exists method getAllAuthSourcesByUser' ); + $r = new ReflectionMethod('RBAC', 'getAllAuthSourcesByUser'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAuthenticationSources * @todo Implement testgetAuthenticationSources(). */ - public function testgetAuthenticationSources() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAuthenticationSources', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAuthenticationSources() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAuthenticationSources', $methods ), 'exists method getAuthenticationSources' ); + $r = new ReflectionMethod('RBAC', 'getAuthenticationSources'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'filter'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAuthSource * @todo Implement testgetAuthSource(). */ - public function testgetAuthSource() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAuthSource', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAuthSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAuthSource', $methods ), 'exists method getAuthSource' ); + $r = new ReflectionMethod('RBAC', 'getAuthSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::createAuthSource * @todo Implement testcreateAuthSource(). */ - public function testcreateAuthSource() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'createAuthSource', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateAuthSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createAuthSource', $methods ), 'exists method createAuthSource' ); + $r = new ReflectionMethod('RBAC', 'createAuthSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::updateAuthSource * @todo Implement testupdateAuthSource(). */ - public function testupdateAuthSource() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'updateAuthSource', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateAuthSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateAuthSource', $methods ), 'exists method updateAuthSource' ); + $r = new ReflectionMethod('RBAC', 'updateAuthSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::removeAuthSource * @todo Implement testremoveAuthSource(). */ - public function testremoveAuthSource() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'removeAuthSource', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveAuthSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeAuthSource', $methods ), 'exists method removeAuthSource' ); + $r = new ReflectionMethod('RBAC', 'removeAuthSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getAllUsersByAuthSource * @todo Implement testgetAllUsersByAuthSource(). */ - public function testgetAllUsersByAuthSource() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllUsersByAuthSource', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllUsersByAuthSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllUsersByAuthSource', $methods ), 'exists method getAllUsersByAuthSource' ); + $r = new ReflectionMethod('RBAC', 'getAllUsersByAuthSource'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::getListUsersByAuthSource * @todo Implement testgetListUsersByAuthSource(). */ - public function testgetListUsersByAuthSource() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getListUsersByAuthSource', $methods ), 'seems like this function is outside this class' ); - } + public function testgetListUsersByAuthSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getListUsersByAuthSource', $methods ), 'exists method getListUsersByAuthSource' ); + $r = new ReflectionMethod('RBAC', 'getListUsersByAuthSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aSource'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::searchUsers * @todo Implement testsearchUsers(). */ - public function testsearchUsers() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'searchUsers', $methods ), 'seems like this function is outside this class' ); - } + public function testsearchUsers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('searchUsers', $methods ), 'exists method searchUsers' ); + $r = new ReflectionMethod('RBAC', 'searchUsers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sKeyword'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RBAC::requirePermissions * @todo Implement testrequirePermissions(). */ - public function testrequirePermissions() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'requirePermissions', $methods ), 'seems like this function is outside this class' ); - } - } + public function testrequirePermissions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('requirePermissions', $methods ), 'exists method requirePermissions' ); + $r = new ReflectionMethod('RBAC', 'requirePermissions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'permissions'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers RBAC::getAllFiles - * @todo Implement testgetAllFiles(). - */ - public function testgetAllFiles() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getAllFiles', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers RBAC::getFilesTimestamp - * @todo Implement testgetFilesTimestamp(). - */ - public function testgetFilesTimestamp() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'getFilesTimestamp', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers RBAC::cleanSessionFiles * @todo Implement testcleanSessionFiles(). */ - public function testcleanSessionFiles() - { - if (class_exists('RBAC')) { - $methods = get_class_methods( 'RBAC'); - $this->assertTrue( in_array( 'cleanSessionFiles', $methods ), 'seems like this function is outside this class' ); - } + public function testcleanSessionFiles() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('cleanSessionFiles', $methods ), 'exists method cleanSessionFiles' ); + $r = new ReflectionMethod('RBAC', 'cleanSessionFiles'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'hours'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '72'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classRestClientTest.php b/tests/automated/gulliver/system/classRestClientTest.php index ad3930a58..6df78d1c7 100644 --- a/tests/automated/gulliver/system/classRestClientTest.php +++ b/tests/automated/gulliver/system/classRestClientTest.php @@ -1,277 +1,434 @@ -object = new RestClient(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 20); + } - class classRestClientTest extends PHPUnit_Framework_TestCase - { /** * @covers RestClient::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('RestClient', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::execute * @todo Implement testexecute(). */ - public function testexecute() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'execute', $methods ), 'seems like this function is outside this class' ); - } - } + public function testexecute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('execute', $methods ), 'exists method execute' ); + $r = new ReflectionMethod('RestClient', 'execute'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers RestClient::treatURL - * @todo Implement testtreatURL(). - */ - public function testtreatURL() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'treatURL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers RestClient::treatResponse - * @todo Implement testtreatResponse(). - */ - public function testtreatResponse() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'treatResponse', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers RestClient::getHeaders * @todo Implement testgetHeaders(). */ - public function testgetHeaders() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' ); - } + public function testgetHeaders() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' ); + $r = new ReflectionMethod('RestClient', 'getHeaders'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::getResponse * @todo Implement testgetResponse(). */ - public function testgetResponse() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'getResponse', $methods ), 'seems like this function is outside this class' ); - } + public function testgetResponse() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getResponse', $methods ), 'exists method getResponse' ); + $r = new ReflectionMethod('RestClient', 'getResponse'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::getResponseCode * @todo Implement testgetResponseCode(). */ - public function testgetResponseCode() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'getResponseCode', $methods ), 'seems like this function is outside this class' ); - } + public function testgetResponseCode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getResponseCode', $methods ), 'exists method getResponseCode' ); + $r = new ReflectionMethod('RestClient', 'getResponseCode'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::getResponseMessage * @todo Implement testgetResponseMessage(). */ - public function testgetResponseMessage() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'getResponseMessage', $methods ), 'seems like this function is outside this class' ); - } + public function testgetResponseMessage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getResponseMessage', $methods ), 'exists method getResponseMessage' ); + $r = new ReflectionMethod('RestClient', 'getResponseMessage'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::getResponseContentType * @todo Implement testgetResponseContentType(). */ - public function testgetResponseContentType() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'getResponseContentType', $methods ), 'seems like this function is outside this class' ); - } + public function testgetResponseContentType() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getResponseContentType', $methods ), 'exists method getResponseContentType' ); + $r = new ReflectionMethod('RestClient', 'getResponseContentType'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::setNoFollow * @todo Implement testsetNoFollow(). */ - public function testsetNoFollow() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'setNoFollow', $methods ), 'seems like this function is outside this class' ); - } + public function testsetNoFollow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setNoFollow', $methods ), 'exists method setNoFollow' ); + $r = new ReflectionMethod('RestClient', 'setNoFollow'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::close * @todo Implement testclose(). */ - public function testclose() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' ); - } + public function testclose() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('close', $methods ), 'exists method close' ); + $r = new ReflectionMethod('RestClient', 'close'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::setUrl * @todo Implement testsetUrl(). */ - public function testsetUrl() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'setUrl', $methods ), 'seems like this function is outside this class' ); - } + public function testsetUrl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setUrl', $methods ), 'exists method setUrl' ); + $r = new ReflectionMethod('RestClient', 'setUrl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::setContentType * @todo Implement testsetContentType(). */ - public function testsetContentType() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' ); - } + public function testsetContentType() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' ); + $r = new ReflectionMethod('RestClient', 'setContentType'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contentType'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::setCredentials * @todo Implement testsetCredentials(). */ - public function testsetCredentials() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'setCredentials', $methods ), 'seems like this function is outside this class' ); - } + public function testsetCredentials() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setCredentials', $methods ), 'exists method setCredentials' ); + $r = new ReflectionMethod('RestClient', 'setCredentials'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'user'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pass'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::setMethod * @todo Implement testsetMethod(). */ - public function testsetMethod() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'setMethod', $methods ), 'seems like this function is outside this class' ); - } + public function testsetMethod() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setMethod', $methods ), 'exists method setMethod' ); + $r = new ReflectionMethod('RestClient', 'setMethod'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'method'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::setParameters * @todo Implement testsetParameters(). */ - public function testsetParameters() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'setParameters', $methods ), 'seems like this function is outside this class' ); - } + public function testsetParameters() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setParameters', $methods ), 'exists method setParameters' ); + $r = new ReflectionMethod('RestClient', 'setParameters'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'params'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::createClient * @todo Implement testcreateClient(). */ - public function testcreateClient() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'createClient', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateClient() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createClient', $methods ), 'exists method createClient' ); + $r = new ReflectionMethod('RestClient', 'createClient'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::post * @todo Implement testpost(). */ - public function testpost() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'post', $methods ), 'seems like this function is outside this class' ); - } + public function testpost() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('post', $methods ), 'exists method post' ); + $r = new ReflectionMethod('RestClient', 'post'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'params'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'user'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'pwd'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'contentType'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == 'multipart/form-data'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::put * @todo Implement testput(). */ - public function testput() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'put', $methods ), 'seems like this function is outside this class' ); - } + public function testput() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('put', $methods ), 'exists method put' ); + $r = new ReflectionMethod('RestClient', 'put'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'body'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'user'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'pwd'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'contentType'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::get * @todo Implement testget(). */ - public function testget() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' ); - } + public function testget() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get', $methods ), 'exists method get' ); + $r = new ReflectionMethod('RestClient', 'get'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'user'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pwd'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'contentType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::delete * @todo Implement testdelete(). */ - public function testdelete() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' ); - } + public function testdelete() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('delete', $methods ), 'exists method delete' ); + $r = new ReflectionMethod('RestClient', 'delete'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'user'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'pwd'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'contentType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers RestClient::call * @todo Implement testcall(). */ - public function testcall() - { - if (class_exists('RestClient')) { - $methods = get_class_methods( 'RestClient'); - $this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' ); - } + public function testcall() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('call', $methods ), 'exists method call' ); + $r = new ReflectionMethod('RestClient', 'call'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'method'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'url'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'body'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'user'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'pwd'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'contentType'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classTableTest.php b/tests/automated/gulliver/system/classTableTest.php index e2a997404..34b96fa06 100644 --- a/tests/automated/gulliver/system/classTableTest.php +++ b/tests/automated/gulliver/system/classTableTest.php @@ -1,289 +1,553 @@ -object = new Table(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 23); + } - class classTableTest extends PHPUnit_Framework_TestCase - { /** * @covers Table::Table * @todo Implement testTable(). */ - public function testTable() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'Table', $methods ), 'seems like this function is outside this class' ); - } + public function testTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Table', $methods ), 'exists method Table' ); + $r = new ReflectionMethod('Table', 'Table'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'objConnection'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::SetTo * @todo Implement testSetTo(). */ - public function testSetTo() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' ); - } + public function testSetTo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' ); + $r = new ReflectionMethod('Table', 'SetTo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'objConnection'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::SetSource * @todo Implement testSetSource(). */ - public function testSetSource() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'SetSource', $methods ), 'seems like this function is outside this class' ); - } + public function testSetSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SetSource', $methods ), 'exists method SetSource' ); + $r = new ReflectionMethod('Table', 'SetSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'stQry'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'stDefaultOrder'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'UID'); + $this->assertTrue( $params[2]->getName() == 'stDefaultOrderDir'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'ASC'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::GetSource * @todo Implement testGetSource(). */ - public function testGetSource() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'GetSource', $methods ), 'seems like this function is outside this class' ); - } + public function testGetSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('GetSource', $methods ), 'exists method GetSource' ); + $r = new ReflectionMethod('Table', 'GetSource'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::TotalCount * @todo Implement testTotalCount(). */ - public function testTotalCount() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'TotalCount', $methods ), 'seems like this function is outside this class' ); - } + public function testTotalCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('TotalCount', $methods ), 'exists method TotalCount' ); + $r = new ReflectionMethod('Table', 'TotalCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::Count * @todo Implement testCount(). */ - public function testCount() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'Count', $methods ), 'seems like this function is outside this class' ); - } + public function testCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Count', $methods ), 'exists method Count' ); + $r = new ReflectionMethod('Table', 'Count'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::CurRow * @todo Implement testCurRow(). */ - public function testCurRow() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'CurRow', $methods ), 'seems like this function is outside this class' ); - } + public function testCurRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('CurRow', $methods ), 'exists method CurRow' ); + $r = new ReflectionMethod('Table', 'CurRow'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::ColumnCount * @todo Implement testColumnCount(). */ - public function testColumnCount() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'ColumnCount', $methods ), 'seems like this function is outside this class' ); - } + public function testColumnCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ColumnCount', $methods ), 'exists method ColumnCount' ); + $r = new ReflectionMethod('Table', 'ColumnCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::Read * @todo Implement testRead(). */ - public function testRead() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'Read', $methods ), 'seems like this function is outside this class' ); - } + public function testRead() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Read', $methods ), 'exists method Read' ); + $r = new ReflectionMethod('Table', 'Read'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::Seek * @todo Implement testSeek(). */ - public function testSeek() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'Seek', $methods ), 'seems like this function is outside this class' ); - } + public function testSeek() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Seek', $methods ), 'exists method Seek' ); + $r = new ReflectionMethod('Table', 'Seek'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'intPos'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::MoveFirst * @todo Implement testMoveFirst(). */ - public function testMoveFirst() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'MoveFirst', $methods ), 'seems like this function is outside this class' ); - } + public function testMoveFirst() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('MoveFirst', $methods ), 'exists method MoveFirst' ); + $r = new ReflectionMethod('Table', 'MoveFirst'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::EOF * @todo Implement testEOF(). */ - public function testEOF() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'EOF', $methods ), 'seems like this function is outside this class' ); - } + public function testEOF() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('EOF', $methods ), 'exists method EOF' ); + $r = new ReflectionMethod('Table', 'EOF'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::AddColumn * @todo Implement testAddColumn(). */ - public function testAddColumn() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'AddColumn', $methods ), 'seems like this function is outside this class' ); - } + public function testAddColumn() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddColumn', $methods ), 'exists method AddColumn' ); + $r = new ReflectionMethod('Table', 'AddColumn'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strLabel'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'strType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'text'); + $this->assertTrue( $params[2]->getName() == 'strName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'strAlign'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == 'left'); + $this->assertTrue( $params[4]->getName() == 'intWidth'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == '0'); + $this->assertTrue( $params[5]->getName() == 'strTarget'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'strContent'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::AddRawColumn * @todo Implement testAddRawColumn(). */ - public function testAddRawColumn() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'AddRawColumn', $methods ), 'seems like this function is outside this class' ); - } + public function testAddRawColumn() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddRawColumn', $methods ), 'exists method AddRawColumn' ); + $r = new ReflectionMethod('Table', 'AddRawColumn'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strType'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'text'); + $this->assertTrue( $params[1]->getName() == 'strName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'strAlign'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'left'); + $this->assertTrue( $params[3]->getName() == 'intWidth'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->assertTrue( $params[4]->getName() == 'strTarget'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'strContent'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'strExtra'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->assertTrue( $params[7]->getName() == 'strCondition'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == ''); + $this->assertTrue( $params[8]->getName() == 'orderByThis'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::RenderTitle * @todo Implement testRenderTitle(). */ - public function testRenderTitle() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'RenderTitle', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderTitle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderTitle', $methods ), 'exists method RenderTitle' ); + $r = new ReflectionMethod('Table', 'RenderTitle'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pa'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'intPos'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->assertTrue( $params[2]->getName() == 'strClass'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'tblHeader'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::RenderTitle_ajax * @todo Implement testRenderTitle_ajax(). */ - public function testRenderTitle_ajax() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'RenderTitle_ajax', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderTitle_ajax() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderTitle_ajax', $methods ), 'exists method RenderTitle_ajax' ); + $r = new ReflectionMethod('Table', 'RenderTitle_ajax'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pa'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'intPos'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->assertTrue( $params[2]->getName() == 'strClass'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'tblHeader'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::RenderTitle2 * @todo Implement testRenderTitle2(). */ - public function testRenderTitle2() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'RenderTitle2', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderTitle2() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderTitle2', $methods ), 'exists method RenderTitle2' ); + $r = new ReflectionMethod('Table', 'RenderTitle2'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pa'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fil'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'intPos'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'strClass'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == 'tblHeader'); + $this->assertTrue( $params[4]->getName() == 'auxgetval'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::RenderColumn * @todo Implement testRenderColumn(). */ - public function testRenderColumn() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'RenderColumn', $methods ), 'seems like this function is outside this class' ); - } + public function testRenderColumn() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('RenderColumn', $methods ), 'exists method RenderColumn' ); + $r = new ReflectionMethod('Table', 'RenderColumn'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'intPos'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '0'); + $this->assertTrue( $params[1]->getName() == 'strClass'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'tblCell'); + $this->assertTrue( $params[2]->getName() == 'strClassLink'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'tblCellA'); + $this->assertTrue( $params[3]->getName() == 'number'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->assertTrue( $params[4]->getName() == 'renderTD'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::SetAction * @todo Implement testSetAction(). */ - public function testSetAction() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'SetAction', $methods ), 'seems like this function is outside this class' ); - } + public function testSetAction() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SetAction', $methods ), 'exists method SetAction' ); + $r = new ReflectionMethod('Table', 'SetAction'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'strAction'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'strLabel'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Continue'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::setTranslate * @todo Implement testsetTranslate(). */ - public function testsetTranslate() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'setTranslate', $methods ), 'seems like this function is outside this class' ); - } + public function testsetTranslate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setTranslate', $methods ), 'exists method setTranslate' ); + $r = new ReflectionMethod('Table', 'setTranslate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contexto'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tabla'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'nombre'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::translateValue * @todo Implement testtranslateValue(). */ - public function testtranslateValue() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'translateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testtranslateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('translateValue', $methods ), 'exists method translateValue' ); + $r = new ReflectionMethod('Table', 'translateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contexto'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'valor'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'lang'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::setContext * @todo Implement testsetContext(). */ - public function testsetContext() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'setContext', $methods ), 'seems like this function is outside this class' ); - } + public function testsetContext() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setContext', $methods ), 'exists method setContext' ); + $r = new ReflectionMethod('Table', 'setContext'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contexto'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Table::ParsingFromHtml * @todo Implement testParsingFromHtml(). */ - public function testParsingFromHtml() - { - if (class_exists('Table')) { - $methods = get_class_methods( 'Table'); - $this->assertTrue( in_array( 'ParsingFromHtml', $methods ), 'seems like this function is outside this class' ); - } + public function testParsingFromHtml() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ParsingFromHtml', $methods ), 'exists method ParsingFromHtml' ); + $r = new ReflectionMethod('Table', 'ParsingFromHtml'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'number'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '100000000'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classTemplatePowerParserTest.php b/tests/automated/gulliver/system/classTemplatePowerParserTest.php index aa949b11d..09663346b 100644 --- a/tests/automated/gulliver/system/classTemplatePowerParserTest.php +++ b/tests/automated/gulliver/system/classTemplatePowerParserTest.php @@ -1,109 +1,195 @@ -object = new TemplatePowerParser(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 8); + } - class classTemplatePowerParserTest extends PHPUnit_Framework_TestCase - { /** * @covers TemplatePowerParser::TemplatePowerParser * @todo Implement testTemplatePowerParser(). */ - public function testTemplatePowerParser() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( 'TemplatePowerParser', $methods ), 'seems like this function is outside this class' ); - } + public function testTemplatePowerParser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('TemplatePowerParser', $methods ), 'exists method TemplatePowerParser' ); + $r = new ReflectionMethod('TemplatePowerParser', 'TemplatePowerParser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tpl_file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePowerParser::__errorAlert * @todo Implement test__errorAlert(). */ - public function test__errorAlert() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( '__errorAlert', $methods ), 'seems like this function is outside this class' ); - } + public function test__errorAlert() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__errorAlert', $methods ), 'exists method __errorAlert' ); + $r = new ReflectionMethod('TemplatePowerParser', '__errorAlert'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePowerParser::__prepare * @todo Implement test__prepare(). */ - public function test__prepare() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( '__prepare', $methods ), 'seems like this function is outside this class' ); - } + public function test__prepare() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__prepare', $methods ), 'exists method __prepare' ); + $r = new ReflectionMethod('TemplatePowerParser', '__prepare'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePowerParser::__cleanUp * @todo Implement test__cleanUp(). */ - public function test__cleanUp() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( '__cleanUp', $methods ), 'seems like this function is outside this class' ); - } + public function test__cleanUp() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__cleanUp', $methods ), 'exists method __cleanUp' ); + $r = new ReflectionMethod('TemplatePowerParser', '__cleanUp'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePowerParser::__prepareTemplate * @todo Implement test__prepareTemplate(). */ - public function test__prepareTemplate() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( '__prepareTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function test__prepareTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__prepareTemplate', $methods ), 'exists method __prepareTemplate' ); + $r = new ReflectionMethod('TemplatePowerParser', '__prepareTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tpl_file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePowerParser::__parseTemplate * @todo Implement test__parseTemplate(). */ - public function test__parseTemplate() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( '__parseTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function test__parseTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__parseTemplate', $methods ), 'exists method __parseTemplate' ); + $r = new ReflectionMethod('TemplatePowerParser', '__parseTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tplvar'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'blockname'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'initdev'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePowerParser::version * @todo Implement testversion(). */ - public function testversion() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( 'version', $methods ), 'seems like this function is outside this class' ); - } + public function testversion() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('version', $methods ), 'exists method version' ); + $r = new ReflectionMethod('TemplatePowerParser', 'version'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePowerParser::assignInclude * @todo Implement testassignInclude(). */ - public function testassignInclude() - { - if (class_exists('TemplatePowerParser')) { - $methods = get_class_methods( 'TemplatePowerParser'); - $this->assertTrue( in_array( 'assignInclude', $methods ), 'seems like this function is outside this class' ); - } + public function testassignInclude() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignInclude', $methods ), 'exists method assignInclude' ); + $r = new ReflectionMethod('TemplatePowerParser', 'assignInclude'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'iblockname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'type'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classTemplatePowerTest.php b/tests/automated/gulliver/system/classTemplatePowerTest.php index fc7c5f43a..4794e0d87 100644 --- a/tests/automated/gulliver/system/classTemplatePowerTest.php +++ b/tests/automated/gulliver/system/classTemplatePowerTest.php @@ -1,217 +1,343 @@ -object = new TemplatePower(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 25); + } - class classTemplatePowerTest extends PHPUnit_Framework_TestCase - { /** * @covers TemplatePower::TemplatePower * @todo Implement testTemplatePower(). */ - public function testTemplatePower() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'TemplatePower', $methods ), 'seems like this function is outside this class' ); - } + public function testTemplatePower() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('TemplatePower', $methods ), 'exists method TemplatePower' ); + $r = new ReflectionMethod('TemplatePower', 'TemplatePower'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tpl_file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::__deSerializeTPL * @todo Implement test__deSerializeTPL(). */ - public function test__deSerializeTPL() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( '__deSerializeTPL', $methods ), 'seems like this function is outside this class' ); - } + public function test__deSerializeTPL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__deSerializeTPL', $methods ), 'exists method __deSerializeTPL' ); + $r = new ReflectionMethod('TemplatePower', '__deSerializeTPL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'stpl_file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::__makeContentRoot * @todo Implement test__makeContentRoot(). */ - public function test__makeContentRoot() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( '__makeContentRoot', $methods ), 'seems like this function is outside this class' ); - } + public function test__makeContentRoot() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__makeContentRoot', $methods ), 'exists method __makeContentRoot' ); + $r = new ReflectionMethod('TemplatePower', '__makeContentRoot'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::__assign * @todo Implement test__assign(). */ - public function test__assign() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( '__assign', $methods ), 'seems like this function is outside this class' ); - } + public function test__assign() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__assign', $methods ), 'exists method __assign' ); + $r = new ReflectionMethod('TemplatePower', '__assign'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'varname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::__assignGlobal * @todo Implement test__assignGlobal(). */ - public function test__assignGlobal() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( '__assignGlobal', $methods ), 'seems like this function is outside this class' ); - } + public function test__assignGlobal() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__assignGlobal', $methods ), 'exists method __assignGlobal' ); + $r = new ReflectionMethod('TemplatePower', '__assignGlobal'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'varname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::__outputContent * @todo Implement test__outputContent(). */ - public function test__outputContent() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( '__outputContent', $methods ), 'seems like this function is outside this class' ); - } + public function test__outputContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__outputContent', $methods ), 'exists method __outputContent' ); + $r = new ReflectionMethod('TemplatePower', '__outputContent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'blockname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::__printVars * @todo Implement test__printVars(). */ - public function test__printVars() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( '__printVars', $methods ), 'seems like this function is outside this class' ); - } + public function test__printVars() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__printVars', $methods ), 'exists method __printVars' ); + $r = new ReflectionMethod('TemplatePower', '__printVars'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::serializedBase * @todo Implement testserializedBase(). */ - public function testserializedBase() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'serializedBase', $methods ), 'seems like this function is outside this class' ); - } + public function testserializedBase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('serializedBase', $methods ), 'exists method serializedBase' ); + $r = new ReflectionMethod('TemplatePower', 'serializedBase'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::showUnAssigned * @todo Implement testshowUnAssigned(). */ - public function testshowUnAssigned() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'showUnAssigned', $methods ), 'seems like this function is outside this class' ); - } + public function testshowUnAssigned() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('showUnAssigned', $methods ), 'exists method showUnAssigned' ); + $r = new ReflectionMethod('TemplatePower', 'showUnAssigned'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'state'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::prepare * @todo Implement testprepare(). */ - public function testprepare() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' ); - } + public function testprepare() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' ); + $r = new ReflectionMethod('TemplatePower', 'prepare'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::newBlock * @todo Implement testnewBlock(). */ - public function testnewBlock() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'newBlock', $methods ), 'seems like this function is outside this class' ); - } + public function testnewBlock() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newBlock', $methods ), 'exists method newBlock' ); + $r = new ReflectionMethod('TemplatePower', 'newBlock'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'blockname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::assignGlobal * @todo Implement testassignGlobal(). */ - public function testassignGlobal() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'assignGlobal', $methods ), 'seems like this function is outside this class' ); - } + public function testassignGlobal() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignGlobal', $methods ), 'exists method assignGlobal' ); + $r = new ReflectionMethod('TemplatePower', 'assignGlobal'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'varname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::assign * @todo Implement testassign(). */ - public function testassign() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'assign', $methods ), 'seems like this function is outside this class' ); - } + public function testassign() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assign', $methods ), 'exists method assign' ); + $r = new ReflectionMethod('TemplatePower', 'assign'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'varname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::gotoBlock * @todo Implement testgotoBlock(). */ - public function testgotoBlock() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'gotoBlock', $methods ), 'seems like this function is outside this class' ); - } + public function testgotoBlock() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('gotoBlock', $methods ), 'exists method gotoBlock' ); + $r = new ReflectionMethod('TemplatePower', 'gotoBlock'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'blockname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::getVarValue * @todo Implement testgetVarValue(). */ - public function testgetVarValue() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'getVarValue', $methods ), 'seems like this function is outside this class' ); - } + public function testgetVarValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getVarValue', $methods ), 'exists method getVarValue' ); + $r = new ReflectionMethod('TemplatePower', 'getVarValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'varname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::printToScreen * @todo Implement testprintToScreen(). */ - public function testprintToScreen() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'printToScreen', $methods ), 'seems like this function is outside this class' ); - } + public function testprintToScreen() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printToScreen', $methods ), 'exists method printToScreen' ); + $r = new ReflectionMethod('TemplatePower', 'printToScreen'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers TemplatePower::getOutputContent * @todo Implement testgetOutputContent(). */ - public function testgetOutputContent() - { - if (class_exists('TemplatePower')) { - $methods = get_class_methods( 'TemplatePower'); - $this->assertTrue( in_array( 'getOutputContent', $methods ), 'seems like this function is outside this class' ); - } + public function testgetOutputContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getOutputContent', $methods ), 'exists method getOutputContent' ); + $r = new ReflectionMethod('TemplatePower', 'getOutputContent'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classTreeTest.php b/tests/automated/gulliver/system/classTreeTest.php index 6890535cd..009831076 100644 --- a/tests/automated/gulliver/system/classTreeTest.php +++ b/tests/automated/gulliver/system/classTreeTest.php @@ -1,85 +1,147 @@ -object = new Tree(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 14); + } - class classTreeTest extends PHPUnit_Framework_TestCase - { /** * @covers Tree::Tree * @todo Implement testTree(). */ - public function testTree() - { - if (class_exists('Tree')) { - $methods = get_class_methods( 'Tree'); - $this->assertTrue( in_array( 'Tree', $methods ), 'seems like this function is outside this class' ); - } + public function testTree() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Tree', $methods ), 'exists method Tree' ); + $r = new ReflectionMethod('Tree', 'Tree'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlnode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tree::addChild * @todo Implement testaddChild(). */ - public function testaddChild() - { - if (class_exists('Tree')) { - $methods = get_class_methods( 'Tree'); - $this->assertTrue( in_array( 'addChild', $methods ), 'seems like this function is outside this class' ); - } + public function testaddChild() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addChild', $methods ), 'exists method addChild' ); + $r = new ReflectionMethod('Tree', 'addChild'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'label'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'attributes'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tree::printPlus * @todo Implement testprintPlus(). */ - public function testprintPlus() - { - if (class_exists('Tree')) { - $methods = get_class_methods( 'Tree'); - $this->assertTrue( in_array( 'printPlus', $methods ), 'seems like this function is outside this class' ); - } + public function testprintPlus() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printPlus', $methods ), 'exists method printPlus' ); + $r = new ReflectionMethod('Tree', 'printPlus'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tree::printLabel * @todo Implement testprintLabel(). */ - public function testprintLabel() - { - if (class_exists('Tree')) { - $methods = get_class_methods( 'Tree'); - $this->assertTrue( in_array( 'printLabel', $methods ), 'seems like this function is outside this class' ); - } + public function testprintLabel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printLabel', $methods ), 'exists method printLabel' ); + $r = new ReflectionMethod('Tree', 'printLabel'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tree::printContent * @todo Implement testprintContent(). */ - public function testprintContent() - { - if (class_exists('Tree')) { - $methods = get_class_methods( 'Tree'); - $this->assertTrue( in_array( 'printContent', $methods ), 'seems like this function is outside this class' ); - } + public function testprintContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printContent', $methods ), 'exists method printContent' ); + $r = new ReflectionMethod('Tree', 'printContent'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tree::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('Tree')) { - $methods = get_class_methods( 'Tree'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('Tree', 'render'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classWebResourceTest.php b/tests/automated/gulliver/system/classWebResourceTest.php index 99a6ce288..c2ded18e2 100644 --- a/tests/automated/gulliver/system/classWebResourceTest.php +++ b/tests/automated/gulliver/system/classWebResourceTest.php @@ -1,61 +1,83 @@ -object = new WebResource(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 2); + } - class classWebResourceTest extends PHPUnit_Framework_TestCase - { /** * @covers WebResource::WebResource * @todo Implement testWebResource(). */ - public function testWebResource() - { - if (class_exists('WebResource')) { - $methods = get_class_methods( 'WebResource'); - $this->assertTrue( in_array( 'WebResource', $methods ), 'seems like this function is outside this class' ); - } + public function testWebResource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('WebResource', $methods ), 'exists method WebResource' ); + $r = new ReflectionMethod('WebResource', 'WebResource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'uri'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'post'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers WebResource::_encode * @todo Implement test_encode(). */ - public function test_encode() - { - if (class_exists('WebResource')) { - $methods = get_class_methods( 'WebResource'); - $this->assertTrue( in_array( '_encode', $methods ), 'seems like this function is outside this class' ); - } - } + public function test_encode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_encode', $methods ), 'exists method _encode' ); + $r = new ReflectionMethod('WebResource', '_encode'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers WebResource::json_encode - * @todo Implement testjson_encode(). - */ - public function testjson_encode() - { - if (class_exists('WebResource')) { - $methods = get_class_methods( 'WebResource'); - $this->assertTrue( in_array( 'json_encode', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers WebResource::json_decode - * @todo Implement testjson_decode(). - */ - public function testjson_decode() - { - if (class_exists('WebResource')) { - $methods = get_class_methods( 'WebResource'); - $this->assertTrue( in_array( 'json_decode', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/gulliver/system/classXmlFormTest.php b/tests/automated/gulliver/system/classXmlFormTest.php index 1ee588304..9c5775614 100644 --- a/tests/automated/gulliver/system/classXmlFormTest.php +++ b/tests/automated/gulliver/system/classXmlFormTest.php @@ -1,61 +1,124 @@ -object = new XmlForm(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 4); + } - class classXmlFormTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm::parseFile * @todo Implement testparseFile(). */ - public function testparseFile() - { - if (class_exists('XmlForm')) { - $methods = get_class_methods( 'XmlForm'); - $this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' ); - } + public function testparseFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' ); + $r = new ReflectionMethod('XmlForm', 'parseFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'language'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'forceParse'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm::setValues * @todo Implement testsetValues(). */ - public function testsetValues() - { - if (class_exists('XmlForm')) { - $methods = get_class_methods( 'XmlForm'); - $this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' ); - } + public function testsetValues() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' ); + $r = new ReflectionMethod('XmlForm', 'setValues'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'newValues'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm')) { - $methods = get_class_methods( 'XmlForm'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'template'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'scriptContent'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm::cloneObject * @todo Implement testcloneObject(). */ - public function testcloneObject() - { - if (class_exists('XmlForm')) { - $methods = get_class_methods( 'XmlForm'); - $this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' ); - } + public function testcloneObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' ); + $r = new ReflectionMethod('XmlForm', 'cloneObject'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_FieldTest.php b/tests/automated/gulliver/system/classXmlForm_FieldTest.php index 8b6a834e4..72c7940c9 100644 --- a/tests/automated/gulliver/system/classXmlForm_FieldTest.php +++ b/tests/automated/gulliver/system/classXmlForm_FieldTest.php @@ -1,325 +1,506 @@ -object = new XmlForm_Field(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field::XmlForm_Field * @todo Implement testXmlForm_Field(). */ - public function testXmlForm_Field() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'XmlForm_Field', $methods ), 'seems like this function is outside this class' ); - } + public function testXmlForm_Field() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XmlForm_Field', $methods ), 'exists method XmlForm_Field' ); + $r = new ReflectionMethod('XmlForm_Field', 'XmlForm_Field'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'lang'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'en'); + $this->assertTrue( $params[2]->getName() == 'home'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'owner'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers XmlForm_Field::executeXmlDB - * @todo Implement testexecuteXmlDB(). - */ - public function testexecuteXmlDB() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'executeXmlDB', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers XmlForm_Field::executePropel - * @todo Implement testexecutePropel(). - */ - public function testexecutePropel() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'executePropel', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers XmlForm_Field::executeSQL * @todo Implement testexecuteSQL(). */ - public function testexecuteSQL() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'executeSQL', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteSQL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeSQL', $methods ), 'exists method executeSQL' ); + $r = new ReflectionMethod('XmlForm_Field', 'executeSQL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'owner'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'row'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::htmlentities * @todo Implement testhtmlentities(). */ - public function testhtmlentities() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'htmlentities', $methods ), 'seems like this function is outside this class' ); - } + public function testhtmlentities() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('htmlentities', $methods ), 'exists method htmlentities' ); + $r = new ReflectionMethod('XmlForm_Field', 'htmlentities'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'flags'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '3'); + $this->assertTrue( $params[2]->getName() == 'encoding'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'utf-8'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'onlyValue'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'therow'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::renderTable * @todo Implement testrenderTable(). */ - public function testrenderTable() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' ); + $r = new ReflectionMethod('XmlForm_Field', 'renderTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'onlyValue'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::dependentOf * @todo Implement testdependentOf(). */ - public function testdependentOf() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'dependentOf', $methods ), 'seems like this function is outside this class' ); - } + public function testdependentOf() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dependentOf', $methods ), 'exists method dependentOf' ); + $r = new ReflectionMethod('XmlForm_Field', 'dependentOf'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::mask * @todo Implement testmask(). */ - public function testmask() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'mask', $methods ), 'seems like this function is outside this class' ); - } + public function testmask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('mask', $methods ), 'exists method mask' ); + $r = new ReflectionMethod('XmlForm_Field', 'mask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'format'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::getAttributes * @todo Implement testgetAttributes(). */ - public function testgetAttributes() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'getAttributes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAttributes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAttributes', $methods ), 'exists method getAttributes' ); + $r = new ReflectionMethod('XmlForm_Field', 'getAttributes'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::getEvents * @todo Implement testgetEvents(). */ - public function testgetEvents() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'getEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testgetEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getEvents', $methods ), 'exists method getEvents' ); + $r = new ReflectionMethod('XmlForm_Field', 'getEvents'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::attachEvents * @todo Implement testattachEvents(). */ - public function testattachEvents() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testattachEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' ); + $r = new ReflectionMethod('XmlForm_Field', 'attachEvents'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'elementRef'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::createXmlNode * @todo Implement testcreateXmlNode(). */ - public function testcreateXmlNode() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'createXmlNode', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateXmlNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createXmlNode', $methods ), 'exists method createXmlNode' ); + $r = new ReflectionMethod('XmlForm_Field', 'createXmlNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'includeDefaultValues'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::updateXmlNode * @todo Implement testupdateXmlNode(). */ - public function testupdateXmlNode() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'updateXmlNode', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateXmlNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateXmlNode', $methods ), 'exists method updateXmlNode' ); + $r = new ReflectionMethod('XmlForm_Field', 'updateXmlNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'includeDefaultValues'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::getXmlAttributes * @todo Implement testgetXmlAttributes(). */ - public function testgetXmlAttributes() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'getXmlAttributes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetXmlAttributes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXmlAttributes', $methods ), 'exists method getXmlAttributes' ); + $r = new ReflectionMethod('XmlForm_Field', 'getXmlAttributes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'includeDefaultValues'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::maskValue * @todo Implement testmaskValue(). */ - public function testmaskValue() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); - } + public function testmaskValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' ); + $r = new ReflectionMethod('XmlForm_Field', 'maskValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::cloneObject * @todo Implement testcloneObject(). */ - public function testcloneObject() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' ); - } + public function testcloneObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' ); + $r = new ReflectionMethod('XmlForm_Field', 'cloneObject'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::getPMTableValue * @todo Implement testgetPMTableValue(). */ - public function testgetPMTableValue() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'getPMTableValue', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPMTableValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPMTableValue', $methods ), 'exists method getPMTableValue' ); + $r = new ReflectionMethod('XmlForm_Field', 'getPMTableValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oOwner'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::NSRequiredValue * @todo Implement testNSRequiredValue(). */ - public function testNSRequiredValue() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'NSRequiredValue', $methods ), 'seems like this function is outside this class' ); - } + public function testNSRequiredValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('NSRequiredValue', $methods ), 'exists method NSRequiredValue' ); + $r = new ReflectionMethod('XmlForm_Field', 'NSRequiredValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'show'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::NSGridLabel * @todo Implement testNSGridLabel(). */ - public function testNSGridLabel() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'NSGridLabel', $methods ), 'seems like this function is outside this class' ); - } + public function testNSGridLabel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('NSGridLabel', $methods ), 'exists method NSGridLabel' ); + $r = new ReflectionMethod('XmlForm_Field', 'NSGridLabel'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'show'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::NSDefaultValue * @todo Implement testNSDefaultValue(). */ - public function testNSDefaultValue() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'NSDefaultValue', $methods ), 'seems like this function is outside this class' ); - } + public function testNSDefaultValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('NSDefaultValue', $methods ), 'exists method NSDefaultValue' ); + $r = new ReflectionMethod('XmlForm_Field', 'NSDefaultValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'show'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::NSGridType * @todo Implement testNSGridType(). */ - public function testNSGridType() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'NSGridType', $methods ), 'seems like this function is outside this class' ); - } + public function testNSGridType() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('NSGridType', $methods ), 'exists method NSGridType' ); + $r = new ReflectionMethod('XmlForm_Field', 'NSGridType'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'show'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::NSDependentFields * @todo Implement testNSDependentFields(). */ - public function testNSDependentFields() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'NSDependentFields', $methods ), 'seems like this function is outside this class' ); - } + public function testNSDependentFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('NSDependentFields', $methods ), 'exists method NSDependentFields' ); + $r = new ReflectionMethod('XmlForm_Field', 'NSDependentFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'show'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field::renderHint * @todo Implement testrenderHint(). */ - public function testrenderHint() - { - if (class_exists('XmlForm_Field')) { - $methods = get_class_methods( 'XmlForm_Field'); - $this->assertTrue( in_array( 'renderHint', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderHint() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderHint', $methods ), 'exists method renderHint' ); + $r = new ReflectionMethod('XmlForm_Field', 'renderHint'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_ButtonTest.php b/tests/automated/gulliver/system/classXmlForm_Field_ButtonTest.php index e7bb9e305..524b7ba0c 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_ButtonTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_ButtonTest.php @@ -1,25 +1,71 @@ -object = new XmlForm_Field_Button(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Button::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Button')) { - $methods = get_class_methods( 'XmlForm_Field_Button'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Button', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CaptionCurrencyTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CaptionCurrencyTest.php index 96b268101..603f0ed33 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CaptionCurrencyTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CaptionCurrencyTest.php @@ -1,25 +1,67 @@ -object = new XmlForm_Field_CaptionCurrency(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_CaptionCurrency::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_CaptionCurrency')) { - $methods = get_class_methods( 'XmlForm_Field_CaptionCurrency'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_CaptionCurrency', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CaptionPercentageTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CaptionPercentageTest.php index 51b6caba0..9c2b842ff 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CaptionPercentageTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CaptionPercentageTest.php @@ -1,25 +1,67 @@ -object = new XmlForm_Field_CaptionPercentage(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_CaptionPercentage::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_CaptionPercentage')) { - $methods = get_class_methods( 'XmlForm_Field_CaptionPercentage'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_CaptionPercentage', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CaptionTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CaptionTest.php index 4e64212a3..ff3b0e177 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CaptionTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CaptionTest.php @@ -1,37 +1,107 @@ -object = new XmlForm_Field_Caption(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Caption::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field_Caption')) { - $methods = get_class_methods( 'XmlForm_Field_Caption'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field_Caption', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Caption::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Caption')) { - $methods = get_class_methods( 'XmlForm_Field_Caption'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Caption', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'rowId'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'onlyValue'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'row'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == '-1'); + $this->assertTrue( $params[5]->getName() == 'therow'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupTest.php index 6acc6c719..02a6a897b 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupTest.php @@ -1,25 +1,71 @@ -object = new XmlForm_Field_CheckGroup(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_CheckGroup::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_CheckGroup')) { - $methods = get_class_methods( 'XmlForm_Field_CheckGroup'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_CheckGroup', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupViewTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupViewTest.php index 2c8826fd0..bd3247409 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupViewTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CheckGroupViewTest.php @@ -1,25 +1,67 @@ -object = new XmlForm_Field_CheckGroupView(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_CheckGroupView::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_CheckGroupView')) { - $methods = get_class_methods( 'XmlForm_Field_CheckGroupView'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_CheckGroupView', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_Checkbox2Test.php b/tests/automated/gulliver/system/classXmlForm_Field_Checkbox2Test.php index 364beea80..6accaa57d 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_Checkbox2Test.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_Checkbox2Test.php @@ -1,25 +1,67 @@ -object = new XmlForm_Field_Checkbox2(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Checkbox2::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Checkbox2')) { - $methods = get_class_methods( 'XmlForm_Field_Checkbox2'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Checkbox2', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CheckboxTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CheckboxTest.php index 6e9e71dc7..7c33308d3 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CheckboxTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CheckboxTest.php @@ -1,49 +1,111 @@ -object = new XmlForm_Field_Checkbox(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Checkbox::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Checkbox')) { - $methods = get_class_methods( 'XmlForm_Field_Checkbox'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Checkbox', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Checkbox::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Checkbox')) { - $methods = get_class_methods( 'XmlForm_Field_Checkbox'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Checkbox', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Checkbox::maskValue * @todo Implement testmaskValue(). */ - public function testmaskValue() - { - if (class_exists('XmlForm_Field_Checkbox')) { - $methods = get_class_methods( 'XmlForm_Field_Checkbox'); - $this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); - } + public function testmaskValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' ); + $r = new ReflectionMethod('XmlForm_Field_Checkbox', 'maskValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CheckboxptTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CheckboxptTest.php index 588ad6b35..94333acb4 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CheckboxptTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CheckboxptTest.php @@ -1,49 +1,111 @@ -object = new XmlForm_Field_Checkboxpt(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Checkboxpt::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Checkboxpt')) { - $methods = get_class_methods( 'XmlForm_Field_Checkboxpt'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Checkboxpt::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Checkboxpt')) { - $methods = get_class_methods( 'XmlForm_Field_Checkboxpt'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Checkboxpt::maskValue * @todo Implement testmaskValue(). */ - public function testmaskValue() - { - if (class_exists('XmlForm_Field_Checkboxpt')) { - $methods = get_class_methods( 'XmlForm_Field_Checkboxpt'); - $this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); - } + public function testmaskValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' ); + $r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'maskValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_CurrencyTest.php b/tests/automated/gulliver/system/classXmlForm_Field_CurrencyTest.php index ca5829c55..083197406 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_CurrencyTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_CurrencyTest.php @@ -1,37 +1,91 @@ -object = new XmlForm_Field_Currency(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Currency::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Currency')) { - $methods = get_class_methods( 'XmlForm_Field_Currency'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Currency', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Currency::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Currency')) { - $methods = get_class_methods( 'XmlForm_Field_Currency'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Currency', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_DVEditorTest.php b/tests/automated/gulliver/system/classXmlForm_Field_DVEditorTest.php index a97b5ebe3..5cbf1b3f3 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_DVEditorTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_DVEditorTest.php @@ -1,37 +1,87 @@ -object = new XmlForm_Field_DVEditor(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_DVEditor::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_DVEditor')) { - $methods = get_class_methods( 'XmlForm_Field_DVEditor'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_DVEditor', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_DVEditor::attachEvents * @todo Implement testattachEvents(). */ - public function testattachEvents() - { - if (class_exists('XmlForm_Field_DVEditor')) { - $methods = get_class_methods( 'XmlForm_Field_DVEditor'); - $this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testattachEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' ); + $r = new ReflectionMethod('XmlForm_Field_DVEditor', 'attachEvents'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'element'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_Date2Test.php b/tests/automated/gulliver/system/classXmlForm_Field_Date2Test.php index 9dcc07cb0..1fec40afb 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_Date2Test.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_Date2Test.php @@ -1,73 +1,151 @@ -object = new XmlForm_Field_Date2(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 27); + } - class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Date2::verifyDateFormat * @todo Implement testverifyDateFormat(). */ - public function testverifyDateFormat() - { - if (class_exists('XmlForm_Field_Date2')) { - $methods = get_class_methods( 'XmlForm_Field_Date2'); - $this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyDateFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date2', 'verifyDateFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date2::isvalidBeforeFormat * @todo Implement testisvalidBeforeFormat(). */ - public function testisvalidBeforeFormat() - { - if (class_exists('XmlForm_Field_Date2')) { - $methods = get_class_methods( 'XmlForm_Field_Date2'); - $this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testisvalidBeforeFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date2', 'isvalidBeforeFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date2::calculateBeforeFormat * @todo Implement testcalculateBeforeFormat(). */ - public function testcalculateBeforeFormat() - { - if (class_exists('XmlForm_Field_Date2')) { - $methods = get_class_methods( 'XmlForm_Field_Date2'); - $this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testcalculateBeforeFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date2', 'calculateBeforeFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sign'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date2::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Date2')) { - $methods = get_class_methods( 'XmlForm_Field_Date2'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Date2', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date2::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Date2')) { - $methods = get_class_methods( 'XmlForm_Field_Date2'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Date2', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'onlyValue'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_Date5Test.php b/tests/automated/gulliver/system/classXmlForm_Field_Date5Test.php index ae1df0b53..a1581cb78 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_Date5Test.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_Date5Test.php @@ -1,97 +1,199 @@ -object = new XmlForm_Field_Date5(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 29); + } - class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Date5::verifyDateFormat * @todo Implement testverifyDateFormat(). */ - public function testverifyDateFormat() - { - if (class_exists('XmlForm_Field_Date5')) { - $methods = get_class_methods( 'XmlForm_Field_Date5'); - $this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyDateFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date5', 'verifyDateFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'mask'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date5::isvalidBeforeFormat * @todo Implement testisvalidBeforeFormat(). */ - public function testisvalidBeforeFormat() - { - if (class_exists('XmlForm_Field_Date5')) { - $methods = get_class_methods( 'XmlForm_Field_Date5'); - $this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testisvalidBeforeFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date5', 'isvalidBeforeFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date5::calculateBeforeFormat * @todo Implement testcalculateBeforeFormat(). */ - public function testcalculateBeforeFormat() - { - if (class_exists('XmlForm_Field_Date5')) { - $methods = get_class_methods( 'XmlForm_Field_Date5'); - $this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testcalculateBeforeFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date5', 'calculateBeforeFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sign'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date5::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Date5')) { - $methods = get_class_methods( 'XmlForm_Field_Date5'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Date5', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date5::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Date5')) { - $methods = get_class_methods( 'XmlForm_Field_Date5'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Date5', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'onlyValue'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date5::__draw_widget * @todo Implement test__draw_widget(). */ - public function test__draw_widget() - { - if (class_exists('XmlForm_Field_Date5')) { - $methods = get_class_methods( 'XmlForm_Field_Date5'); - $this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' ); - } + public function test__draw_widget() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' ); + $r = new ReflectionMethod('XmlForm_Field_Date5', '__draw_widget'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'owner'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date5::getSplitDate * @todo Implement testgetSplitDate(). */ - public function testgetSplitDate() - { - if (class_exists('XmlForm_Field_Date5')) { - $methods = get_class_methods( 'XmlForm_Field_Date5'); - $this->assertTrue( in_array( 'getSplitDate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSplitDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSplitDate', $methods ), 'exists method getSplitDate' ); + $r = new ReflectionMethod('XmlForm_Field_Date5', 'getSplitDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'mask'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_DateTest.php b/tests/automated/gulliver/system/classXmlForm_Field_DateTest.php index 164c5c4e6..307c24a5e 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_DateTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_DateTest.php @@ -1,85 +1,175 @@ -object = new XmlForm_Field_Date(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 28); + } - class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Date::verifyDateFormat * @todo Implement testverifyDateFormat(). */ - public function testverifyDateFormat() - { - if (class_exists('XmlForm_Field_Date')) { - $methods = get_class_methods( 'XmlForm_Field_Date'); - $this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyDateFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date', 'verifyDateFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date::isvalidBeforeFormat * @todo Implement testisvalidBeforeFormat(). */ - public function testisvalidBeforeFormat() - { - if (class_exists('XmlForm_Field_Date')) { - $methods = get_class_methods( 'XmlForm_Field_Date'); - $this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testisvalidBeforeFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date', 'isvalidBeforeFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date::calculateBeforeFormat * @todo Implement testcalculateBeforeFormat(). */ - public function testcalculateBeforeFormat() - { - if (class_exists('XmlForm_Field_Date')) { - $methods = get_class_methods( 'XmlForm_Field_Date'); - $this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testcalculateBeforeFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' ); + $r = new ReflectionMethod('XmlForm_Field_Date', 'calculateBeforeFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sign'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Date')) { - $methods = get_class_methods( 'XmlForm_Field_Date'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Date', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Date')) { - $methods = get_class_methods( 'XmlForm_Field_Date'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Date', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'onlyValue'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Date::__draw_widget * @todo Implement test__draw_widget(). */ - public function test__draw_widget() - { - if (class_exists('XmlForm_Field_Date')) { - $methods = get_class_methods( 'XmlForm_Field_Date'); - $this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' ); - } + public function test__draw_widget() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' ); + $r = new ReflectionMethod('XmlForm_Field_Date', '__draw_widget'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'owner'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_DateViewTest.php b/tests/automated/gulliver/system/classXmlForm_Field_DateViewTest.php index 3ccc2ec55..2224414a0 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_DateViewTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_DateViewTest.php @@ -1,25 +1,67 @@ -object = new XmlForm_Field_DateView(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_DateViewTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_DateView::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_DateView')) { - $methods = get_class_methods( 'XmlForm_Field_DateView'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_DateView', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_DropdownTest.php b/tests/automated/gulliver/system/classXmlForm_Field_DropdownTest.php index 5203990a6..887a74614 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_DropdownTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_DropdownTest.php @@ -1,49 +1,137 @@ -object = new XmlForm_Field_Dropdown(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Dropdown::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field_Dropdown')) { - $methods = get_class_methods( 'XmlForm_Field_Dropdown'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field_Dropdown', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Dropdown::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Dropdown')) { - $methods = get_class_methods( 'XmlForm_Field_Dropdown'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Dropdown', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'rowId'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'onlyValue'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'row'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == '-1'); + $this->assertTrue( $params[5]->getName() == 'therow'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Dropdown::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Dropdown')) { - $methods = get_class_methods( 'XmlForm_Field_Dropdown'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Dropdown', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'onlyValue'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'therow'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_DropdownptTest.php b/tests/automated/gulliver/system/classXmlForm_Field_DropdownptTest.php index ad622cf00..ed2e6b600 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_DropdownptTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_DropdownptTest.php @@ -1,37 +1,91 @@ -object = new XmlForm_Field_Dropdownpt(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Dropdownpt::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Dropdownpt')) { - $methods = get_class_methods( 'XmlForm_Field_Dropdownpt'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Dropdownpt', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Dropdownpt::maskValue * @todo Implement testmaskValue(). */ - public function testmaskValue() - { - if (class_exists('XmlForm_Field_Dropdownpt')) { - $methods = get_class_methods( 'XmlForm_Field_Dropdownpt'); - $this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); - } + public function testmaskValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' ); + $r = new ReflectionMethod('XmlForm_Field_Dropdownpt', 'maskValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_FastSearchTest.php b/tests/automated/gulliver/system/classXmlForm_Field_FastSearchTest.php index 9b02677f4..b769b0025 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_FastSearchTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_FastSearchTest.php @@ -1,13 +1,49 @@ -object = new XmlForm_Field_FastSearch(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_FastSearchTest extends PHPUnit_Framework_TestCase - { } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_FileTest.php b/tests/automated/gulliver/system/classXmlForm_Field_FileTest.php index e94b6f91b..1eee2f934 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_FileTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_FileTest.php @@ -1,25 +1,67 @@ -object = new XmlForm_Field_File(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_FileTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_File::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_File')) { - $methods = get_class_methods( 'XmlForm_Field_File'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_File', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_GridTest.php b/tests/automated/gulliver/system/classXmlForm_Field_GridTest.php index ddc62ddd5..85e83822b 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_GridTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_GridTest.php @@ -1,73 +1,155 @@ -object = new XmlForm_Field_Grid(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 27); + } - class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Grid::XmlForm_Field_Grid * @todo Implement testXmlForm_Field_Grid(). */ - public function testXmlForm_Field_Grid() - { - if (class_exists('XmlForm_Field_Grid')) { - $methods = get_class_methods( 'XmlForm_Field_Grid'); - $this->assertTrue( in_array( 'XmlForm_Field_Grid', $methods ), 'seems like this function is outside this class' ); - } + public function testXmlForm_Field_Grid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XmlForm_Field_Grid', $methods ), 'exists method XmlForm_Field_Grid' ); + $r = new ReflectionMethod('XmlForm_Field_Grid', 'XmlForm_Field_Grid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlnode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'language'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'home'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Grid::parseFile * @todo Implement testparseFile(). */ - public function testparseFile() - { - if (class_exists('XmlForm_Field_Grid')) { - $methods = get_class_methods( 'XmlForm_Field_Grid'); - $this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' ); - } + public function testparseFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' ); + $r = new ReflectionMethod('XmlForm_Field_Grid', 'parseFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'home'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'language'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Grid::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Grid')) { - $methods = get_class_methods( 'XmlForm_Field_Grid'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Grid', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Grid::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Grid')) { - $methods = get_class_methods( 'XmlForm_Field_Grid'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Grid', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'therow'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Grid::flipValues * @todo Implement testflipValues(). */ - public function testflipValues() - { - if (class_exists('XmlForm_Field_Grid')) { - $methods = get_class_methods( 'XmlForm_Field_Grid'); - $this->assertTrue( in_array( 'flipValues', $methods ), 'seems like this function is outside this class' ); - } + public function testflipValues() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('flipValues', $methods ), 'exists method flipValues' ); + $r = new ReflectionMethod('XmlForm_Field_Grid', 'flipValues'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_HTMLTest.php b/tests/automated/gulliver/system/classXmlForm_Field_HTMLTest.php index 2a090229c..726d540fe 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_HTMLTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_HTMLTest.php @@ -1,25 +1,87 @@ -object = new XmlForm_Field_HTML(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } + + /** + * @covers XmlForm_Field_HTML::render + * @todo Implement testrender(). + */ + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_HTML', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + + } - class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_HTML::attachEvents * @todo Implement testattachEvents(). */ - public function testattachEvents() - { - if (class_exists('XmlForm_Field_HTML')) { - $methods = get_class_methods( 'XmlForm_Field_HTML'); - $this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testattachEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' ); + $r = new ReflectionMethod('XmlForm_Field_HTML', 'attachEvents'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'element'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_HiddenTest.php b/tests/automated/gulliver/system/classXmlForm_Field_HiddenTest.php index 114597fc7..c8087f685 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_HiddenTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_HiddenTest.php @@ -1,49 +1,109 @@ -object = new XmlForm_Field_Hidden(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Hidden::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Hidden')) { - $methods = get_class_methods( 'XmlForm_Field_Hidden'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Hidden', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Hidden::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Hidden')) { - $methods = get_class_methods( 'XmlForm_Field_Hidden'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Hidden', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Hidden::renderTable * @todo Implement testrenderTable(). */ - public function testrenderTable() - { - if (class_exists('XmlForm_Field_Hidden')) { - $methods = get_class_methods( 'XmlForm_Field_Hidden'); - $this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' ); + $r = new ReflectionMethod('XmlForm_Field_Hidden', 'renderTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_ImageTest.php b/tests/automated/gulliver/system/classXmlForm_Field_ImageTest.php index 3e02fbe23..ef16a4257 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_ImageTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_ImageTest.php @@ -1,37 +1,70 @@ -object = new XmlForm_Field_Image(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_ImageTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Image::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Image')) { - $methods = get_class_methods( 'XmlForm_Field_Image'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Image', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers XmlForm_Field_Image::masktophp - * @todo Implement testmasktophp(). - */ - public function testmasktophp() - { - if (class_exists('XmlForm_Field_Image')) { - $methods = get_class_methods( 'XmlForm_Field_Image'); - $this->assertTrue( in_array( 'masktophp', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_JavaScriptTest.php b/tests/automated/gulliver/system/classXmlForm_Field_JavaScriptTest.php index 8e212e96d..0c3467d73 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_JavaScriptTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_JavaScriptTest.php @@ -1,61 +1,133 @@ -object = new XmlForm_Field_JavaScript(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 25); + } - class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_JavaScript::XmlForm_Field_JavaScript * @todo Implement testXmlForm_Field_JavaScript(). */ - public function testXmlForm_Field_JavaScript() - { - if (class_exists('XmlForm_Field_JavaScript')) { - $methods = get_class_methods( 'XmlForm_Field_JavaScript'); - $this->assertTrue( in_array( 'XmlForm_Field_JavaScript', $methods ), 'seems like this function is outside this class' ); - } + public function testXmlForm_Field_JavaScript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XmlForm_Field_JavaScript', $methods ), 'exists method XmlForm_Field_JavaScript' ); + $r = new ReflectionMethod('XmlForm_Field_JavaScript', 'XmlForm_Field_JavaScript'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'lang'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'en'); + $this->assertTrue( $params[2]->getName() == 'home'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_JavaScript::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_JavaScript')) { - $methods = get_class_methods( 'XmlForm_Field_JavaScript'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_JavaScript', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_JavaScript::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_JavaScript')) { - $methods = get_class_methods( 'XmlForm_Field_JavaScript'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_JavaScript', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_JavaScript::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field_JavaScript')) { - $methods = get_class_methods( 'XmlForm_Field_JavaScript'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field_JavaScript', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_LabelTest.php b/tests/automated/gulliver/system/classXmlForm_Field_LabelTest.php index e96e9605d..a545ff202 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_LabelTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_LabelTest.php @@ -1,13 +1,49 @@ -object = new XmlForm_Field_Label(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_LabelTest extends PHPUnit_Framework_TestCase - { } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_LinkTest.php b/tests/automated/gulliver/system/classXmlForm_Field_LinkTest.php index 38b089569..20fff2bf6 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_LinkTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_LinkTest.php @@ -1,49 +1,115 @@ -object = new XmlForm_Field_Link(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Link::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Link')) { - $methods = get_class_methods( 'XmlForm_Field_Link'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Link', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Link::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Link')) { - $methods = get_class_methods( 'XmlForm_Field_Link'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Link', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Link::renderTable * @todo Implement testrenderTable(). */ - public function testrenderTable() - { - if (class_exists('XmlForm_Field_Link')) { - $methods = get_class_methods( 'XmlForm_Field_Link'); - $this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' ); + $r = new ReflectionMethod('XmlForm_Field_Link', 'renderTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_ListboxTest.php b/tests/automated/gulliver/system/classXmlForm_Field_ListboxTest.php index 19e69f983..ec63f0591 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_ListboxTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_ListboxTest.php @@ -1,49 +1,113 @@ -object = new XmlForm_Field_Listbox(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Listbox::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field_Listbox')) { - $methods = get_class_methods( 'XmlForm_Field_Listbox'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field_Listbox', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Listbox::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Listbox')) { - $methods = get_class_methods( 'XmlForm_Field_Listbox'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Listbox', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Listbox::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Listbox')) { - $methods = get_class_methods( 'XmlForm_Field_Listbox'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Listbox', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_PasswordTest.php b/tests/automated/gulliver/system/classXmlForm_Field_PasswordTest.php index d0415424c..2c179b4b9 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_PasswordTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_PasswordTest.php @@ -1,25 +1,67 @@ -object = new XmlForm_Field_Password(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_PasswordTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Password::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Password')) { - $methods = get_class_methods( 'XmlForm_Field_Password'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Password', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_PercentageTest.php b/tests/automated/gulliver/system/classXmlForm_Field_PercentageTest.php index ba1950775..61d0d777c 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_PercentageTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_PercentageTest.php @@ -1,25 +1,71 @@ -object = new XmlForm_Field_Percentage(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_PercentageTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Percentage::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Percentage')) { - $methods = get_class_methods( 'XmlForm_Field_Percentage'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Percentage', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_PrintTest.php b/tests/automated/gulliver/system/classXmlForm_Field_PrintTest.php index 9678c6a7b..cd301b096 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_PrintTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_PrintTest.php @@ -1,25 +1,71 @@ -object = new XmlForm_Field_Print(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_PrintTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Print::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Print')) { - $methods = get_class_methods( 'XmlForm_Field_Print'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Print', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupTest.php b/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupTest.php index cd94b8243..074040fef 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupTest.php @@ -1,37 +1,89 @@ -object = new XmlForm_Field_RadioGroup(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_RadioGroupTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_RadioGroup::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field_RadioGroup')) { - $methods = get_class_methods( 'XmlForm_Field_RadioGroup'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field_RadioGroup', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_RadioGroup::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_RadioGroup')) { - $methods = get_class_methods( 'XmlForm_Field_RadioGroup'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_RadioGroup', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupViewTest.php b/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupViewTest.php index a30871d64..c936e8793 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupViewTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_RadioGroupViewTest.php @@ -1,25 +1,71 @@ -object = new XmlForm_Field_RadioGroupView(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_RadioGroupViewTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_RadioGroupView::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_RadioGroupView')) { - $methods = get_class_methods( 'XmlForm_Field_RadioGroupView'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_RadioGroupView', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_ResetTest.php b/tests/automated/gulliver/system/classXmlForm_Field_ResetTest.php index 375009bc2..2c1d5b26d 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_ResetTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_ResetTest.php @@ -1,25 +1,69 @@ -object = new XmlForm_Field_Reset(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_ResetTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Reset::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Reset')) { - $methods = get_class_methods( 'XmlForm_Field_Reset'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Reset', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_SimpleTextTest.php b/tests/automated/gulliver/system/classXmlForm_Field_SimpleTextTest.php index 161d26081..b191fda9b 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_SimpleTextTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_SimpleTextTest.php @@ -1,37 +1,89 @@ -object = new XmlForm_Field_SimpleText(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_SimpleTextTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_SimpleText::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_SimpleText')) { - $methods = get_class_methods( 'XmlForm_Field_SimpleText'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_SimpleText', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_SimpleText::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_SimpleText')) { - $methods = get_class_methods( 'XmlForm_Field_SimpleText'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_SimpleText', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_SubmitTest.php b/tests/automated/gulliver/system/classXmlForm_Field_SubmitTest.php index 16714d934..cd4f2acc4 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_SubmitTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_SubmitTest.php @@ -1,25 +1,69 @@ -object = new XmlForm_Field_Submit(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_SubmitTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Submit::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Submit')) { - $methods = get_class_methods( 'XmlForm_Field_Submit'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Submit', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_SubtitleTest.php b/tests/automated/gulliver/system/classXmlForm_Field_SubtitleTest.php index a835d64c0..c0a8f6a59 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_SubtitleTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_SubtitleTest.php @@ -1,37 +1,84 @@ -object = new XmlForm_Field_Subtitle(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_SubtitleTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Subtitle::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Subtitle')) { - $methods = get_class_methods( 'XmlForm_Field_Subtitle'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Subtitle', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Subtitle::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field_Subtitle')) { - $methods = get_class_methods( 'XmlForm_Field_Subtitle'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field_Subtitle', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_SuggestTest.php b/tests/automated/gulliver/system/classXmlForm_Field_SuggestTest.php index a98358be4..c8be250af 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_SuggestTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_SuggestTest.php @@ -1,49 +1,111 @@ -object = new XmlForm_Field_Suggest(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_SuggestTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Suggest::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Suggest')) { - $methods = get_class_methods( 'XmlForm_Field_Suggest'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Suggest', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Suggest::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Suggest')) { - $methods = get_class_methods( 'XmlForm_Field_Suggest'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Suggest', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Suggest::renderTable * @todo Implement testrenderTable(). */ - public function testrenderTable() - { - if (class_exists('XmlForm_Field_Suggest')) { - $methods = get_class_methods( 'XmlForm_Field_Suggest'); - $this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' ); + $r = new ReflectionMethod('XmlForm_Field_Suggest', 'renderTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_TextTest.php b/tests/automated/gulliver/system/classXmlForm_Field_TextTest.php index 8b030d20e..9a1a925df 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_TextTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_TextTest.php @@ -1,49 +1,111 @@ -object = new XmlForm_Field_Text(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_TextTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Text::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Text')) { - $methods = get_class_methods( 'XmlForm_Field_Text'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Text', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Text::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Text')) { - $methods = get_class_methods( 'XmlForm_Field_Text'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Text', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Text::renderTable * @todo Implement testrenderTable(). */ - public function testrenderTable() - { - if (class_exists('XmlForm_Field_Text')) { - $methods = get_class_methods( 'XmlForm_Field_Text'); - $this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' ); + $r = new ReflectionMethod('XmlForm_Field_Text', 'renderTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_TextareaTest.php b/tests/automated/gulliver/system/classXmlForm_Field_TextareaTest.php index d50775579..2b9a3fa8a 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_TextareaTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_TextareaTest.php @@ -1,37 +1,89 @@ -object = new XmlForm_Field_Textarea(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_TextareaTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Textarea::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Textarea')) { - $methods = get_class_methods( 'XmlForm_Field_Textarea'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Textarea', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Textarea::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_Textarea')) { - $methods = get_class_methods( 'XmlForm_Field_Textarea'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_Textarea', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_TitleTest.php b/tests/automated/gulliver/system/classXmlForm_Field_TitleTest.php index 17e34ce41..acf439510 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_TitleTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_TitleTest.php @@ -1,37 +1,86 @@ -object = new XmlForm_Field_Title(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_TitleTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Title::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Title')) { - $methods = get_class_methods( 'XmlForm_Field_Title'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Title', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Title::validateValue * @todo Implement testvalidateValue(). */ - public function testvalidateValue() - { - if (class_exists('XmlForm_Field_Title')) { - $methods = get_class_methods( 'XmlForm_Field_Title'); - $this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidateValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' ); + $r = new ReflectionMethod('XmlForm_Field_Title', 'validateValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_XmlMenuTest.php b/tests/automated/gulliver/system/classXmlForm_Field_XmlMenuTest.php index 882d4fc98..b427082a1 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_XmlMenuTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_XmlMenuTest.php @@ -1,49 +1,109 @@ -object = new XmlForm_Field_XmlMenu(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 25); + } - class classXmlForm_Field_XmlMenuTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_XmlMenu::XmlForm_Field_XmlMenu * @todo Implement testXmlForm_Field_XmlMenu(). */ - public function testXmlForm_Field_XmlMenu() - { - if (class_exists('XmlForm_Field_XmlMenu')) { - $methods = get_class_methods( 'XmlForm_Field_XmlMenu'); - $this->assertTrue( in_array( 'XmlForm_Field_XmlMenu', $methods ), 'seems like this function is outside this class' ); - } + public function testXmlForm_Field_XmlMenu() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XmlForm_Field_XmlMenu', $methods ), 'exists method XmlForm_Field_XmlMenu' ); + $r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'XmlForm_Field_XmlMenu'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'lang'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'home'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'owner'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_XmlMenu::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_XmlMenu')) { - $methods = get_class_methods( 'XmlForm_Field_XmlMenu'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_XmlMenu::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_XmlMenu')) { - $methods = get_class_methods( 'XmlForm_Field_XmlMenu'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_XmlformTest.php b/tests/automated/gulliver/system/classXmlForm_Field_XmlformTest.php index 59093c1a5..f152cf4b1 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_XmlformTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_XmlformTest.php @@ -1,49 +1,109 @@ -object = new XmlForm_Field_Xmlform(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 26); + } - class classXmlForm_Field_XmlformTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_Xmlform::XmlForm_Field_Xmlform * @todo Implement testXmlForm_Field_Xmlform(). */ - public function testXmlForm_Field_Xmlform() - { - if (class_exists('XmlForm_Field_Xmlform')) { - $methods = get_class_methods( 'XmlForm_Field_Xmlform'); - $this->assertTrue( in_array( 'XmlForm_Field_Xmlform', $methods ), 'seems like this function is outside this class' ); - } + public function testXmlForm_Field_Xmlform() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XmlForm_Field_Xmlform', $methods ), 'exists method XmlForm_Field_Xmlform' ); + $r = new ReflectionMethod('XmlForm_Field_Xmlform', 'XmlForm_Field_Xmlform'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlnode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'language'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'home'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Xmlform::parseFile * @todo Implement testparseFile(). */ - public function testparseFile() - { - if (class_exists('XmlForm_Field_Xmlform')) { - $methods = get_class_methods( 'XmlForm_Field_Xmlform'); - $this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' ); - } + public function testparseFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' ); + $r = new ReflectionMethod('XmlForm_Field_Xmlform', 'parseFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'home'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'language'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_Xmlform::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_Xmlform')) { - $methods = get_class_methods( 'XmlForm_Field_Xmlform'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_Xmlform', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_YesNoTest.php b/tests/automated/gulliver/system/classXmlForm_Field_YesNoTest.php index f3981c31f..15ce31e0f 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_YesNoTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_YesNoTest.php @@ -1,37 +1,91 @@ -object = new XmlForm_Field_YesNo(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_YesNoTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_YesNo::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_YesNo')) { - $methods = get_class_methods( 'XmlForm_Field_YesNo'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_YesNo', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_YesNo::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_YesNo')) { - $methods = get_class_methods( 'XmlForm_Field_YesNo'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_YesNo', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXmlForm_Field_cellMarkTest.php b/tests/automated/gulliver/system/classXmlForm_Field_cellMarkTest.php index 50e5dd3cb..c992bc056 100644 --- a/tests/automated/gulliver/system/classXmlForm_Field_cellMarkTest.php +++ b/tests/automated/gulliver/system/classXmlForm_Field_cellMarkTest.php @@ -1,37 +1,89 @@ -object = new XmlForm_Field_cellMark(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 26); + } - class classXmlForm_Field_cellMarkTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_cellMark::tdStyle * @todo Implement testtdStyle(). */ - public function testtdStyle() - { - if (class_exists('XmlForm_Field_cellMark')) { - $methods = get_class_methods( 'XmlForm_Field_cellMark'); - $this->assertTrue( in_array( 'tdStyle', $methods ), 'seems like this function is outside this class' ); - } + public function testtdStyle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('tdStyle', $methods ), 'exists method tdStyle' ); + $r = new ReflectionMethod('XmlForm_Field_cellMark', 'tdStyle'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_cellMark::tdClass * @todo Implement testtdClass(). */ - public function testtdClass() - { - if (class_exists('XmlForm_Field_cellMark')) { - $methods = get_class_methods( 'XmlForm_Field_cellMark'); - $this->assertTrue( in_array( 'tdClass', $methods ), 'seems like this function is outside this class' ); - } + public function testtdClass() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('tdClass', $methods ), 'exists method tdClass' ); + $r = new ReflectionMethod('XmlForm_Field_cellMark', 'tdClass'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXml_NodeTest.php b/tests/automated/gulliver/system/classXml_NodeTest.php index c4dcd3ab5..af2aa18a4 100644 --- a/tests/automated/gulliver/system/classXml_NodeTest.php +++ b/tests/automated/gulliver/system/classXml_NodeTest.php @@ -1,109 +1,190 @@ -object = new Xml_Node(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 8); + } - class classXml_NodeTest extends PHPUnit_Framework_TestCase - { /** * @covers Xml_Node::Xml_Node * @todo Implement testXml_Node(). */ - public function testXml_Node() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'Xml_Node', $methods ), 'seems like this function is outside this class' ); - } + public function testXml_Node() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Xml_Node', $methods ), 'exists method Xml_Node' ); + $r = new ReflectionMethod('Xml_Node', 'Xml_Node'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'value'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'attributes'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_Node::addAttribute * @todo Implement testaddAttribute(). */ - public function testaddAttribute() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'addAttribute', $methods ), 'seems like this function is outside this class' ); - } + public function testaddAttribute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addAttribute', $methods ), 'exists method addAttribute' ); + $r = new ReflectionMethod('Xml_Node', 'addAttribute'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_Node::addChildNode * @todo Implement testaddChildNode(). */ - public function testaddChildNode() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'addChildNode', $methods ), 'seems like this function is outside this class' ); - } + public function testaddChildNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addChildNode', $methods ), 'exists method addChildNode' ); + $r = new ReflectionMethod('Xml_Node', 'addChildNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'childNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_Node::toTree * @todo Implement testtoTree(). */ - public function testtoTree() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'toTree', $methods ), 'seems like this function is outside this class' ); - } + public function testtoTree() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('toTree', $methods ), 'exists method toTree' ); + $r = new ReflectionMethod('Xml_Node', 'toTree'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_Node::toArray * @todo Implement testtoArray(). */ - public function testtoArray() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'toArray', $methods ), 'seems like this function is outside this class' ); - } + public function testtoArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('toArray', $methods ), 'exists method toArray' ); + $r = new ReflectionMethod('Xml_Node', 'toArray'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'obj'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_Node::findNode * @todo Implement testfindNode(). */ - public function testfindNode() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' ); - } + public function testfindNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' ); + $r = new ReflectionMethod('Xml_Node', 'findNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xpath'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_Node::getXML * @todo Implement testgetXML(). */ - public function testgetXML() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' ); - } + public function testgetXML() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' ); + $r = new ReflectionMethod('Xml_Node', 'getXML'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_Node::getCDATAValue * @todo Implement testgetCDATAValue(). */ - public function testgetCDATAValue() - { - if (class_exists('Xml_Node')) { - $methods = get_class_methods( 'Xml_Node'); - $this->assertTrue( in_array( 'getCDATAValue', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCDATAValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCDATAValue', $methods ), 'exists method getCDATAValue' ); + $r = new ReflectionMethod('Xml_Node', 'getCDATAValue'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classXml_documentTest.php b/tests/automated/gulliver/system/classXml_documentTest.php index 1ce47dc71..752cf868d 100644 --- a/tests/automated/gulliver/system/classXml_documentTest.php +++ b/tests/automated/gulliver/system/classXml_documentTest.php @@ -1,73 +1,132 @@ -object = new Xml_document(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 11); + } - class classXml_documentTest extends PHPUnit_Framework_TestCase - { /** * @covers Xml_document::Xml_document * @todo Implement testXml_document(). */ - public function testXml_document() - { - if (class_exists('Xml_document')) { - $methods = get_class_methods( 'Xml_document'); - $this->assertTrue( in_array( 'Xml_document', $methods ), 'seems like this function is outside this class' ); - } + public function testXml_document() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Xml_document', $methods ), 'exists method Xml_document' ); + $r = new ReflectionMethod('Xml_document', 'Xml_document'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_document::parseXmlFile * @todo Implement testparseXmlFile(). */ - public function testparseXmlFile() - { - if (class_exists('Xml_document')) { - $methods = get_class_methods( 'Xml_document'); - $this->assertTrue( in_array( 'parseXmlFile', $methods ), 'seems like this function is outside this class' ); - } + public function testparseXmlFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parseXmlFile', $methods ), 'exists method parseXmlFile' ); + $r = new ReflectionMethod('Xml_document', 'parseXmlFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'content'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_document::findNode * @todo Implement testfindNode(). */ - public function testfindNode() - { - if (class_exists('Xml_document')) { - $methods = get_class_methods( 'Xml_document'); - $this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' ); - } + public function testfindNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' ); + $r = new ReflectionMethod('Xml_document', 'findNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xpath'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_document::getXML * @todo Implement testgetXML(). */ - public function testgetXML() - { - if (class_exists('Xml_document')) { - $methods = get_class_methods( 'Xml_document'); - $this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' ); - } + public function testgetXML() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' ); + $r = new ReflectionMethod('Xml_document', 'getXML'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xml_document::save * @todo Implement testsave(). */ - public function testsave() - { - if (class_exists('Xml_document')) { - $methods = get_class_methods( 'Xml_document'); - $this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); - } + public function testsave() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('save', $methods ), 'exists method save' ); + $r = new ReflectionMethod('Xml_document', 'save'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classdatabaseTest.php b/tests/automated/gulliver/system/classdatabaseTest.php deleted file mode 100644 index 997bb2d86..000000000 --- a/tests/automated/gulliver/system/classdatabaseTest.php +++ /dev/null @@ -1,505 +0,0 @@ -assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateCreateTableSQL - * @todo Implement testgenerateCreateTableSQL(). - */ - public function testgenerateCreateTableSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateCreateTableSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateDropTableSQL - * @todo Implement testgenerateDropTableSQL(). - */ - public function testgenerateDropTableSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateDropTableSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateDropColumnSQL - * @todo Implement testgenerateDropColumnSQL(). - */ - public function testgenerateDropColumnSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateDropColumnSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateAddColumnSQL - * @todo Implement testgenerateAddColumnSQL(). - */ - public function testgenerateAddColumnSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateAddColumnSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateChangeColumnSQL - * @todo Implement testgenerateChangeColumnSQL(). - */ - public function testgenerateChangeColumnSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateChangeColumnSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateGetPrimaryKeysSQL - * @todo Implement testgenerateGetPrimaryKeysSQL(). - */ - public function testgenerateGetPrimaryKeysSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateGetPrimaryKeysSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateDropPrimaryKeysSQL - * @todo Implement testgenerateDropPrimaryKeysSQL(). - */ - public function testgenerateDropPrimaryKeysSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateDropPrimaryKeysSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateAddPrimaryKeysSQL - * @todo Implement testgenerateAddPrimaryKeysSQL(). - */ - public function testgenerateAddPrimaryKeysSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateAddPrimaryKeysSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateDropKeySQL - * @todo Implement testgenerateDropKeySQL(). - */ - public function testgenerateDropKeySQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateDropKeySQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateAddKeysSQL - * @todo Implement testgenerateAddKeysSQL(). - */ - public function testgenerateAddKeysSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateAddKeysSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateShowTablesSQL - * @todo Implement testgenerateShowTablesSQL(). - */ - public function testgenerateShowTablesSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateShowTablesSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateShowTablesLikeSQL - * @todo Implement testgenerateShowTablesLikeSQL(). - */ - public function testgenerateShowTablesLikeSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateShowTablesLikeSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateDescTableSQL - * @todo Implement testgenerateDescTableSQL(). - */ - public function testgenerateDescTableSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateDescTableSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateTableIndexSQL - * @todo Implement testgenerateTableIndexSQL(). - */ - public function testgenerateTableIndexSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateTableIndexSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::isConnected - * @todo Implement testisConnected(). - */ - public function testisConnected() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'isConnected', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::logQuery - * @todo Implement testlogQuery(). - */ - public function testlogQuery() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'logQuery', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::executeQuery - * @todo Implement testexecuteQuery(). - */ - public function testexecuteQuery() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'executeQuery', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::countResults - * @todo Implement testcountResults(). - */ - public function testcountResults() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'countResults', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getRegistry - * @todo Implement testgetRegistry(). - */ - public function testgetRegistry() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getRegistry', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::close - * @todo Implement testclose(). - */ - public function testclose() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateInsertSQL - * @todo Implement testgenerateInsertSQL(). - */ - public function testgenerateInsertSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateInsertSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateUpdateSQL - * @todo Implement testgenerateUpdateSQL(). - */ - public function testgenerateUpdateSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateUpdateSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateDeleteSQL - * @todo Implement testgenerateDeleteSQL(). - */ - public function testgenerateDeleteSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateDeleteSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::generateSelectSQL - * @todo Implement testgenerateSelectSQL(). - */ - public function testgenerateSelectSQL() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'generateSelectSQL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::putQuotes - * @todo Implement testputQuotes(). - */ - public function testputQuotes() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'putQuotes', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::concatString - * @todo Implement testconcatString(). - */ - public function testconcatString() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'concatString', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getCaseWhen - * @todo Implement testgetCaseWhen(). - */ - public function testgetCaseWhen() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getCaseWhen', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::createTableObjectPermission - * @todo Implement testcreateTableObjectPermission(). - */ - public function testcreateTableObjectPermission() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'createTableObjectPermission', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getSelectReport4 - * @todo Implement testgetSelectReport4(). - */ - public function testgetSelectReport4() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getSelectReport4', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getSelectReport4Filter - * @todo Implement testgetSelectReport4Filter(). - */ - public function testgetSelectReport4Filter() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getSelectReport4Filter', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getSelectReport5 - * @todo Implement testgetSelectReport5(). - */ - public function testgetSelectReport5() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getSelectReport5', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getSelectReport5Filter - * @todo Implement testgetSelectReport5Filter(). - */ - public function testgetSelectReport5Filter() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getSelectReport5Filter', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getServerVersion - * @todo Implement testgetServerVersion(). - */ - public function testgetServerVersion() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getServerVersion', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getDropTable - * @todo Implement testgetDropTable(). - */ - public function testgetDropTable() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getDropTable', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getTableDescription - * @todo Implement testgetTableDescription(). - */ - public function testgetTableDescription() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getTableDescription', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getFieldNull - * @todo Implement testgetFieldNull(). - */ - public function testgetFieldNull() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getFieldNull', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getValidate - * @todo Implement testgetValidate(). - */ - public function testgetValidate() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getValidate', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::reportTableExist - * @todo Implement testreportTableExist(). - */ - public function testreportTableExist() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'reportTableExist', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::getLimitRenderTable - * @todo Implement testgetLimitRenderTable(). - */ - public function testgetLimitRenderTable() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'getLimitRenderTable', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers database::tableExists - * @todo Implement testtableExists(). - */ - public function testtableExists() - { - if (class_exists('database')) { - $methods = get_class_methods( 'database'); - $this->assertTrue( in_array( 'tableExists', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classdatabase_baseTest.php b/tests/automated/gulliver/system/classdatabase_baseTest.php index 14849e098..1d164604e 100644 --- a/tests/automated/gulliver/system/classdatabase_baseTest.php +++ b/tests/automated/gulliver/system/classdatabase_baseTest.php @@ -1,109 +1,217 @@ -object = new database_base(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 8); + } - class classdatabase_baseTest extends PHPUnit_Framework_TestCase - { /** * @covers database_base::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('database_base', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sType'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'DB_ADAPTER'); + $this->assertTrue( $params[1]->getName() == 'sServer'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'DB_HOST'); + $this->assertTrue( $params[2]->getName() == 'sUser'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'DB_USER'); + $this->assertTrue( $params[3]->getName() == 'sPass'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == 'DB_PASS'); + $this->assertTrue( $params[4]->getName() == 'sDataBase'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == 'DB_NAME'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers database_base::generateDropTableSQL * @todo Implement testgenerateDropTableSQL(). */ - public function testgenerateDropTableSQL() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( 'generateDropTableSQL', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateDropTableSQL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateDropTableSQL', $methods ), 'exists method generateDropTableSQL' ); + $r = new ReflectionMethod('database_base', 'generateDropTableSQL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers database_base::generateCreateTableSQL * @todo Implement testgenerateCreateTableSQL(). */ - public function testgenerateCreateTableSQL() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( 'generateCreateTableSQL', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateCreateTableSQL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateCreateTableSQL', $methods ), 'exists method generateCreateTableSQL' ); + $r = new ReflectionMethod('database_base', 'generateCreateTableSQL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aColumns'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers database_base::generateDropColumnSQL * @todo Implement testgenerateDropColumnSQL(). */ - public function testgenerateDropColumnSQL() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( 'generateDropColumnSQL', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateDropColumnSQL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateDropColumnSQL', $methods ), 'exists method generateDropColumnSQL' ); + $r = new ReflectionMethod('database_base', 'generateDropColumnSQL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sColumn'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers database_base::generateAddColumnSQL * @todo Implement testgenerateAddColumnSQL(). */ - public function testgenerateAddColumnSQL() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( 'generateAddColumnSQL', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateAddColumnSQL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateAddColumnSQL', $methods ), 'exists method generateAddColumnSQL' ); + $r = new ReflectionMethod('database_base', 'generateAddColumnSQL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sColumn'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'aParameters'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers database_base::generateChangeColumnSQL * @todo Implement testgenerateChangeColumnSQL(). */ - public function testgenerateChangeColumnSQL() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( 'generateChangeColumnSQL', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateChangeColumnSQL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateChangeColumnSQL', $methods ), 'exists method generateChangeColumnSQL' ); + $r = new ReflectionMethod('database_base', 'generateChangeColumnSQL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sColumn'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'aParameters'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers database_base::executeQuery * @todo Implement testexecuteQuery(). */ - public function testexecuteQuery() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( 'executeQuery', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteQuery() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeQuery', $methods ), 'exists method executeQuery' ); + $r = new ReflectionMethod('database_base', 'executeQuery'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sQuery'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers database_base::close * @todo Implement testclose(). */ - public function testclose() - { - if (class_exists('database_base')) { - $methods = get_class_methods( 'database_base'); - $this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' ); - } + public function testclose() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('close', $methods ), 'exists method close' ); + $r = new ReflectionMethod('database_base', 'close'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classdynaFormHandlerTest.php b/tests/automated/gulliver/system/classdynaFormHandlerTest.php index 66288a832..b14c21807 100644 --- a/tests/automated/gulliver/system/classdynaFormHandlerTest.php +++ b/tests/automated/gulliver/system/classdynaFormHandlerTest.php @@ -1,289 +1,489 @@ -object = new dynaFormHandler(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 23); + } - class classdynaFormHandlerTest extends PHPUnit_Framework_TestCase - { /** * @covers dynaFormHandler::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('dynaFormHandler', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('dynaFormHandler', 'load'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::reload * @todo Implement testreload(). */ - public function testreload() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'reload', $methods ), 'seems like this function is outside this class' ); - } + public function testreload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reload', $methods ), 'exists method reload' ); + $r = new ReflectionMethod('dynaFormHandler', 'reload'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::__cloneEmpty * @todo Implement test__cloneEmpty(). */ - public function test__cloneEmpty() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( '__cloneEmpty', $methods ), 'seems like this function is outside this class' ); - } + public function test__cloneEmpty() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__cloneEmpty', $methods ), 'exists method __cloneEmpty' ); + $r = new ReflectionMethod('dynaFormHandler', '__cloneEmpty'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::toString * @todo Implement testtoString(). */ - public function testtoString() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'toString', $methods ), 'seems like this function is outside this class' ); - } + public function testtoString() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('toString', $methods ), 'exists method toString' ); + $r = new ReflectionMethod('dynaFormHandler', 'toString'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'op'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::getNode * @todo Implement testgetNode(). */ - public function testgetNode() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' ); + $r = new ReflectionMethod('dynaFormHandler', 'getNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'nodename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::setNode * @todo Implement testsetNode(). */ - public function testsetNode() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'setNode', $methods ), 'seems like this function is outside this class' ); - } + public function testsetNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setNode', $methods ), 'exists method setNode' ); + $r = new ReflectionMethod('dynaFormHandler', 'setNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::add * @todo Implement testadd(). */ - public function testadd() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'add', $methods ), 'seems like this function is outside this class' ); - } + public function testadd() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('add', $methods ), 'exists method add' ); + $r = new ReflectionMethod('dynaFormHandler', 'add'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'attributes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'childs'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'childs_childs'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::replace * @todo Implement testreplace(). */ - public function testreplace() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'replace', $methods ), 'seems like this function is outside this class' ); - } + public function testreplace() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('replace', $methods ), 'exists method replace' ); + $r = new ReflectionMethod('dynaFormHandler', 'replace'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'replaced'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'name'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'attributes'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'childs'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'childs_childs'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::save * @todo Implement testsave(). */ - public function testsave() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); - } + public function testsave() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('save', $methods ), 'exists method save' ); + $r = new ReflectionMethod('dynaFormHandler', 'save'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::fixXmlFile * @todo Implement testfixXmlFile(). */ - public function testfixXmlFile() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'fixXmlFile', $methods ), 'seems like this function is outside this class' ); - } + public function testfixXmlFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('fixXmlFile', $methods ), 'exists method fixXmlFile' ); + $r = new ReflectionMethod('dynaFormHandler', 'fixXmlFile'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::setHeaderAttribute * @todo Implement testsetHeaderAttribute(). */ - public function testsetHeaderAttribute() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'setHeaderAttribute', $methods ), 'seems like this function is outside this class' ); - } + public function testsetHeaderAttribute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setHeaderAttribute', $methods ), 'exists method setHeaderAttribute' ); + $r = new ReflectionMethod('dynaFormHandler', 'setHeaderAttribute'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'att_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'att_value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::modifyHeaderAttribute * @todo Implement testmodifyHeaderAttribute(). */ - public function testmodifyHeaderAttribute() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'modifyHeaderAttribute', $methods ), 'seems like this function is outside this class' ); - } + public function testmodifyHeaderAttribute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('modifyHeaderAttribute', $methods ), 'exists method modifyHeaderAttribute' ); + $r = new ReflectionMethod('dynaFormHandler', 'modifyHeaderAttribute'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'att_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'att_new_value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::updateAttribute * @todo Implement testupdateAttribute(). */ - public function testupdateAttribute() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'updateAttribute', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateAttribute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateAttribute', $methods ), 'exists method updateAttribute' ); + $r = new ReflectionMethod('dynaFormHandler', 'updateAttribute'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'att_name'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'att_new_value'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::remove * @todo Implement testremove(). */ - public function testremove() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'remove', $methods ), 'seems like this function is outside this class' ); - } + public function testremove() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('remove', $methods ), 'exists method remove' ); + $r = new ReflectionMethod('dynaFormHandler', 'remove'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'v'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::nodeExists * @todo Implement testnodeExists(). */ - public function testnodeExists() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'nodeExists', $methods ), 'seems like this function is outside this class' ); - } + public function testnodeExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('nodeExists', $methods ), 'exists method nodeExists' ); + $r = new ReflectionMethod('dynaFormHandler', 'nodeExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::moveUp * @todo Implement testmoveUp(). */ - public function testmoveUp() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'moveUp', $methods ), 'seems like this function is outside this class' ); - } + public function testmoveUp() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('moveUp', $methods ), 'exists method moveUp' ); + $r = new ReflectionMethod('dynaFormHandler', 'moveUp'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'selected_node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::moveDown * @todo Implement testmoveDown(). */ - public function testmoveDown() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'moveDown', $methods ), 'seems like this function is outside this class' ); - } + public function testmoveDown() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('moveDown', $methods ), 'exists method moveDown' ); + $r = new ReflectionMethod('dynaFormHandler', 'moveDown'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'selected_node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::getFields * @todo Implement testgetFields(). */ - public function testgetFields() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' ); + $r = new ReflectionMethod('dynaFormHandler', 'getFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aFilter'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::getFieldNames * @todo Implement testgetFieldNames(). */ - public function testgetFieldNames() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFieldNames() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFieldNames', $methods ), 'exists method getFieldNames' ); + $r = new ReflectionMethod('dynaFormHandler', 'getFieldNames'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aFilter'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::addChilds * @todo Implement testaddChilds(). */ - public function testaddChilds() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'addChilds', $methods ), 'seems like this function is outside this class' ); - } + public function testaddChilds() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addChilds', $methods ), 'exists method addChilds' ); + $r = new ReflectionMethod('dynaFormHandler', 'addChilds'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'childs'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'childs_childs'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::addOrUpdateChild * @todo Implement testaddOrUpdateChild(). */ - public function testaddOrUpdateChild() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'addOrUpdateChild', $methods ), 'seems like this function is outside this class' ); - } + public function testaddOrUpdateChild() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addOrUpdateChild', $methods ), 'exists method addOrUpdateChild' ); + $r = new ReflectionMethod('dynaFormHandler', 'addOrUpdateChild'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xnode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'childName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'childValue'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'childAttributes'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaFormHandler::getArray * @todo Implement testgetArray(). */ - public function testgetArray() - { - if (class_exists('dynaFormHandler')) { - $methods = get_class_methods( 'dynaFormHandler'); - $this->assertTrue( in_array( 'getArray', $methods ), 'seems like this function is outside this class' ); - } + public function testgetArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getArray', $methods ), 'exists method getArray' ); + $r = new ReflectionMethod('dynaFormHandler', 'getArray'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'attributes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classfilterFormTest.php b/tests/automated/gulliver/system/classfilterFormTest.php index c89e0cfc2..26c1baa46 100644 --- a/tests/automated/gulliver/system/classfilterFormTest.php +++ b/tests/automated/gulliver/system/classfilterFormTest.php @@ -1,25 +1,69 @@ -object = new filterForm(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 13); + } - class classfilterFormTest extends PHPUnit_Framework_TestCase - { /** * @covers filterForm::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('filterForm')) { - $methods = get_class_methods( 'filterForm'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('filterForm', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'template'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'scriptContent'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classfunctionTestTest.php b/tests/automated/gulliver/system/classfunctionTestTest.php index a05127bb3..2bdaa3ea3 100644 --- a/tests/automated/gulliver/system/classfunctionTestTest.php +++ b/tests/automated/gulliver/system/classfunctionTestTest.php @@ -1,37 +1,89 @@ -object = new functionTest(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 2); + } - class classfunctionTestTest extends PHPUnit_Framework_TestCase - { /** * @covers functionTest::functionTest * @todo Implement testfunctionTest(). */ - public function testfunctionTest() - { - if (class_exists('functionTest')) { - $methods = get_class_methods( 'functionTest'); - $this->assertTrue( in_array( 'functionTest', $methods ), 'seems like this function is outside this class' ); - } + public function testfunctionTest() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('functionTest', $methods ), 'exists method functionTest' ); + $r = new ReflectionMethod('functionTest', 'functionTest'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbc'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers functionTest::sample * @todo Implement testsample(). */ - public function testsample() - { - if (class_exists('functionTest')) { - $methods = get_class_methods( 'functionTest'); - $this->assertTrue( in_array( 'sample', $methods ), 'seems like this function is outside this class' ); - } + public function testsample() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sample', $methods ), 'exists method sample' ); + $r = new ReflectionMethod('functionTest', 'sample'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'testCase'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'testDomain'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'limeTestObject'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classheadPublisherTest.php b/tests/automated/gulliver/system/classheadPublisherTest.php index 0454279a5..69e5447ac 100644 --- a/tests/automated/gulliver/system/classheadPublisherTest.php +++ b/tests/automated/gulliver/system/classheadPublisherTest.php @@ -1,349 +1,517 @@ -object = new headPublisher(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 28); + } - class classheadPublisherTest extends PHPUnit_Framework_TestCase - { /** * @covers headPublisher::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('headPublisher', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::getSingleton * @todo Implement testgetSingleton(). */ - public function testgetSingleton() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSingleton() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' ); + $r = new ReflectionMethod('headPublisher', 'getSingleton'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::setTitle * @todo Implement testsetTitle(). */ - public function testsetTitle() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'setTitle', $methods ), 'seems like this function is outside this class' ); - } + public function testsetTitle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setTitle', $methods ), 'exists method setTitle' ); + $r = new ReflectionMethod('headPublisher', 'setTitle'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'title'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::addMaborakFile * @todo Implement testaddMaborakFile(). */ - public function testaddMaborakFile() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'addMaborakFile', $methods ), 'seems like this function is outside this class' ); - } + public function testaddMaborakFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addMaborakFile', $methods ), 'exists method addMaborakFile' ); + $r = new ReflectionMethod('headPublisher', 'addMaborakFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'loader'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::addScriptFile * @todo Implement testaddScriptFile(). */ - public function testaddScriptFile() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'addScriptFile', $methods ), 'seems like this function is outside this class' ); - } + public function testaddScriptFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addScriptFile', $methods ), 'exists method addScriptFile' ); + $r = new ReflectionMethod('headPublisher', 'addScriptFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'url'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'LoadType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::addInstanceModule * @todo Implement testaddInstanceModule(). */ - public function testaddInstanceModule() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'addInstanceModule', $methods ), 'seems like this function is outside this class' ); - } + public function testaddInstanceModule() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addInstanceModule', $methods ), 'exists method addInstanceModule' ); + $r = new ReflectionMethod('headPublisher', 'addInstanceModule'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'instance'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'module'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::addClassModule * @todo Implement testaddClassModule(). */ - public function testaddClassModule() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'addClassModule', $methods ), 'seems like this function is outside this class' ); - } + public function testaddClassModule() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addClassModule', $methods ), 'exists method addClassModule' ); + $r = new ReflectionMethod('headPublisher', 'addClassModule'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'class'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'module'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::addScriptCode * @todo Implement testaddScriptCode(). */ - public function testaddScriptCode() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'addScriptCode', $methods ), 'seems like this function is outside this class' ); - } + public function testaddScriptCode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addScriptCode', $methods ), 'exists method addScriptCode' ); + $r = new ReflectionMethod('headPublisher', 'addScriptCode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'script'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::printHeader * @todo Implement testprintHeader(). */ - public function testprintHeader() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'printHeader', $methods ), 'seems like this function is outside this class' ); - } + public function testprintHeader() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printHeader', $methods ), 'exists method printHeader' ); + $r = new ReflectionMethod('headPublisher', 'printHeader'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::printRawHeader * @todo Implement testprintRawHeader(). */ - public function testprintRawHeader() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'printRawHeader', $methods ), 'seems like this function is outside this class' ); - } + public function testprintRawHeader() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printRawHeader', $methods ), 'exists method printRawHeader' ); + $r = new ReflectionMethod('headPublisher', 'printRawHeader'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::clearScripts * @todo Implement testclearScripts(). */ - public function testclearScripts() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'clearScripts', $methods ), 'seems like this function is outside this class' ); - } + public function testclearScripts() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('clearScripts', $methods ), 'exists method clearScripts' ); + $r = new ReflectionMethod('headPublisher', 'clearScripts'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::includeExtJs * @todo Implement testincludeExtJs(). */ - public function testincludeExtJs() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'includeExtJs', $methods ), 'seems like this function is outside this class' ); - } + public function testincludeExtJs() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('includeExtJs', $methods ), 'exists method includeExtJs' ); + $r = new ReflectionMethod('headPublisher', 'includeExtJs'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::getExtJsStylesheets * @todo Implement testgetExtJsStylesheets(). */ - public function testgetExtJsStylesheets() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'getExtJsStylesheets', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtJsStylesheets() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtJsStylesheets', $methods ), 'exists method getExtJsStylesheets' ); + $r = new ReflectionMethod('headPublisher', 'getExtJsStylesheets'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'skinName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::getExtJsScripts * @todo Implement testgetExtJsScripts(). */ - public function testgetExtJsScripts() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'getExtJsScripts', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtJsScripts() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtJsScripts', $methods ), 'exists method getExtJsScripts' ); + $r = new ReflectionMethod('headPublisher', 'getExtJsScripts'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::getExtJsVariablesScript * @todo Implement testgetExtJsVariablesScript(). */ - public function testgetExtJsVariablesScript() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'getExtJsVariablesScript', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtJsVariablesScript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtJsVariablesScript', $methods ), 'exists method getExtJsVariablesScript' ); + $r = new ReflectionMethod('headPublisher', 'getExtJsVariablesScript'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::getExtJsLibraries * @todo Implement testgetExtJsLibraries(). */ - public function testgetExtJsLibraries() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'getExtJsLibraries', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtJsLibraries() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtJsLibraries', $methods ), 'exists method getExtJsLibraries' ); + $r = new ReflectionMethod('headPublisher', 'getExtJsLibraries'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::usingExtJs * @todo Implement testusingExtJs(). */ - public function testusingExtJs() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'usingExtJs', $methods ), 'seems like this function is outside this class' ); - } + public function testusingExtJs() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('usingExtJs', $methods ), 'exists method usingExtJs' ); + $r = new ReflectionMethod('headPublisher', 'usingExtJs'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'library'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::setExtSkin * @todo Implement testsetExtSkin(). */ - public function testsetExtSkin() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'setExtSkin', $methods ), 'seems like this function is outside this class' ); - } + public function testsetExtSkin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setExtSkin', $methods ), 'exists method setExtSkin' ); + $r = new ReflectionMethod('headPublisher', 'setExtSkin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'skin'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::addExtJsScript * @todo Implement testaddExtJsScript(). */ - public function testaddExtJsScript() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'addExtJsScript', $methods ), 'seems like this function is outside this class' ); - } + public function testaddExtJsScript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addExtJsScript', $methods ), 'exists method addExtJsScript' ); + $r = new ReflectionMethod('headPublisher', 'addExtJsScript'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'debug'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'isExternal'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::AddContent * @todo Implement testAddContent(). */ - public function testAddContent() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' ); - } + public function testAddContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' ); + $r = new ReflectionMethod('headPublisher', 'AddContent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'templateHtml'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::getContent * @todo Implement testgetContent(). */ - public function testgetContent() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'getContent', $methods ), 'seems like this function is outside this class' ); - } + public function testgetContent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getContent', $methods ), 'exists method getContent' ); + $r = new ReflectionMethod('headPublisher', 'getContent'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::Assign * @todo Implement testAssign(). */ - public function testAssign() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'Assign', $methods ), 'seems like this function is outside this class' ); - } + public function testAssign() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Assign', $methods ), 'exists method Assign' ); + $r = new ReflectionMethod('headPublisher', 'Assign'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'variable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::AssignVar * @todo Implement testAssignVar(). */ - public function testAssignVar() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'AssignVar', $methods ), 'seems like this function is outside this class' ); - } + public function testAssignVar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AssignVar', $methods ), 'exists method AssignVar' ); + $r = new ReflectionMethod('headPublisher', 'AssignVar'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::getVars * @todo Implement testgetVars(). */ - public function testgetVars() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' ); - } + public function testgetVars() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' ); + $r = new ReflectionMethod('headPublisher', 'getVars'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::AssignNumber * @todo Implement testAssignNumber(). */ - public function testAssignNumber() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'AssignNumber', $methods ), 'seems like this function is outside this class' ); - } + public function testAssignNumber() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('AssignNumber', $methods ), 'exists method AssignNumber' ); + $r = new ReflectionMethod('headPublisher', 'AssignNumber'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'variable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::renderExtJs * @todo Implement testrenderExtJs(). */ - public function testrenderExtJs() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'renderExtJs', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderExtJs() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderExtJs', $methods ), 'exists method renderExtJs' ); + $r = new ReflectionMethod('headPublisher', 'renderExtJs'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::stripCodeQuotes * @todo Implement teststripCodeQuotes(). */ - public function teststripCodeQuotes() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'stripCodeQuotes', $methods ), 'seems like this function is outside this class' ); - } + public function teststripCodeQuotes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('stripCodeQuotes', $methods ), 'exists method stripCodeQuotes' ); + $r = new ReflectionMethod('headPublisher', 'stripCodeQuotes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sJson'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers headPublisher::disableHeaderScripts * @todo Implement testdisableHeaderScripts(). */ - public function testdisableHeaderScripts() - { - if (class_exists('headPublisher')) { - $methods = get_class_methods( 'headPublisher'); - $this->assertTrue( in_array( 'disableHeaderScripts', $methods ), 'seems like this function is outside this class' ); - } + public function testdisableHeaderScripts() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('disableHeaderScripts', $methods ), 'exists method disableHeaderScripts' ); + $r = new ReflectionMethod('headPublisher', 'disableHeaderScripts'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classi18n_POTest.php b/tests/automated/gulliver/system/classi18n_POTest.php index 49a4fe4ec..301eb1027 100644 --- a/tests/automated/gulliver/system/classi18n_POTest.php +++ b/tests/automated/gulliver/system/classi18n_POTest.php @@ -1,241 +1,330 @@ -object = new i18n_PO(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 17); + } - class classi18n_POTest extends PHPUnit_Framework_TestCase - { /** * @covers i18n_PO::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('i18n_PO', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::buildInit * @todo Implement testbuildInit(). */ - public function testbuildInit() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'buildInit', $methods ), 'seems like this function is outside this class' ); - } + public function testbuildInit() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('buildInit', $methods ), 'exists method buildInit' ); + $r = new ReflectionMethod('i18n_PO', 'buildInit'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::readInit * @todo Implement testreadInit(). */ - public function testreadInit() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'readInit', $methods ), 'seems like this function is outside this class' ); - } + public function testreadInit() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('readInit', $methods ), 'exists method readInit' ); + $r = new ReflectionMethod('i18n_PO', 'readInit'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::addHeader * @todo Implement testaddHeader(). */ - public function testaddHeader() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'addHeader', $methods ), 'seems like this function is outside this class' ); - } + public function testaddHeader() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addHeader', $methods ), 'exists method addHeader' ); + $r = new ReflectionMethod('i18n_PO', 'addHeader'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'id'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::addTranslatorComment * @todo Implement testaddTranslatorComment(). */ - public function testaddTranslatorComment() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'addTranslatorComment', $methods ), 'seems like this function is outside this class' ); - } + public function testaddTranslatorComment() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addTranslatorComment', $methods ), 'exists method addTranslatorComment' ); + $r = new ReflectionMethod('i18n_PO', 'addTranslatorComment'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::addExtractedComment * @todo Implement testaddExtractedComment(). */ - public function testaddExtractedComment() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'addExtractedComment', $methods ), 'seems like this function is outside this class' ); - } + public function testaddExtractedComment() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addExtractedComment', $methods ), 'exists method addExtractedComment' ); + $r = new ReflectionMethod('i18n_PO', 'addExtractedComment'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::addReference * @todo Implement testaddReference(). */ - public function testaddReference() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'addReference', $methods ), 'seems like this function is outside this class' ); - } + public function testaddReference() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addReference', $methods ), 'exists method addReference' ); + $r = new ReflectionMethod('i18n_PO', 'addReference'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::addFlag * @todo Implement testaddFlag(). */ - public function testaddFlag() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'addFlag', $methods ), 'seems like this function is outside this class' ); - } + public function testaddFlag() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addFlag', $methods ), 'exists method addFlag' ); + $r = new ReflectionMethod('i18n_PO', 'addFlag'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::addPreviousUntranslatedString * @todo Implement testaddPreviousUntranslatedString(). */ - public function testaddPreviousUntranslatedString() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'addPreviousUntranslatedString', $methods ), 'seems like this function is outside this class' ); - } + public function testaddPreviousUntranslatedString() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addPreviousUntranslatedString', $methods ), 'exists method addPreviousUntranslatedString' ); + $r = new ReflectionMethod('i18n_PO', 'addPreviousUntranslatedString'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::addTranslation * @todo Implement testaddTranslation(). */ - public function testaddTranslation() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'addTranslation', $methods ), 'seems like this function is outside this class' ); - } + public function testaddTranslation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addTranslation', $methods ), 'exists method addTranslation' ); + $r = new ReflectionMethod('i18n_PO', 'addTranslation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msgid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'msgstr'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::_writeLine * @todo Implement test_writeLine(). */ - public function test_writeLine() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( '_writeLine', $methods ), 'seems like this function is outside this class' ); - } + public function test_writeLine() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_writeLine', $methods ), 'exists method _writeLine' ); + $r = new ReflectionMethod('i18n_PO', '_writeLine'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::_write * @todo Implement test_write(). */ - public function test_write() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( '_write', $methods ), 'seems like this function is outside this class' ); - } + public function test_write() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_write', $methods ), 'exists method _write' ); + $r = new ReflectionMethod('i18n_PO', '_write'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'str'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::prepare * @todo Implement testprepare(). */ - public function testprepare() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' ); - } + public function testprepare() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' ); + $r = new ReflectionMethod('i18n_PO', 'prepare'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'string'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'reverse'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::headerStroke * @todo Implement testheaderStroke(). */ - public function testheaderStroke() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'headerStroke', $methods ), 'seems like this function is outside this class' ); - } - } + public function testheaderStroke() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('headerStroke', $methods ), 'exists method headerStroke' ); + $r = new ReflectionMethod('i18n_PO', 'headerStroke'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers i18n_PO::skipCommets - * @todo Implement testskipCommets(). - */ - public function testskipCommets() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'skipCommets', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers i18n_PO::readHeaders - * @todo Implement testreadHeaders(). - */ - public function testreadHeaders() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'readHeaders', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers i18n_PO::getHeaders * @todo Implement testgetHeaders(). */ - public function testgetHeaders() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' ); - } + public function testgetHeaders() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' ); + $r = new ReflectionMethod('i18n_PO', 'getHeaders'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::getTranslation * @todo Implement testgetTranslation(). */ - public function testgetTranslation() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( 'getTranslation', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTranslation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTranslation', $methods ), 'exists method getTranslation' ); + $r = new ReflectionMethod('i18n_PO', 'getTranslation'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers i18n_PO::__destruct * @todo Implement test__destruct(). */ - public function test__destruct() - { - if (class_exists('i18n_PO')) { - $methods = get_class_methods( 'i18n_PO'); - $this->assertTrue( in_array( '__destruct', $methods ), 'seems like this function is outside this class' ); - } + public function test__destruct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__destruct', $methods ), 'exists method __destruct' ); + $r = new ReflectionMethod('i18n_PO', '__destruct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classmailerTest.php b/tests/automated/gulliver/system/classmailerTest.php index f772debd1..2663b9f03 100644 --- a/tests/automated/gulliver/system/classmailerTest.php +++ b/tests/automated/gulliver/system/classmailerTest.php @@ -1,97 +1,266 @@ -object = new mailer(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 7); + } - class classmailerTest extends PHPUnit_Framework_TestCase - { /** * @covers mailer::instanceMailer * @todo Implement testinstanceMailer(). */ - public function testinstanceMailer() - { - if (class_exists('mailer')) { - $methods = get_class_methods( 'mailer'); - $this->assertTrue( in_array( 'instanceMailer', $methods ), 'seems like this function is outside this class' ); - } + public function testinstanceMailer() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('instanceMailer', $methods ), 'exists method instanceMailer' ); + $r = new ReflectionMethod('mailer', 'instanceMailer'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers mailer::arpaEMAIL * @todo Implement testarpaEMAIL(). */ - public function testarpaEMAIL() - { - if (class_exists('mailer')) { - $methods = get_class_methods( 'mailer'); - $this->assertTrue( in_array( 'arpaEMAIL', $methods ), 'seems like this function is outside this class' ); - } + public function testarpaEMAIL() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('arpaEMAIL', $methods ), 'exists method arpaEMAIL' ); + $r = new ReflectionMethod('mailer', 'arpaEMAIL'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'address'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers mailer::sendTemplate * @todo Implement testsendTemplate(). */ - public function testsendTemplate() - { - if (class_exists('mailer')) { - $methods = get_class_methods( 'mailer'); - $this->assertTrue( in_array( 'sendTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testsendTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendTemplate', $methods ), 'exists method sendTemplate' ); + $r = new ReflectionMethod('mailer', 'sendTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'target'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'cc'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'bcc'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'subject'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'Fields'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[6]->getName() == 'templateFile'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == 'empty.html'); + $this->assertTrue( $params[7]->getName() == 'attachs'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[8]->getName() == 'plainText'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == ''); + $this->assertTrue( $params[9]->getName() == 'returnContent'); + $this->assertTrue( $params[9]->isArray() == false); + $this->assertTrue( $params[9]->isOptional () == true); + $this->assertTrue( $params[9]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers mailer::sendHtml * @todo Implement testsendHtml(). */ - public function testsendHtml() - { - if (class_exists('mailer')) { - $methods = get_class_methods( 'mailer'); - $this->assertTrue( in_array( 'sendHtml', $methods ), 'seems like this function is outside this class' ); - } + public function testsendHtml() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendHtml', $methods ), 'exists method sendHtml' ); + $r = new ReflectionMethod('mailer', 'sendHtml'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'target'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'cc'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'bcc'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'subject'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'Fields'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[6]->getName() == 'content'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->assertTrue( $params[7]->getName() == 'attachs'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[8]->getName() == 'plainText'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == ''); + $this->assertTrue( $params[9]->getName() == 'returnContent'); + $this->assertTrue( $params[9]->isArray() == false); + $this->assertTrue( $params[9]->isOptional () == true); + $this->assertTrue( $params[9]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers mailer::sendText * @todo Implement testsendText(). */ - public function testsendText() - { - if (class_exists('mailer')) { - $methods = get_class_methods( 'mailer'); - $this->assertTrue( in_array( 'sendText', $methods ), 'seems like this function is outside this class' ); - } + public function testsendText() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendText', $methods ), 'exists method sendText' ); + $r = new ReflectionMethod('mailer', 'sendText'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'target'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'cc'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'bcc'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'subject'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'content'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'attachs'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers mailer::replaceFields * @todo Implement testreplaceFields(). */ - public function testreplaceFields() - { - if (class_exists('mailer')) { - $methods = get_class_methods( 'mailer'); - $this->assertTrue( in_array( 'replaceFields', $methods ), 'seems like this function is outside this class' ); - } + public function testreplaceFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('replaceFields', $methods ), 'exists method replaceFields' ); + $r = new ReflectionMethod('mailer', 'replaceFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'Fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'content'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers mailer::html2text * @todo Implement testhtml2text(). */ - public function testhtml2text() - { - if (class_exists('mailer')) { - $methods = get_class_methods( 'mailer'); - $this->assertTrue( in_array( 'html2text', $methods ), 'seems like this function is outside this class' ); - } + public function testhtml2text() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('html2text', $methods ), 'exists method html2text' ); + $r = new ReflectionMethod('mailer', 'html2text'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classobjectTemplateTest.php b/tests/automated/gulliver/system/classobjectTemplateTest.php index c059aa0ee..fc9193d14 100644 --- a/tests/automated/gulliver/system/classobjectTemplateTest.php +++ b/tests/automated/gulliver/system/classobjectTemplateTest.php @@ -1,37 +1,83 @@ -object = new objectTemplate(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 60); + } - class classobjectTemplateTest extends PHPUnit_Framework_TestCase - { /** * @covers objectTemplate::objectTemplate * @todo Implement testobjectTemplate(). */ - public function testobjectTemplate() - { - if (class_exists('objectTemplate')) { - $methods = get_class_methods( 'objectTemplate'); - $this->assertTrue( in_array( 'objectTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testobjectTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('objectTemplate', $methods ), 'exists method objectTemplate' ); + $r = new ReflectionMethod('objectTemplate', 'objectTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'templateFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers objectTemplate::printObject * @todo Implement testprintObject(). */ - public function testprintObject() - { - if (class_exists('objectTemplate')) { - $methods = get_class_methods( 'objectTemplate'); - $this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' ); - } + public function testprintObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' ); + $r = new ReflectionMethod('objectTemplate', 'printObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'object'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classpagedTableTest.php b/tests/automated/gulliver/system/classpagedTableTest.php index d30367c20..058ae3d7c 100644 --- a/tests/automated/gulliver/system/classpagedTableTest.php +++ b/tests/automated/gulliver/system/classpagedTableTest.php @@ -1,133 +1,198 @@ -object = new pagedTable(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 9); + } - class classpagedTableTest extends PHPUnit_Framework_TestCase - { /** * @covers pagedTable::analizeSql * @todo Implement testanalizeSql(). */ - public function testanalizeSql() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'analizeSql', $methods ), 'seems like this function is outside this class' ); - } + public function testanalizeSql() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('analizeSql', $methods ), 'exists method analizeSql' ); + $r = new ReflectionMethod('pagedTable', 'analizeSql'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::prepareQuery * @todo Implement testprepareQuery(). */ - public function testprepareQuery() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'prepareQuery', $methods ), 'seems like this function is outside this class' ); - } + public function testprepareQuery() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prepareQuery', $methods ), 'exists method prepareQuery' ); + $r = new ReflectionMethod('pagedTable', 'prepareQuery'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::setupFromXmlform * @todo Implement testsetupFromXmlform(). */ - public function testsetupFromXmlform() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'setupFromXmlform', $methods ), 'seems like this function is outside this class' ); - } + public function testsetupFromXmlform() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setupFromXmlform', $methods ), 'exists method setupFromXmlform' ); + $r = new ReflectionMethod('pagedTable', 'setupFromXmlform'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlForm'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::count * @todo Implement testcount(). */ - public function testcount() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'count', $methods ), 'seems like this function is outside this class' ); - } + public function testcount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('count', $methods ), 'exists method count' ); + $r = new ReflectionMethod('pagedTable', 'count'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::renderTitle * @todo Implement testrenderTitle(). */ - public function testrenderTitle() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'renderTitle', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTitle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTitle', $methods ), 'exists method renderTitle' ); + $r = new ReflectionMethod('pagedTable', 'renderTitle'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::renderField * @todo Implement testrenderField(). */ - public function testrenderField() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'renderField', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderField() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderField', $methods ), 'exists method renderField' ); + $r = new ReflectionMethod('pagedTable', 'renderField'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'row'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'r'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'result'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::defaultStyle * @todo Implement testdefaultStyle(). */ - public function testdefaultStyle() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'defaultStyle', $methods ), 'seems like this function is outside this class' ); - } + public function testdefaultStyle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('defaultStyle', $methods ), 'exists method defaultStyle' ); + $r = new ReflectionMethod('pagedTable', 'defaultStyle'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::renderTable * @todo Implement testrenderTable(). */ - public function testrenderTable() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' ); + $r = new ReflectionMethod('pagedTable', 'renderTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'block'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pagedTable::printForm * @todo Implement testprintForm(). */ - public function testprintForm() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'printForm', $methods ), 'seems like this function is outside this class' ); - } - } + public function testprintForm() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printForm', $methods ), 'exists method printForm' ); + $r = new ReflectionMethod('pagedTable', 'printForm'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'data'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers pagedTable::var_dump2 - * @todo Implement testvar_dump2(). - */ - public function testvar_dump2() - { - if (class_exists('pagedTable')) { - $methods = get_class_methods( 'pagedTable'); - $this->assertTrue( in_array( 'var_dump2', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/gulliver/system/classsoapNtlmTest.php b/tests/automated/gulliver/system/classsoapNtlmTest.php deleted file mode 100644 index 7238f4c51..000000000 --- a/tests/automated/gulliver/system/classsoapNtlmTest.php +++ /dev/null @@ -1,157 +0,0 @@ -assertTrue( in_array( 'getuser', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::getpassword - * @todo Implement testgetpassword(). - */ - public function testgetpassword() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'getpassword', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_open - * @todo Implement teststream_open(). - */ - public function teststream_open() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_open', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_close - * @todo Implement teststream_close(). - */ - public function teststream_close() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_close', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_read - * @todo Implement teststream_read(). - */ - public function teststream_read() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_read', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_write - * @todo Implement teststream_write(). - */ - public function teststream_write() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_write', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_eof - * @todo Implement teststream_eof(). - */ - public function teststream_eof() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_eof', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_tell - * @todo Implement teststream_tell(). - */ - public function teststream_tell() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_tell', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_flush - * @todo Implement teststream_flush(). - */ - public function teststream_flush() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_flush', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::stream_stat - * @todo Implement teststream_stat(). - */ - public function teststream_stat() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'stream_stat', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::url_stat - * @todo Implement testurl_stat(). - */ - public function testurl_stat() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'url_stat', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers soapNtlm::createBuffer - * @todo Implement testcreateBuffer(). - */ - public function testcreateBuffer() - { - if (class_exists('soapNtlm')) { - $methods = get_class_methods( 'soapNtlm'); - $this->assertTrue( in_array( 'createBuffer', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/gulliver/system/classtestToolsTest.php b/tests/automated/gulliver/system/classtestToolsTest.php index 6d87cfb74..50b28d239 100644 --- a/tests/automated/gulliver/system/classtestToolsTest.php +++ b/tests/automated/gulliver/system/classtestToolsTest.php @@ -1,109 +1,199 @@ -object = new testTools(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 7); + } - class classtestToolsTest extends PHPUnit_Framework_TestCase - { /** * @covers testTools::importDB * @todo Implement testimportDB(). */ - public function testimportDB() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'importDB', $methods ), 'seems like this function is outside this class' ); - } + public function testimportDB() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('importDB', $methods ), 'exists method importDB' ); + $r = new ReflectionMethod('testTools', 'importDB'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'host'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'user'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'password'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'database'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'importFile'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers testTools::importLocalDB * @todo Implement testimportLocalDB(). */ - public function testimportLocalDB() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'importLocalDB', $methods ), 'seems like this function is outside this class' ); - } + public function testimportLocalDB() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('importLocalDB', $methods ), 'exists method importLocalDB' ); + $r = new ReflectionMethod('testTools', 'importLocalDB'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'importFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers testTools::callMethod * @todo Implement testcallMethod(). */ - public function testcallMethod() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'callMethod', $methods ), 'seems like this function is outside this class' ); - } + public function testcallMethod() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('callMethod', $methods ), 'exists method callMethod' ); + $r = new ReflectionMethod('testTools', 'callMethod'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'methodFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'GET'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'POST'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'SESSION'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers testTools::arrayAppend * @todo Implement testarrayAppend(). */ - public function testarrayAppend() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' ); - } + public function testarrayAppend() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' ); + $r = new ReflectionMethod('testTools', 'arrayAppend'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'to'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'appendFrom'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers testTools::arrayDelete * @todo Implement testarrayDelete(). */ - public function testarrayDelete() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'arrayDelete', $methods ), 'seems like this function is outside this class' ); - } + public function testarrayDelete() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('arrayDelete', $methods ), 'exists method arrayDelete' ); + $r = new ReflectionMethod('testTools', 'arrayDelete'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers testTools::replaceVariables * @todo Implement testreplaceVariables(). */ - public function testreplaceVariables() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'replaceVariables', $methods ), 'seems like this function is outside this class' ); - } + public function testreplaceVariables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('replaceVariables', $methods ), 'exists method replaceVariables' ); + $r = new ReflectionMethod('testTools', 'replaceVariables'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'Fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'ExternalVariables'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers testTools::findValue * @todo Implement testfindValue(). */ - public function testfindValue() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'findValue', $methods ), 'seems like this function is outside this class' ); - } - } + public function testfindValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('findValue', $methods ), 'exists method findValue' ); + $r = new ReflectionMethod('testTools', 'findValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'obj'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers testTools::domain - * @todo Implement testdomain(). - */ - public function testdomain() - { - if (class_exists('testTools')) { - $methods = get_class_methods( 'testTools'); - $this->assertTrue( in_array( 'domain', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/gulliver/system/classunitTestTest.php b/tests/automated/gulliver/system/classunitTestTest.php index a9fade444..cbb69ae7b 100644 --- a/tests/automated/gulliver/system/classunitTestTest.php +++ b/tests/automated/gulliver/system/classunitTestTest.php @@ -1,85 +1,175 @@ -object = new unitTest(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 6); + } - class classunitTestTest extends PHPUnit_Framework_TestCase - { /** * @covers unitTest::unitTest * @todo Implement testunitTest(). */ - public function testunitTest() - { - if (class_exists('unitTest')) { - $methods = get_class_methods( 'unitTest'); - $this->assertTrue( in_array( 'unitTest', $methods ), 'seems like this function is outside this class' ); - } + public function testunitTest() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unitTest', $methods ), 'exists method unitTest' ); + $r = new ReflectionMethod('unitTest', 'unitTest'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ymlFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'testLime'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'testDomain'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers unitTest::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('unitTest')) { - $methods = get_class_methods( 'unitTest'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('unitTest', 'load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'testName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers unitTest::runSingle * @todo Implement testrunSingle(). */ - public function testrunSingle() - { - if (class_exists('unitTest')) { - $methods = get_class_methods( 'unitTest'); - $this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' ); - } + public function testrunSingle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' ); + $r = new ReflectionMethod('unitTest', 'runSingle'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers unitTest::runMultiple * @todo Implement testrunMultiple(). */ - public function testrunMultiple() - { - if (class_exists('unitTest')) { - $methods = get_class_methods( 'unitTest'); - $this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' ); - } + public function testrunMultiple() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' ); + $r = new ReflectionMethod('unitTest', 'runMultiple'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'count'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '-1'); + $this->assertTrue( $params[2]->getName() == 'start'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers unitTest::runAll * @todo Implement testrunAll(). */ - public function testrunAll() - { - if (class_exists('unitTest')) { - $methods = get_class_methods( 'unitTest'); - $this->assertTrue( in_array( 'runAll', $methods ), 'seems like this function is outside this class' ); - } + public function testrunAll() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('runAll', $methods ), 'exists method runAll' ); + $r = new ReflectionMethod('unitTest', 'runAll'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers unitTest::sampleTestFunction * @todo Implement testsampleTestFunction(). */ - public function testsampleTestFunction() - { - if (class_exists('unitTest')) { - $methods = get_class_methods( 'unitTest'); - $this->assertTrue( in_array( 'sampleTestFunction', $methods ), 'seems like this function is outside this class' ); - } + public function testsampleTestFunction() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sampleTestFunction', $methods ), 'exists method sampleTestFunction' ); + $r = new ReflectionMethod('unitTest', 'sampleTestFunction'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'testCase'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'Fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classxmlMenuTest.php b/tests/automated/gulliver/system/classxmlMenuTest.php index 92e34a654..202c07ed5 100644 --- a/tests/automated/gulliver/system/classxmlMenuTest.php +++ b/tests/automated/gulliver/system/classxmlMenuTest.php @@ -1,13 +1,49 @@ -object = new xmlMenu(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 13); + } - class classxmlMenuTest extends PHPUnit_Framework_TestCase - { } diff --git a/tests/automated/gulliver/system/classxmlformTemplateTest.php b/tests/automated/gulliver/system/classxmlformTemplateTest.php index 9996be90e..859150a2a 100644 --- a/tests/automated/gulliver/system/classxmlformTemplateTest.php +++ b/tests/automated/gulliver/system/classxmlformTemplateTest.php @@ -1,133 +1,252 @@ -object = new xmlformTemplate(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 68); + } - class classxmlformTemplateTest extends PHPUnit_Framework_TestCase - { /** * @covers xmlformTemplate::xmlformTemplate * @todo Implement testxmlformTemplate(). */ - public function testxmlformTemplate() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( 'xmlformTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testxmlformTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('xmlformTemplate', $methods ), 'exists method xmlformTemplate' ); + $r = new ReflectionMethod('xmlformTemplate', 'xmlformTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'form'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'templateFile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::printTemplate * @todo Implement testprintTemplate(). */ - public function testprintTemplate() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testprintTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' ); + $r = new ReflectionMethod('xmlformTemplate', 'printTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'form'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'target'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'smarty'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::printJavaScript * @todo Implement testprintJavaScript(). */ - public function testprintJavaScript() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( 'printJavaScript', $methods ), 'seems like this function is outside this class' ); - } + public function testprintJavaScript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printJavaScript', $methods ), 'exists method printJavaScript' ); + $r = new ReflectionMethod('xmlformTemplate', 'printJavaScript'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'form'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::printJSFile * @todo Implement testprintJSFile(). */ - public function testprintJSFile() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( 'printJSFile', $methods ), 'seems like this function is outside this class' ); - } + public function testprintJSFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printJSFile', $methods ), 'exists method printJSFile' ); + $r = new ReflectionMethod('xmlformTemplate', 'printJSFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'form'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::getFields * @todo Implement testgetFields(). */ - public function testgetFields() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' ); + $r = new ReflectionMethod('xmlformTemplate', 'getFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'form'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'therow'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::printObject * @todo Implement testprintObject(). */ - public function testprintObject() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' ); - } + public function testprintObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' ); + $r = new ReflectionMethod('xmlformTemplate', 'printObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'form'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'therow'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '-1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::_get_template * @todo Implement test_get_template(). */ - public function test_get_template() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( '_get_template', $methods ), 'seems like this function is outside this class' ); - } + public function test_get_template() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_get_template', $methods ), 'exists method _get_template' ); + $r = new ReflectionMethod('xmlformTemplate', '_get_template'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tpl_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tpl_source'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'smarty_obj'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::_get_timestamp * @todo Implement test_get_timestamp(). */ - public function test_get_timestamp() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( '_get_timestamp', $methods ), 'seems like this function is outside this class' ); - } + public function test_get_timestamp() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_get_timestamp', $methods ), 'exists method _get_timestamp' ); + $r = new ReflectionMethod('xmlformTemplate', '_get_timestamp'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tpl_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tpl_timestamp'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'smarty_obj'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::_get_secure * @todo Implement test_get_secure(). */ - public function test_get_secure() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( '_get_secure', $methods ), 'seems like this function is outside this class' ); - } + public function test_get_secure() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_get_secure', $methods ), 'exists method _get_secure' ); + $r = new ReflectionMethod('xmlformTemplate', '_get_secure'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tpl_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'smarty_obj'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers xmlformTemplate::_get_trusted * @todo Implement test_get_trusted(). */ - public function test_get_trusted() - { - if (class_exists('xmlformTemplate')) { - $methods = get_class_methods( 'xmlformTemplate'); - $this->assertTrue( in_array( '_get_trusted', $methods ), 'seems like this function is outside this class' ); - } + public function test_get_trusted() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_get_trusted', $methods ), 'exists method _get_trusted' ); + $r = new ReflectionMethod('xmlformTemplate', '_get_trusted'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tpl_name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'smarty_obj'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classymlDomainTest.php b/tests/automated/gulliver/system/classymlDomainTest.php index 67afcd4cb..d1256913c 100644 --- a/tests/automated/gulliver/system/classymlDomainTest.php +++ b/tests/automated/gulliver/system/classymlDomainTest.php @@ -1,145 +1,245 @@ -object = new ymlDomain(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 11); + } - class classymlDomainTest extends PHPUnit_Framework_TestCase - { /** * @covers ymlDomain::ymlDomain * @todo Implement testymlDomain(). */ - public function testymlDomain() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'ymlDomain', $methods ), 'seems like this function is outside this class' ); - } + public function testymlDomain() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ymlDomain', $methods ), 'exists method ymlDomain' ); + $r = new ReflectionMethod('ymlDomain', 'ymlDomain'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::addDomain * @todo Implement testaddDomain(). */ - public function testaddDomain() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'addDomain', $methods ), 'seems like this function is outside this class' ); - } + public function testaddDomain() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addDomain', $methods ), 'exists method addDomain' ); + $r = new ReflectionMethod('ymlDomain', 'addDomain'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'domainName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::addDomainValue * @todo Implement testaddDomainValue(). */ - public function testaddDomainValue() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'addDomainValue', $methods ), 'seems like this function is outside this class' ); - } + public function testaddDomainValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addDomainValue', $methods ), 'exists method addDomainValue' ); + $r = new ReflectionMethod('ymlDomain', 'addDomainValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'domainName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::exists * @todo Implement testexists(). */ - public function testexists() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'exists', $methods ), 'seems like this function is outside this class' ); - } + public function testexists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('exists', $methods ), 'exists method exists' ); + $r = new ReflectionMethod('ymlDomain', 'exists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'domainName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::get * @todo Implement testget(). */ - public function testget() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' ); - } + public function testget() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get', $methods ), 'exists method get' ); + $r = new ReflectionMethod('ymlDomain', 'get'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'resource'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::name2keys * @todo Implement testname2keys(). */ - public function testname2keys() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'name2keys', $methods ), 'seems like this function is outside this class' ); - } + public function testname2keys() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('name2keys', $methods ), 'exists method name2keys' ); + $r = new ReflectionMethod('ymlDomain', 'name2keys'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'resource'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('ymlDomain', 'load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'resource'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::find * @todo Implement testfind(). */ - public function testfind() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'find', $methods ), 'seems like this function is outside this class' ); - } + public function testfind() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('find', $methods ), 'exists method find' ); + $r = new ReflectionMethod('ymlDomain', 'find'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'nodesKey'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'where'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::getNode * @todo Implement testgetNode(). */ - public function testgetNode() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' ); + $r = new ReflectionMethod('ymlDomain', 'getNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'nodeKey'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'from'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::plainArray * @todo Implement testplainArray(). */ - public function testplainArray() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'plainArray', $methods ), 'seems like this function is outside this class' ); - } + public function testplainArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('plainArray', $methods ), 'exists method plainArray' ); + $r = new ReflectionMethod('ymlDomain', 'plainArray'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlDomain::arrayAppend * @todo Implement testarrayAppend(). */ - public function testarrayAppend() - { - if (class_exists('ymlDomain')) { - $methods = get_class_methods( 'ymlDomain'); - $this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' ); - } + public function testarrayAppend() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' ); + $r = new ReflectionMethod('ymlDomain', 'arrayAppend'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'to'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'appendFrom'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/gulliver/system/classymlTestCasesTest.php b/tests/automated/gulliver/system/classymlTestCasesTest.php index ac7319882..392565206 100644 --- a/tests/automated/gulliver/system/classymlTestCasesTest.php +++ b/tests/automated/gulliver/system/classymlTestCasesTest.php @@ -1,85 +1,195 @@ -object = new ymlTestCases(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 6); + } - class classymlTestCasesTest extends PHPUnit_Framework_TestCase - { /** * @covers ymlTestCases::ymlTestCases * @todo Implement testymlTestCases(). */ - public function testymlTestCases() - { - if (class_exists('ymlTestCases')) { - $methods = get_class_methods( 'ymlTestCases'); - $this->assertTrue( in_array( 'ymlTestCases', $methods ), 'seems like this function is outside this class' ); - } + public function testymlTestCases() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ymlTestCases', $methods ), 'exists method ymlTestCases' ); + $r = new ReflectionMethod('ymlTestCases', 'ymlTestCases'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'testCaseFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'testDomain'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'testLime'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlTestCases::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('ymlTestCases')) { - $methods = get_class_methods( 'ymlTestCases'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('ymlTestCases', 'load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'inputTestCasesIndex'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'TestCases'); + $this->assertTrue( $params[1]->getName() == 'fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlTestCases::addToPlan * @todo Implement testaddToPlan(). */ - public function testaddToPlan() - { - if (class_exists('ymlTestCases')) { - $methods = get_class_methods( 'ymlTestCases'); - $this->assertTrue( in_array( 'addToPlan', $methods ), 'seems like this function is outside this class' ); - } + public function testaddToPlan() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addToPlan', $methods ), 'exists method addToPlan' ); + $r = new ReflectionMethod('ymlTestCases', 'addToPlan'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'count'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '-1'); + $this->assertTrue( $params[1]->getName() == 'start'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlTestCases::run * @todo Implement testrun(). */ - public function testrun() - { - if (class_exists('ymlTestCases')) { - $methods = get_class_methods( 'ymlTestCases'); - $this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' ); - } + public function testrun() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('run', $methods ), 'exists method run' ); + $r = new ReflectionMethod('ymlTestCases', 'run'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'testerObject'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[2]->getName() == 'count'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '-1'); + $this->assertTrue( $params[3]->getName() == 'start'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlTestCases::runSingle * @todo Implement testrunSingle(). */ - public function testrunSingle() - { - if (class_exists('ymlTestCases')) { - $methods = get_class_methods( 'ymlTestCases'); - $this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' ); - } + public function testrunSingle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' ); + $r = new ReflectionMethod('ymlTestCases', 'runSingle'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'testerObject'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ymlTestCases::runMultiple * @todo Implement testrunMultiple(). */ - public function testrunMultiple() - { - if (class_exists('ymlTestCases')) { - $methods = get_class_methods( 'ymlTestCases'); - $this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' ); - } + public function testrunMultiple() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' ); + $r = new ReflectionMethod('ymlTestCases', 'runMultiple'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'testerObject'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[2]->getName() == 'count'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '-1'); + $this->assertTrue( $params[3]->getName() == 'start'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classApplicationsTest.php b/tests/automated/workflow/engine/classes/classApplicationsTest.php index d04f5d6ad..a04a47caa 100644 --- a/tests/automated/workflow/engine/classes/classApplicationsTest.php +++ b/tests/automated/workflow/engine/classes/classApplicationsTest.php @@ -1,75 +1,208 @@ -object = new Applications(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 5); + } - class classApplicationsTest extends PHPUnit_Framework_TestCase - { /** * @covers Applications::getAll * @todo Implement testgetAll(). */ - public function testgetAll() - { - if (class_exists('Applications')) { - $methods = get_class_methods( 'Applications'); - $this->assertTrue( in_array( 'getAll', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAll() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAll', $methods ), 'exists method getAll' ); + $r = new ReflectionMethod('Applications', 'getAll'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'start'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'limit'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'action'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'filter'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'search'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'process'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->assertTrue( $params[7]->getName() == 'user'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == ''); + $this->assertTrue( $params[8]->getName() == 'status'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == ''); + $this->assertTrue( $params[9]->getName() == 'type'); + $this->assertTrue( $params[9]->isArray() == false); + $this->assertTrue( $params[9]->isOptional () == true); + $this->assertTrue( $params[9]->getDefaultValue() == ''); + $this->assertTrue( $params[10]->getName() == 'dateFrom'); + $this->assertTrue( $params[10]->isArray() == false); + $this->assertTrue( $params[10]->isOptional () == true); + $this->assertTrue( $params[10]->getDefaultValue() == ''); + $this->assertTrue( $params[11]->getName() == 'dateTo'); + $this->assertTrue( $params[11]->isArray() == false); + $this->assertTrue( $params[11]->isOptional () == true); + $this->assertTrue( $params[11]->getDefaultValue() == ''); + $this->assertTrue( $params[12]->getName() == 'callback'); + $this->assertTrue( $params[12]->isArray() == false); + $this->assertTrue( $params[12]->isOptional () == true); + $this->assertTrue( $params[12]->getDefaultValue() == ''); + $this->assertTrue( $params[13]->getName() == 'dir'); + $this->assertTrue( $params[13]->isArray() == false); + $this->assertTrue( $params[13]->isOptional () == true); + $this->assertTrue( $params[13]->getDefaultValue() == ''); + $this->assertTrue( $params[14]->getName() == 'sort'); + $this->assertTrue( $params[14]->isArray() == false); + $this->assertTrue( $params[14]->isOptional () == true); + $this->assertTrue( $params[14]->getDefaultValue() == 'APP_CACHE_VIEW.APP_NUMBER'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Applications::setDefaultFields * @todo Implement testsetDefaultFields(). */ - public function testsetDefaultFields() - { - if (class_exists('Applications')) { - $methods = get_class_methods( 'Applications'); - $this->assertTrue( in_array( 'setDefaultFields', $methods ), 'seems like this function is outside this class' ); - } + public function testsetDefaultFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setDefaultFields', $methods ), 'exists method setDefaultFields' ); + $r = new ReflectionMethod('Applications', 'setDefaultFields'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Applications::getDefaultFields * @todo Implement testgetDefaultFields(). */ - public function testgetDefaultFields() - { - if (class_exists('Applications')) { - $methods = get_class_methods( 'Applications'); - $this->assertTrue( in_array( 'getDefaultFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDefaultFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDefaultFields', $methods ), 'exists method getDefaultFields' ); + $r = new ReflectionMethod('Applications', 'getDefaultFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'action'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Applications::genericJsonResponse * @todo Implement testgenericJsonResponse(). */ - public function testgenericJsonResponse() - { - if (class_exists('Applications')) { - $methods = get_class_methods( 'Applications'); - $this->assertTrue( in_array( 'genericJsonResponse', $methods ), 'seems like this function is outside this class' ); - } + public function testgenericJsonResponse() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('genericJsonResponse', $methods ), 'exists method genericJsonResponse' ); + $r = new ReflectionMethod('Applications', 'genericJsonResponse'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pmtable'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'first'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'second'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'rowsperpage'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'dateFormat'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Applications::getSteps * @todo Implement testgetSteps(). */ - public function testgetSteps() - { - if (class_exists('Applications')) { - $methods = get_class_methods( 'Applications'); - $this->assertTrue( in_array( 'getSteps', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSteps() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSteps', $methods ), 'exists method getSteps' ); + $r = new ReflectionMethod('Applications', 'getSteps'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'appUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'index'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'tasUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'proUid'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classArrayBasePeerTest.php b/tests/automated/workflow/engine/classes/classArrayBasePeerTest.php deleted file mode 100644 index 55dd120b2..000000000 --- a/tests/automated/workflow/engine/classes/classArrayBasePeerTest.php +++ /dev/null @@ -1,267 +0,0 @@ -assertTrue( in_array( 'getMapBuilder', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::getPhpNameMap - * @todo Implement testgetPhpNameMap(). - */ - public function testgetPhpNameMap() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'getPhpNameMap', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::translateFieldName - * @todo Implement testtranslateFieldName(). - */ - public function testtranslateFieldName() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'translateFieldName', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::getFieldNames - * @todo Implement testgetFieldNames(). - */ - public function testgetFieldNames() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::alias - * @todo Implement testalias(). - */ - public function testalias() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'alias', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::addSelectColumns - * @todo Implement testaddSelectColumns(). - */ - public function testaddSelectColumns() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'addSelectColumns', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doCount - * @todo Implement testdoCount(). - */ - public function testdoCount() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doCount', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doSelectOne - * @todo Implement testdoSelectOne(). - */ - public function testdoSelectOne() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doSelectOne', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::createSelectSql - * @todo Implement testcreateSelectSql(). - */ - public function testcreateSelectSql() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'createSelectSql', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doSelect - * @todo Implement testdoSelect(). - */ - public function testdoSelect() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doSelect', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doSelectRS - * @todo Implement testdoSelectRS(). - */ - public function testdoSelectRS() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doSelectRS', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::populateObjects - * @todo Implement testpopulateObjects(). - */ - public function testpopulateObjects() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'populateObjects', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::getTableMap - * @todo Implement testgetTableMap(). - */ - public function testgetTableMap() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'getTableMap', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::getOMClass - * @todo Implement testgetOMClass(). - */ - public function testgetOMClass() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'getOMClass', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doInsert - * @todo Implement testdoInsert(). - */ - public function testdoInsert() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doInsert', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doUpdate - * @todo Implement testdoUpdate(). - */ - public function testdoUpdate() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doUpdate', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doDeleteAll - * @todo Implement testdoDeleteAll(). - */ - public function testdoDeleteAll() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doDeleteAll', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doDelete - * @todo Implement testdoDelete(). - */ - public function testdoDelete() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doDelete', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::doValidate - * @todo Implement testdoValidate(). - */ - public function testdoValidate() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'doValidate', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::retrieveByPK - * @todo Implement testretrieveByPK(). - */ - public function testretrieveByPK() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'retrieveByPK', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ArrayBasePeer::retrieveByPKs - * @todo Implement testretrieveByPKs(). - */ - public function testretrieveByPKs() - { - if (class_exists('ArrayBasePeer')) { - $methods = get_class_methods( 'ArrayBasePeer'); - $this->assertTrue( in_array( 'retrieveByPKs', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/workflow/engine/classes/classCLITest.php b/tests/automated/workflow/engine/classes/classCLITest.php index 8c65128a6..d34290fde 100644 --- a/tests/automated/workflow/engine/classes/classCLITest.php +++ b/tests/automated/workflow/engine/classes/classCLITest.php @@ -1,171 +1,293 @@ -object = new CLI(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 13); + } - class classCLITest extends PHPUnit_Framework_TestCase - { /** * @covers CLI::taskName * @todo Implement testtaskName(). */ - public function testtaskName() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'taskName', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskName() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskName', $methods ), 'exists method taskName' ); + $r = new ReflectionMethod('CLI', 'taskName'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::taskDescription * @todo Implement testtaskDescription(). */ - public function testtaskDescription() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'taskDescription', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskDescription() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskDescription', $methods ), 'exists method taskDescription' ); + $r = new ReflectionMethod('CLI', 'taskDescription'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'description'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::taskArg * @todo Implement testtaskArg(). */ - public function testtaskArg() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'taskArg', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskArg() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskArg', $methods ), 'exists method taskArg' ); + $r = new ReflectionMethod('CLI', 'taskArg'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'optional'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->assertTrue( $params[2]->getName() == 'multiple'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::taskOpt * @todo Implement testtaskOpt(). */ - public function testtaskOpt() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'taskOpt', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskOpt() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskOpt', $methods ), 'exists method taskOpt' ); + $r = new ReflectionMethod('CLI', 'taskOpt'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'description'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'short'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'long'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::taskRun * @todo Implement testtaskRun(). */ - public function testtaskRun() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'taskRun', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskRun() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskRun', $methods ), 'exists method taskRun' ); + $r = new ReflectionMethod('CLI', 'taskRun'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'function'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::help * @todo Implement testhelp(). */ - public function testhelp() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'help', $methods ), 'seems like this function is outside this class' ); - } + public function testhelp() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('help', $methods ), 'exists method help' ); + $r = new ReflectionMethod('CLI', 'help'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'args'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'opts'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::run * @todo Implement testrun(). */ - public function testrun() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' ); - } + public function testrun() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('run', $methods ), 'exists method run' ); + $r = new ReflectionMethod('CLI', 'run'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::info * @todo Implement testinfo(). */ - public function testinfo() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'info', $methods ), 'seems like this function is outside this class' ); - } + public function testinfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('info', $methods ), 'exists method info' ); + $r = new ReflectionMethod('CLI', 'info'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::warning * @todo Implement testwarning(). */ - public function testwarning() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'warning', $methods ), 'seems like this function is outside this class' ); - } + public function testwarning() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('warning', $methods ), 'exists method warning' ); + $r = new ReflectionMethod('CLI', 'warning'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::error * @todo Implement testerror(). */ - public function testerror() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' ); - } + public function testerror() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('error', $methods ), 'exists method error' ); + $r = new ReflectionMethod('CLI', 'error'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::prompt * @todo Implement testprompt(). */ - public function testprompt() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'prompt', $methods ), 'seems like this function is outside this class' ); - } + public function testprompt() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prompt', $methods ), 'exists method prompt' ); + $r = new ReflectionMethod('CLI', 'prompt'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::question * @todo Implement testquestion(). */ - public function testquestion() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'question', $methods ), 'seems like this function is outside this class' ); - } + public function testquestion() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('question', $methods ), 'exists method question' ); + $r = new ReflectionMethod('CLI', 'question'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers CLI::logging * @todo Implement testlogging(). */ - public function testlogging() - { - if (class_exists('CLI')) { - $methods = get_class_methods( 'CLI'); - $this->assertTrue( in_array( 'logging', $methods ), 'seems like this function is outside this class' ); - } + public function testlogging() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('logging', $methods ), 'exists method logging' ); + $r = new ReflectionMethod('CLI', 'logging'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'message'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'filename'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classCasesTest.php b/tests/automated/workflow/engine/classes/classCasesTest.php index 257fbfc5e..1985dc4dd 100644 --- a/tests/automated/workflow/engine/classes/classCasesTest.php +++ b/tests/automated/workflow/engine/classes/classCasesTest.php @@ -1,1155 +1,2123 @@ -object = new Cases(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 96); + } + + /** + * @covers Cases::__construct + * @todo Implement test__construct(). + */ + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('Cases', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + + } - class classCasesTest extends PHPUnit_Framework_TestCase - { /** * @covers Cases::canStartCase * @todo Implement testcanStartCase(). */ - public function testcanStartCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'canStartCase', $methods ), 'seems like this function is outside this class' ); - } + public function testcanStartCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('canStartCase', $methods ), 'exists method canStartCase' ); + $r = new ReflectionMethod('Cases', 'canStartCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUIDUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getStartCases * @todo Implement testgetStartCases(). */ - public function testgetStartCases() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getStartCases', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStartCases() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStartCases', $methods ), 'exists method getStartCases' ); + $r = new ReflectionMethod('Cases', 'getStartCases'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUIDUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getStartCasesPerType * @todo Implement testgetStartCasesPerType(). */ - public function testgetStartCasesPerType() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getStartCasesPerType', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStartCasesPerType() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStartCasesPerType', $methods ), 'exists method getStartCasesPerType' ); + $r = new ReflectionMethod('Cases', 'getStartCasesPerType'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUIDUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'typeView'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getSelfServiceTasks * @todo Implement testgetSelfServiceTasks(). */ - public function testgetSelfServiceTasks() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getSelfServiceTasks', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSelfServiceTasks() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSelfServiceTasks', $methods ), 'exists method getSelfServiceTasks' ); + $r = new ReflectionMethod('Cases', 'getSelfServiceTasks'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUIDUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::isSelfService * @todo Implement testisSelfService(). */ - public function testisSelfService() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'isSelfService', $methods ), 'seems like this function is outside this class' ); - } + public function testisSelfService() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isSelfService', $methods ), 'exists method isSelfService' ); + $r = new ReflectionMethod('Cases', 'isSelfService'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'USR_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'TAS_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::loadCase * @todo Implement testloadCase(). */ - public function testloadCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'loadCase', $methods ), 'seems like this function is outside this class' ); - } + public function testloadCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadCase', $methods ), 'exists method loadCase' ); + $r = new ReflectionMethod('Cases', 'loadCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::loadCaseByNumber * @todo Implement testloadCaseByNumber(). */ - public function testloadCaseByNumber() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'loadCaseByNumber', $methods ), 'seems like this function is outside this class' ); - } + public function testloadCaseByNumber() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadCaseByNumber', $methods ), 'exists method loadCaseByNumber' ); + $r = new ReflectionMethod('Cases', 'loadCaseByNumber'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCaseNumber'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::refreshCaseLabel * @todo Implement testrefreshCaseLabel(). */ - public function testrefreshCaseLabel() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'refreshCaseLabel', $methods ), 'seems like this function is outside this class' ); - } + public function testrefreshCaseLabel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('refreshCaseLabel', $methods ), 'exists method refreshCaseLabel' ); + $r = new ReflectionMethod('Cases', 'refreshCaseLabel'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aAppData'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sLabel'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::refreshCaseTitleAndDescription * @todo Implement testrefreshCaseTitleAndDescription(). */ - public function testrefreshCaseTitleAndDescription() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'refreshCaseTitleAndDescription', $methods ), 'seems like this function is outside this class' ); - } + public function testrefreshCaseTitleAndDescription() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('refreshCaseTitleAndDescription', $methods ), 'exists method refreshCaseTitleAndDescription' ); + $r = new ReflectionMethod('Cases', 'refreshCaseTitleAndDescription'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aAppData'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::newRefreshCaseTitleAndDescription * @todo Implement testnewRefreshCaseTitleAndDescription(). */ - public function testnewRefreshCaseTitleAndDescription() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'newRefreshCaseTitleAndDescription', $methods ), 'seems like this function is outside this class' ); - } + public function testnewRefreshCaseTitleAndDescription() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newRefreshCaseTitleAndDescription', $methods ), 'exists method newRefreshCaseTitleAndDescription' ); + $r = new ReflectionMethod('Cases', 'newRefreshCaseTitleAndDescription'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'aAppData'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::refreshCaseTitle * @todo Implement testrefreshCaseTitle(). */ - public function testrefreshCaseTitle() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'refreshCaseTitle', $methods ), 'seems like this function is outside this class' ); - } + public function testrefreshCaseTitle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('refreshCaseTitle', $methods ), 'exists method refreshCaseTitle' ); + $r = new ReflectionMethod('Cases', 'refreshCaseTitle'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aAppData'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::refreshCaseDescription * @todo Implement testrefreshCaseDescription(). */ - public function testrefreshCaseDescription() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'refreshCaseDescription', $methods ), 'seems like this function is outside this class' ); - } + public function testrefreshCaseDescription() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('refreshCaseDescription', $methods ), 'exists method refreshCaseDescription' ); + $r = new ReflectionMethod('Cases', 'refreshCaseDescription'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aAppData'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::refreshCaseStatusCode * @todo Implement testrefreshCaseStatusCode(). */ - public function testrefreshCaseStatusCode() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'refreshCaseStatusCode', $methods ), 'seems like this function is outside this class' ); - } + public function testrefreshCaseStatusCode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('refreshCaseStatusCode', $methods ), 'exists method refreshCaseStatusCode' ); + $r = new ReflectionMethod('Cases', 'refreshCaseStatusCode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aAppData'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::arrayRecursiveDiff * @todo Implement testarrayRecursiveDiff(). */ - public function testarrayRecursiveDiff() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'arrayRecursiveDiff', $methods ), 'seems like this function is outside this class' ); - } + public function testarrayRecursiveDiff() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('arrayRecursiveDiff', $methods ), 'exists method arrayRecursiveDiff' ); + $r = new ReflectionMethod('Cases', 'arrayRecursiveDiff'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aArray1'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aArray2'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::updateCase * @todo Implement testupdateCase(). */ - public function testupdateCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'updateCase', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateCase', $methods ), 'exists method updateCase' ); + $r = new ReflectionMethod('Cases', 'updateCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'Fields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::removeCase * @todo Implement testremoveCase(). */ - public function testremoveCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'removeCase', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeCase', $methods ), 'exists method removeCase' ); + $r = new ReflectionMethod('Cases', 'removeCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::setDelInitDate * @todo Implement testsetDelInitDate(). */ - public function testsetDelInitDate() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'setDelInitDate', $methods ), 'seems like this function is outside this class' ); - } + public function testsetDelInitDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setDelInitDate', $methods ), 'exists method setDelInitDate' ); + $r = new ReflectionMethod('Cases', 'setDelInitDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::setCatchUser * @todo Implement testsetCatchUser(). */ - public function testsetCatchUser() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'setCatchUser', $methods ), 'seems like this function is outside this class' ); - } + public function testsetCatchUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setCatchUser', $methods ), 'exists method setCatchUser' ); + $r = new ReflectionMethod('Cases', 'setCatchUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'usrId'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::GetOpenThreads * @todo Implement testGetOpenThreads(). */ - public function testGetOpenThreads() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'GetOpenThreads', $methods ), 'seems like this function is outside this class' ); - } + public function testGetOpenThreads() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('GetOpenThreads', $methods ), 'exists method GetOpenThreads' ); + $r = new ReflectionMethod('Cases', 'GetOpenThreads'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getSiblingThreads * @todo Implement testgetSiblingThreads(). */ - public function testgetSiblingThreads() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getSiblingThreads', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSiblingThreads() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSiblingThreads', $methods ), 'exists method getSiblingThreads' ); + $r = new ReflectionMethod('Cases', 'getSiblingThreads'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getOpenSiblingThreads * @todo Implement testgetOpenSiblingThreads(). */ - public function testgetOpenSiblingThreads() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getOpenSiblingThreads', $methods ), 'seems like this function is outside this class' ); - } + public function testgetOpenSiblingThreads() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getOpenSiblingThreads', $methods ), 'exists method getOpenSiblingThreads' ); + $r = new ReflectionMethod('Cases', 'getOpenSiblingThreads'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNextTask'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sAppUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iDelIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sCurrentTask'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::searchOpenPreviousTasks * @todo Implement testsearchOpenPreviousTasks(). */ - public function testsearchOpenPreviousTasks() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'searchOpenPreviousTasks', $methods ), 'seems like this function is outside this class' ); - } + public function testsearchOpenPreviousTasks() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('searchOpenPreviousTasks', $methods ), 'exists method searchOpenPreviousTasks' ); + $r = new ReflectionMethod('Cases', 'searchOpenPreviousTasks'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'taskUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sAppUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getReviewedTasks * @todo Implement testgetReviewedTasks(). */ - public function testgetReviewedTasks() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getReviewedTasks', $methods ), 'seems like this function is outside this class' ); - } + public function testgetReviewedTasks() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getReviewedTasks', $methods ), 'exists method getReviewedTasks' ); + $r = new ReflectionMethod('Cases', 'getReviewedTasks'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'taskUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sAppUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::CountTotalPreviousTasks * @todo Implement testCountTotalPreviousTasks(). */ - public function testCountTotalPreviousTasks() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'CountTotalPreviousTasks', $methods ), 'seems like this function is outside this class' ); - } + public function testCountTotalPreviousTasks() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('CountTotalPreviousTasks', $methods ), 'exists method CountTotalPreviousTasks' ); + $r = new ReflectionMethod('Cases', 'CountTotalPreviousTasks'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTasUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getOpenNullDelegations * @todo Implement testgetOpenNullDelegations(). */ - public function testgetOpenNullDelegations() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getOpenNullDelegations', $methods ), 'seems like this function is outside this class' ); - } + public function testgetOpenNullDelegations() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getOpenNullDelegations', $methods ), 'exists method getOpenNullDelegations' ); + $r = new ReflectionMethod('Cases', 'getOpenNullDelegations'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sTasUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::isRouteOpen * @todo Implement testisRouteOpen(). */ - public function testisRouteOpen() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'isRouteOpen', $methods ), 'seems like this function is outside this class' ); - } + public function testisRouteOpen() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isRouteOpen', $methods ), 'exists method isRouteOpen' ); + $r = new ReflectionMethod('Cases', 'isRouteOpen'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sTasUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::newAppDelegation * @todo Implement testnewAppDelegation(). */ - public function testnewAppDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'newAppDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testnewAppDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newAppDelegation', $methods ), 'exists method newAppDelegation' ); + $r = new ReflectionMethod('Cases', 'newAppDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sAppUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTasUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sUsrUid'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sPrevious'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'iPriority'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->assertTrue( $params[6]->getName() == 'sDelType'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == false); + $this->assertTrue( $params[7]->getName() == 'iAppThreadIndex'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == '1'); + $this->assertTrue( $params[8]->getName() == 'nextDel'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::updateAppDelegation * @todo Implement testupdateAppDelegation(). */ - public function testupdateAppDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'updateAppDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateAppDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateAppDelegation', $methods ), 'exists method updateAppDelegation' ); + $r = new ReflectionMethod('Cases', 'updateAppDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iAppThreadIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::GetAllDelegations * @todo Implement testGetAllDelegations(). */ - public function testGetAllDelegations() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'GetAllDelegations', $methods ), 'seems like this function is outside this class' ); - } + public function testGetAllDelegations() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('GetAllDelegations', $methods ), 'exists method GetAllDelegations' ); + $r = new ReflectionMethod('Cases', 'GetAllDelegations'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::GetAllThreads * @todo Implement testGetAllThreads(). */ - public function testGetAllThreads() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'GetAllThreads', $methods ), 'seems like this function is outside this class' ); - } + public function testGetAllThreads() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('GetAllThreads', $methods ), 'exists method GetAllThreads' ); + $r = new ReflectionMethod('Cases', 'GetAllThreads'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::updateAppThread * @todo Implement testupdateAppThread(). */ - public function testupdateAppThread() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'updateAppThread', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateAppThread() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateAppThread', $methods ), 'exists method updateAppThread' ); + $r = new ReflectionMethod('Cases', 'updateAppThread'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iAppThreadIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iNewDelIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::closeAppThread * @todo Implement testcloseAppThread(). */ - public function testcloseAppThread() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'closeAppThread', $methods ), 'seems like this function is outside this class' ); - } + public function testcloseAppThread() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('closeAppThread', $methods ), 'exists method closeAppThread' ); + $r = new ReflectionMethod('Cases', 'closeAppThread'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iAppThreadIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::closeAllThreads * @todo Implement testcloseAllThreads(). */ - public function testcloseAllThreads() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'closeAllThreads', $methods ), 'seems like this function is outside this class' ); - } + public function testcloseAllThreads() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('closeAllThreads', $methods ), 'exists method closeAllThreads' ); + $r = new ReflectionMethod('Cases', 'closeAllThreads'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::newAppThread * @todo Implement testnewAppThread(). */ - public function testnewAppThread() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'newAppThread', $methods ), 'seems like this function is outside this class' ); - } + public function testnewAppThread() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newAppThread', $methods ), 'exists method newAppThread' ); + $r = new ReflectionMethod('Cases', 'newAppThread'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iNewDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iAppParent'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::closeAllDelegations * @todo Implement testcloseAllDelegations(). */ - public function testcloseAllDelegations() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'closeAllDelegations', $methods ), 'seems like this function is outside this class' ); - } + public function testcloseAllDelegations() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('closeAllDelegations', $methods ), 'exists method closeAllDelegations' ); + $r = new ReflectionMethod('Cases', 'closeAllDelegations'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::CloseCurrentDelegation * @todo Implement testCloseCurrentDelegation(). */ - public function testCloseCurrentDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'CloseCurrentDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testCloseCurrentDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('CloseCurrentDelegation', $methods ), 'exists method CloseCurrentDelegation' ); + $r = new ReflectionMethod('Cases', 'CloseCurrentDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::ReactivateCurrentDelegation * @todo Implement testReactivateCurrentDelegation(). */ - public function testReactivateCurrentDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'ReactivateCurrentDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testReactivateCurrentDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ReactivateCurrentDelegation', $methods ), 'exists method ReactivateCurrentDelegation' ); + $r = new ReflectionMethod('Cases', 'ReactivateCurrentDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelegation'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::startCase * @todo Implement teststartCase(). */ - public function teststartCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'startCase', $methods ), 'seems like this function is outside this class' ); - } + public function teststartCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('startCase', $methods ), 'exists method startCase' ); + $r = new ReflectionMethod('Cases', 'startCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTasUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUsrUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'isSubprocess'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getNextStep * @todo Implement testgetNextStep(). */ - public function testgetNextStep() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getNextStep', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNextStep() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNextStep', $methods ), 'exists method getNextStep' ); + $r = new ReflectionMethod('Cases', 'getNextStep'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sAppUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'iDelIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->assertTrue( $params[3]->getName() == 'iPosition'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getPreviousStep * @todo Implement testgetPreviousStep(). */ - public function testgetPreviousStep() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getPreviousStep', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPreviousStep() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPreviousStep', $methods ), 'exists method getPreviousStep' ); + $r = new ReflectionMethod('Cases', 'getPreviousStep'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sAppUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'iDelIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->assertTrue( $params[3]->getName() == 'iPosition'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getNextSupervisorStep * @todo Implement testgetNextSupervisorStep(). */ - public function testgetNextSupervisorStep() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getNextSupervisorStep', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNextSupervisorStep() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNextSupervisorStep', $methods ), 'exists method getNextSupervisorStep' ); + $r = new ReflectionMethod('Cases', 'getNextSupervisorStep'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iPosition'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'DYNAFORM'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getPreviousSupervisorStep * @todo Implement testgetPreviousSupervisorStep(). */ - public function testgetPreviousSupervisorStep() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getPreviousSupervisorStep', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPreviousSupervisorStep() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPreviousSupervisorStep', $methods ), 'exists method getPreviousSupervisorStep' ); + $r = new ReflectionMethod('Cases', 'getPreviousSupervisorStep'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iPosition'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'DYNAFORM'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getTransferHistoryCriteria * @todo Implement testgetTransferHistoryCriteria(). */ - public function testgetTransferHistoryCriteria() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getTransferHistoryCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTransferHistoryCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTransferHistoryCriteria', $methods ), 'exists method getTransferHistoryCriteria' ); + $r = new ReflectionMethod('Cases', 'getTransferHistoryCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::prepareCriteriaForToDo * @todo Implement testprepareCriteriaForToDo(). */ - public function testprepareCriteriaForToDo() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'prepareCriteriaForToDo', $methods ), 'seems like this function is outside this class' ); - } + public function testprepareCriteriaForToDo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prepareCriteriaForToDo', $methods ), 'exists method prepareCriteriaForToDo' ); + $r = new ReflectionMethod('Cases', 'prepareCriteriaForToDo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUIDUserLogged'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getConditionCasesList * @todo Implement testgetConditionCasesList(). */ - public function testgetConditionCasesList() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getConditionCasesList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetConditionCasesList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getConditionCasesList', $methods ), 'exists method getConditionCasesList' ); + $r = new ReflectionMethod('Cases', 'getConditionCasesList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTypeList'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'all'); + $this->assertTrue( $params[1]->getName() == 'sUIDUserLogged'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'ClearSession'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '1'); + $this->assertTrue( $params[3]->getName() == 'aAdditionalFilter'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::loadCaseInCurrentDelegation * @todo Implement testloadCaseInCurrentDelegation(). */ - public function testloadCaseInCurrentDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'loadCaseInCurrentDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testloadCaseInCurrentDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadCaseInCurrentDelegation', $methods ), 'exists method loadCaseInCurrentDelegation' ); + $r = new ReflectionMethod('Cases', 'loadCaseInCurrentDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'APP_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::loadCaseByDelegation * @todo Implement testloadCaseByDelegation(). */ - public function testloadCaseByDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'loadCaseByDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testloadCaseByDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadCaseByDelegation', $methods ), 'exists method loadCaseByDelegation' ); + $r = new ReflectionMethod('Cases', 'loadCaseByDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'appUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'delIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::ThrowUnpauseDaemon * @todo Implement testThrowUnpauseDaemon(). */ - public function testThrowUnpauseDaemon() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'ThrowUnpauseDaemon', $methods ), 'seems like this function is outside this class' ); - } + public function testThrowUnpauseDaemon() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ThrowUnpauseDaemon', $methods ), 'exists method ThrowUnpauseDaemon' ); + $r = new ReflectionMethod('Cases', 'ThrowUnpauseDaemon'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'today'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::UnpauseRoutedCasesWithPauseFlagEnabled * @todo Implement testUnpauseRoutedCasesWithPauseFlagEnabled(). */ - public function testUnpauseRoutedCasesWithPauseFlagEnabled() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'UnpauseRoutedCasesWithPauseFlagEnabled', $methods ), 'seems like this function is outside this class' ); - } + public function testUnpauseRoutedCasesWithPauseFlagEnabled() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('UnpauseRoutedCasesWithPauseFlagEnabled', $methods ), 'exists method UnpauseRoutedCasesWithPauseFlagEnabled' ); + $r = new ReflectionMethod('Cases', 'UnpauseRoutedCasesWithPauseFlagEnabled'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'usrLogged'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getApplicationUIDByNumber * @todo Implement testgetApplicationUIDByNumber(). */ - public function testgetApplicationUIDByNumber() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getApplicationUIDByNumber', $methods ), 'seems like this function is outside this class' ); - } + public function testgetApplicationUIDByNumber() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getApplicationUIDByNumber', $methods ), 'exists method getApplicationUIDByNumber' ); + $r = new ReflectionMethod('Cases', 'getApplicationUIDByNumber'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'iApplicationNumber'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getCurrentDelegation * @todo Implement testgetCurrentDelegation(). */ - public function testgetCurrentDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getCurrentDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCurrentDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCurrentDelegation', $methods ), 'exists method getCurrentDelegation' ); + $r = new ReflectionMethod('Cases', 'getCurrentDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sUserUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::loadTriggers * @todo Implement testloadTriggers(). */ - public function testloadTriggers() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'loadTriggers', $methods ), 'seems like this function is outside this class' ); - } + public function testloadTriggers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadTriggers', $methods ), 'exists method loadTriggers' ); + $r = new ReflectionMethod('Cases', 'loadTriggers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTasUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sStepType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sStepUidObj'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sTriggerType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::executeTriggers * @todo Implement testexecuteTriggers(). */ - public function testexecuteTriggers() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'executeTriggers', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteTriggers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeTriggers', $methods ), 'exists method executeTriggers' ); + $r = new ReflectionMethod('Cases', 'executeTriggers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTasUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sStepType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sStepUidObj'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sTriggerType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getTriggerNames * @todo Implement testgetTriggerNames(). */ - public function testgetTriggerNames() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getTriggerNames', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTriggerNames() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTriggerNames', $methods ), 'exists method getTriggerNames' ); + $r = new ReflectionMethod('Cases', 'getTriggerNames'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'triggers'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getInputDocumentsCriteria * @todo Implement testgetInputDocumentsCriteria(). */ - public function testgetInputDocumentsCriteria() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getInputDocumentsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetInputDocumentsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getInputDocumentsCriteria', $methods ), 'exists method getInputDocumentsCriteria' ); + $r = new ReflectionMethod('Cases', 'getInputDocumentsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelegation'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sDocumentUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sAppDocuUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getInputDocumentsCriteriaToRevise * @todo Implement testgetInputDocumentsCriteriaToRevise(). */ - public function testgetInputDocumentsCriteriaToRevise() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getInputDocumentsCriteriaToRevise', $methods ), 'seems like this function is outside this class' ); - } + public function testgetInputDocumentsCriteriaToRevise() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getInputDocumentsCriteriaToRevise', $methods ), 'exists method getInputDocumentsCriteriaToRevise' ); + $r = new ReflectionMethod('Cases', 'getInputDocumentsCriteriaToRevise'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getOutputDocumentsCriteriaToRevise * @todo Implement testgetOutputDocumentsCriteriaToRevise(). */ - public function testgetOutputDocumentsCriteriaToRevise() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getOutputDocumentsCriteriaToRevise', $methods ), 'seems like this function is outside this class' ); - } + public function testgetOutputDocumentsCriteriaToRevise() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getOutputDocumentsCriteriaToRevise', $methods ), 'exists method getOutputDocumentsCriteriaToRevise' ); + $r = new ReflectionMethod('Cases', 'getOutputDocumentsCriteriaToRevise'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getCriteriaProcessCases * @todo Implement testgetCriteriaProcessCases(). */ - public function testgetCriteriaProcessCases() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getCriteriaProcessCases', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCriteriaProcessCases() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCriteriaProcessCases', $methods ), 'exists method getCriteriaProcessCases' ); + $r = new ReflectionMethod('Cases', 'getCriteriaProcessCases'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'PRO_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::pauseCase * @todo Implement testpauseCase(). */ - public function testpauseCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'pauseCase', $methods ), 'seems like this function is outside this class' ); - } + public function testpauseCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('pauseCase', $methods ), 'exists method pauseCase' ); + $r = new ReflectionMethod('Cases', 'pauseCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelegation'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sUserUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sUnpauseDate'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::unpauseCase * @todo Implement testunpauseCase(). */ - public function testunpauseCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'unpauseCase', $methods ), 'seems like this function is outside this class' ); - } + public function testunpauseCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unpauseCase', $methods ), 'exists method unpauseCase' ); + $r = new ReflectionMethod('Cases', 'unpauseCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelegation'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sUserUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::cancelCase * @todo Implement testcancelCase(). */ - public function testcancelCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'cancelCase', $methods ), 'seems like this function is outside this class' ); - } + public function testcancelCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('cancelCase', $methods ), 'exists method cancelCase' ); + $r = new ReflectionMethod('Cases', 'cancelCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'user_logged'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::reactivateCase * @todo Implement testreactivateCase(). */ - public function testreactivateCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'reactivateCase', $methods ), 'seems like this function is outside this class' ); - } + public function testreactivateCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reactivateCase', $methods ), 'exists method reactivateCase' ); + $r = new ReflectionMethod('Cases', 'reactivateCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'user_logged'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::reassignCase * @todo Implement testreassignCase(). */ - public function testreassignCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'reassignCase', $methods ), 'seems like this function is outside this class' ); - } + public function testreassignCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reassignCase', $methods ), 'exists method reassignCase' ); + $r = new ReflectionMethod('Cases', 'reassignCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelegation'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sUserUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'newUserUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sType'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == 'REASSIGN'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllDynaformsStepsToRevise * @todo Implement testgetAllDynaformsStepsToRevise(). */ - public function testgetAllDynaformsStepsToRevise() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllDynaformsStepsToRevise', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllDynaformsStepsToRevise() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllDynaformsStepsToRevise', $methods ), 'exists method getAllDynaformsStepsToRevise' ); + $r = new ReflectionMethod('Cases', 'getAllDynaformsStepsToRevise'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'APP_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllInputsStepsToRevise * @todo Implement testgetAllInputsStepsToRevise(). */ - public function testgetAllInputsStepsToRevise() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllInputsStepsToRevise', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllInputsStepsToRevise() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllInputsStepsToRevise', $methods ), 'exists method getAllInputsStepsToRevise' ); + $r = new ReflectionMethod('Cases', 'getAllInputsStepsToRevise'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'APP_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllUploadedDocumentsCriteria * @todo Implement testgetAllUploadedDocumentsCriteria(). */ - public function testgetAllUploadedDocumentsCriteria() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllUploadedDocumentsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllUploadedDocumentsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllUploadedDocumentsCriteria', $methods ), 'exists method getAllUploadedDocumentsCriteria' ); + $r = new ReflectionMethod('Cases', 'getAllUploadedDocumentsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTasKUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sUserUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllGeneratedDocumentsCriteria * @todo Implement testgetAllGeneratedDocumentsCriteria(). */ - public function testgetAllGeneratedDocumentsCriteria() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllGeneratedDocumentsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllGeneratedDocumentsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllGeneratedDocumentsCriteria', $methods ), 'exists method getAllGeneratedDocumentsCriteria' ); + $r = new ReflectionMethod('Cases', 'getAllGeneratedDocumentsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTasKUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sUserUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getallDynaformsCriteria * @todo Implement testgetallDynaformsCriteria(). */ - public function testgetallDynaformsCriteria() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getallDynaformsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetallDynaformsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getallDynaformsCriteria', $methods ), 'exists method getallDynaformsCriteria' ); + $r = new ReflectionMethod('Cases', 'getallDynaformsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTasKUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sUserUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::sendNotifications * @todo Implement testsendNotifications(). */ - public function testsendNotifications() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'sendNotifications', $methods ), 'seems like this function is outside this class' ); - } + public function testsendNotifications() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendNotifications', $methods ), 'exists method sendNotifications' ); + $r = new ReflectionMethod('Cases', 'sendNotifications'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCurrentTask'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aTasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'aFields'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'iDelegation'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'sFrom'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllObjects * @todo Implement testgetAllObjects(). */ - public function testgetAllObjects() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllObjects', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllObjects() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllObjects', $methods ), 'exists method getAllObjects' ); + $r = new ReflectionMethod('Cases', 'getAllObjects'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'PRO_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'APP_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'TAS_UID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'USR_UID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllObjectsFrom * @todo Implement testgetAllObjectsFrom(). */ - public function testgetAllObjectsFrom() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllObjectsFrom', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllObjectsFrom() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllObjectsFrom', $methods ), 'exists method getAllObjectsFrom' ); + $r = new ReflectionMethod('Cases', 'getAllObjectsFrom'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'PRO_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'APP_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'TAS_UID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'USR_UID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'ACTION'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::verifyCaseTracker * @todo Implement testverifyCaseTracker(). */ - public function testverifyCaseTracker() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'verifyCaseTracker', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyCaseTracker() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyCaseTracker', $methods ), 'exists method verifyCaseTracker' ); + $r = new ReflectionMethod('Cases', 'verifyCaseTracker'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'case'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pin'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::caseTrackerPermissions * @todo Implement testcaseTrackerPermissions(). */ - public function testcaseTrackerPermissions() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'caseTrackerPermissions', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseTrackerPermissions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseTrackerPermissions', $methods ), 'exists method caseTrackerPermissions' ); + $r = new ReflectionMethod('Cases', 'caseTrackerPermissions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'PRO_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::verifyTable * @todo Implement testverifyTable(). */ - public function testverifyTable() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'verifyTable', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyTable', $methods ), 'exists method verifyTable' ); + $r = new ReflectionMethod('Cases', 'verifyTable'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllUploadedDocumentsCriteriaTracker * @todo Implement testgetAllUploadedDocumentsCriteriaTracker(). */ - public function testgetAllUploadedDocumentsCriteriaTracker() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllUploadedDocumentsCriteriaTracker', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllUploadedDocumentsCriteriaTracker() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllUploadedDocumentsCriteriaTracker', $methods ), 'exists method getAllUploadedDocumentsCriteriaTracker' ); + $r = new ReflectionMethod('Cases', 'getAllUploadedDocumentsCriteriaTracker'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sDocUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllGeneratedDocumentsCriteriaTracker * @todo Implement testgetAllGeneratedDocumentsCriteriaTracker(). */ - public function testgetAllGeneratedDocumentsCriteriaTracker() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllGeneratedDocumentsCriteriaTracker', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllGeneratedDocumentsCriteriaTracker() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllGeneratedDocumentsCriteriaTracker', $methods ), 'exists method getAllGeneratedDocumentsCriteriaTracker' ); + $r = new ReflectionMethod('Cases', 'getAllGeneratedDocumentsCriteriaTracker'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sDocUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getHistoryMessagesTracker * @todo Implement testgetHistoryMessagesTracker(). */ - public function testgetHistoryMessagesTracker() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getHistoryMessagesTracker', $methods ), 'seems like this function is outside this class' ); - } + public function testgetHistoryMessagesTracker() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getHistoryMessagesTracker', $methods ), 'exists method getHistoryMessagesTracker' ); + $r = new ReflectionMethod('Cases', 'getHistoryMessagesTracker'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getHistoryMessagesTrackerExt * @todo Implement testgetHistoryMessagesTrackerExt(). */ - public function testgetHistoryMessagesTrackerExt() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getHistoryMessagesTrackerExt', $methods ), 'seems like this function is outside this class' ); - } + public function testgetHistoryMessagesTrackerExt() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getHistoryMessagesTrackerExt', $methods ), 'exists method getHistoryMessagesTrackerExt' ); + $r = new ReflectionMethod('Cases', 'getHistoryMessagesTrackerExt'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getHistoryMessagesTrackerView * @todo Implement testgetHistoryMessagesTrackerView(). */ - public function testgetHistoryMessagesTrackerView() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getHistoryMessagesTrackerView', $methods ), 'seems like this function is outside this class' ); - } + public function testgetHistoryMessagesTrackerView() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getHistoryMessagesTrackerView', $methods ), 'exists method getHistoryMessagesTrackerView' ); + $r = new ReflectionMethod('Cases', 'getHistoryMessagesTrackerView'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'Msg_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllObjectsFromProcess * @todo Implement testgetAllObjectsFromProcess(). */ - public function testgetAllObjectsFromProcess() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllObjectsFromProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllObjectsFromProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllObjectsFromProcess', $methods ), 'exists method getAllObjectsFromProcess' ); + $r = new ReflectionMethod('Cases', 'getAllObjectsFromProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'PRO_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'OBJ_TYPE'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '%'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::executeTriggersAfterExternal * @todo Implement testexecuteTriggersAfterExternal(). */ - public function testexecuteTriggersAfterExternal() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'executeTriggersAfterExternal', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteTriggersAfterExternal() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeTriggersAfterExternal', $methods ), 'exists method executeTriggersAfterExternal' ); + $r = new ReflectionMethod('Cases', 'executeTriggersAfterExternal'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcess'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sTask'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sApplication'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'iIndex'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'iStepPosition'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::thisIsTheCurrentUser * @todo Implement testthisIsTheCurrentUser(). */ - public function testthisIsTheCurrentUser() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'thisIsTheCurrentUser', $methods ), 'seems like this function is outside this class' ); - } + public function testthisIsTheCurrentUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('thisIsTheCurrentUser', $methods ), 'exists method thisIsTheCurrentUser' ); + $r = new ReflectionMethod('Cases', 'thisIsTheCurrentUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sUserUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sAction'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'sURL'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getCriteriaUsersCases * @todo Implement testgetCriteriaUsersCases(). */ - public function testgetCriteriaUsersCases() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getCriteriaUsersCases', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCriteriaUsersCases() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCriteriaUsersCases', $methods ), 'exists method getCriteriaUsersCases' ); + $r = new ReflectionMethod('Cases', 'getCriteriaUsersCases'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'USR_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAdvancedSearch * @todo Implement testgetAdvancedSearch(). */ - public function testgetAdvancedSearch() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAdvancedSearch', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAdvancedSearch() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAdvancedSearch', $methods ), 'exists method getAdvancedSearch' ); + $r = new ReflectionMethod('Cases', 'getAdvancedSearch'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCase'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTask'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sCurrentUser'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sSentby'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'sLastModFrom'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->assertTrue( $params[6]->getName() == 'sLastModTo'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == false); + $this->assertTrue( $params[7]->getName() == 'sStatus'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == false); + $this->assertTrue( $params[8]->getName() == 'permisse'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == false); + $this->assertTrue( $params[9]->getName() == 'userlogged'); + $this->assertTrue( $params[9]->isArray() == false); + $this->assertTrue( $params[9]->isOptional () == false); + $this->assertTrue( $params[10]->getName() == 'aSupervisor'); + $this->assertTrue( $params[10]->isArray() == false); + $this->assertTrue( $params[10]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getConditionCasesCount * @todo Implement testgetConditionCasesCount(). */ - public function testgetConditionCasesCount() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getConditionCasesCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetConditionCasesCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getConditionCasesCount', $methods ), 'exists method getConditionCasesCount' ); + $r = new ReflectionMethod('Cases', 'getConditionCasesCount'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'type'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sumary'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getAllConditionCasesCount * @todo Implement testgetAllConditionCasesCount(). */ - public function testgetAllConditionCasesCount() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getAllConditionCasesCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllConditionCasesCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllConditionCasesCount', $methods ), 'exists method getAllConditionCasesCount' ); + $r = new ReflectionMethod('Cases', 'getAllConditionCasesCount'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'types'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sumary'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::userParticipatedInCase * @todo Implement testuserParticipatedInCase(). */ - public function testuserParticipatedInCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'userParticipatedInCase', $methods ), 'seems like this function is outside this class' ); - } + public function testuserParticipatedInCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('userParticipatedInCase', $methods ), 'exists method userParticipatedInCase' ); + $r = new ReflectionMethod('Cases', 'userParticipatedInCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUIDUserLogged'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getCurrentDelegationCase * @todo Implement testgetCurrentDelegationCase(). */ - public function testgetCurrentDelegationCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getCurrentDelegationCase', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCurrentDelegationCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCurrentDelegationCase', $methods ), 'exists method getCurrentDelegationCase' ); + $r = new ReflectionMethod('Cases', 'getCurrentDelegationCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::clearCaseSessionData * @todo Implement testclearCaseSessionData(). */ - public function testclearCaseSessionData() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'clearCaseSessionData', $methods ), 'seems like this function is outside this class' ); - } + public function testclearCaseSessionData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('clearCaseSessionData', $methods ), 'exists method clearCaseSessionData' ); + $r = new ReflectionMethod('Cases', 'clearCaseSessionData'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::jumpToCase * @todo Implement testjumpToCase(). */ - public function testjumpToCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'jumpToCase', $methods ), 'seems like this function is outside this class' ); - } + public function testjumpToCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('jumpToCase', $methods ), 'exists method jumpToCase' ); + $r = new ReflectionMethod('Cases', 'jumpToCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'APP_NUMBER'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::discriminateCases * @todo Implement testdiscriminateCases(). */ - public function testdiscriminateCases() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'discriminateCases', $methods ), 'seems like this function is outside this class' ); - } + public function testdiscriminateCases() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('discriminateCases', $methods ), 'exists method discriminateCases' ); + $r = new ReflectionMethod('Cases', 'discriminateCases'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::GetAllOpenDelegation * @todo Implement testGetAllOpenDelegation(). */ - public function testGetAllOpenDelegation() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'GetAllOpenDelegation', $methods ), 'seems like this function is outside this class' ); - } + public function testGetAllOpenDelegation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('GetAllOpenDelegation', $methods ), 'exists method GetAllOpenDelegation' ); + $r = new ReflectionMethod('Cases', 'GetAllOpenDelegation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getUsersToReassign * @todo Implement testgetUsersToReassign(). */ - public function testgetUsersToReassign() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getUsersToReassign', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUsersToReassign() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUsersToReassign', $methods ), 'exists method getUsersToReassign' ); + $r = new ReflectionMethod('Cases', 'getUsersToReassign'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'TAS_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'USR_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getUsersParticipatedInCase * @todo Implement testgetUsersParticipatedInCase(). */ - public function testgetUsersParticipatedInCase() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getUsersParticipatedInCase', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUsersParticipatedInCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUsersParticipatedInCase', $methods ), 'exists method getUsersParticipatedInCase' ); + $r = new ReflectionMethod('Cases', 'getUsersParticipatedInCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Cases::getCaseNotes * @todo Implement testgetCaseNotes(). */ - public function testgetCaseNotes() - { - if (class_exists('Cases')) { - $methods = get_class_methods( 'Cases'); - $this->assertTrue( in_array( 'getCaseNotes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseNotes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseNotes', $methods ), 'exists method getCaseNotes' ); + $r = new ReflectionMethod('Cases', 'getCaseNotes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'applicationID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'array'); + $this->assertTrue( $params[2]->getName() == 'userUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classConfigurationsTest.php b/tests/automated/workflow/engine/classes/classConfigurationsTest.php index 53d18c575..905d411fe 100644 --- a/tests/automated/workflow/engine/classes/classConfigurationsTest.php +++ b/tests/automated/workflow/engine/classes/classConfigurationsTest.php @@ -1,207 +1,430 @@ -object = new Configurations(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 16); + } - class classConfigurationsTest extends PHPUnit_Framework_TestCase - { /** * @covers Configurations::Configurations * @todo Implement testConfigurations(). */ - public function testConfigurations() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'Configurations', $methods ), 'seems like this function is outside this class' ); - } + public function testConfigurations() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Configurations', $methods ), 'exists method Configurations' ); + $r = new ReflectionMethod('Configurations', 'Configurations'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::arrayClone * @todo Implement testarrayClone(). */ - public function testarrayClone() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'arrayClone', $methods ), 'seems like this function is outside this class' ); - } + public function testarrayClone() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('arrayClone', $methods ), 'exists method arrayClone' ); + $r = new ReflectionMethod('Configurations', 'arrayClone'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'object'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'cloneObject'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::configObject * @todo Implement testconfigObject(). */ - public function testconfigObject() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'configObject', $methods ), 'seems like this function is outside this class' ); - } + public function testconfigObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('configObject', $methods ), 'exists method configObject' ); + $r = new ReflectionMethod('Configurations', 'configObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'object'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'from'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::loadConfig * @todo Implement testloadConfig(). */ - public function testloadConfig() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'loadConfig', $methods ), 'seems like this function is outside this class' ); - } + public function testloadConfig() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadConfig', $methods ), 'exists method loadConfig' ); + $r = new ReflectionMethod('Configurations', 'loadConfig'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'object'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'cfg'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'obj'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'pro'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'usr'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'app'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('Configurations', 'load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'cfg'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'obj'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'pro'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'usr'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'app'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::saveConfig * @todo Implement testsaveConfig(). */ - public function testsaveConfig() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'saveConfig', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveConfig() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveConfig', $methods ), 'exists method saveConfig' ); + $r = new ReflectionMethod('Configurations', 'saveConfig'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'cfg'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'obj'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pro'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'usr'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'app'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::saveObject * @todo Implement testsaveObject(). */ - public function testsaveObject() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'saveObject', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveObject', $methods ), 'exists method saveObject' ); + $r = new ReflectionMethod('Configurations', 'saveObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'object'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'cfg'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'obj'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'pro'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'usr'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'app'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::loadObject * @todo Implement testloadObject(). */ - public function testloadObject() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'loadObject', $methods ), 'seems like this function is outside this class' ); - } + public function testloadObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadObject', $methods ), 'exists method loadObject' ); + $r = new ReflectionMethod('Configurations', 'loadObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'cfg'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'obj'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pro'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'usr'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'app'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::getConfiguration * @todo Implement testgetConfiguration(). */ - public function testgetConfiguration() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'getConfiguration', $methods ), 'seems like this function is outside this class' ); - } + public function testgetConfiguration() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getConfiguration', $methods ), 'exists method getConfiguration' ); + $r = new ReflectionMethod('Configurations', 'getConfiguration'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'cfg'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'obj'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pro'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'usr'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'app'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::usersNameFormat * @todo Implement testusersNameFormat(). */ - public function testusersNameFormat() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'usersNameFormat', $methods ), 'seems like this function is outside this class' ); - } + public function testusersNameFormat() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('usersNameFormat', $methods ), 'exists method usersNameFormat' ); + $r = new ReflectionMethod('Configurations', 'usersNameFormat'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'username'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'firstname'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'lastname'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::getFormats * @todo Implement testgetFormats(). */ - public function testgetFormats() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'getFormats', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFormats() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFormats', $methods ), 'exists method getFormats' ); + $r = new ReflectionMethod('Configurations', 'getFormats'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::setConfig * @todo Implement testsetConfig(). */ - public function testsetConfig() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'setConfig', $methods ), 'seems like this function is outside this class' ); - } + public function testsetConfig() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setConfig', $methods ), 'exists method setConfig' ); + $r = new ReflectionMethod('Configurations', 'setConfig'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'route'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'object'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'to'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::getDateFormats * @todo Implement testgetDateFormats(). */ - public function testgetDateFormats() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'getDateFormats', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDateFormats() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDateFormats', $methods ), 'exists method getDateFormats' ); + $r = new ReflectionMethod('Configurations', 'getDateFormats'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::getUserNameFormats * @todo Implement testgetUserNameFormats(). */ - public function testgetUserNameFormats() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'getUserNameFormats', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUserNameFormats() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUserNameFormats', $methods ), 'exists method getUserNameFormats' ); + $r = new ReflectionMethod('Configurations', 'getUserNameFormats'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::getSystemDate * @todo Implement testgetSystemDate(). */ - public function testgetSystemDate() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'getSystemDate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSystemDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSystemDate', $methods ), 'exists method getSystemDate' ); + $r = new ReflectionMethod('Configurations', 'getSystemDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dateTime'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Configurations::getEnvSetting * @todo Implement testgetEnvSetting(). */ - public function testgetEnvSetting() - { - if (class_exists('Configurations')) { - $methods = get_class_methods( 'Configurations'); - $this->assertTrue( in_array( 'getEnvSetting', $methods ), 'seems like this function is outside this class' ); - } + public function testgetEnvSetting() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getEnvSetting', $methods ), 'exists method getEnvSetting' ); + $r = new ReflectionMethod('Configurations', 'getEnvSetting'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'key'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'data'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classDerivationTest.php b/tests/automated/workflow/engine/classes/classDerivationTest.php index 5357598f2..9a98876af 100644 --- a/tests/automated/workflow/engine/classes/classDerivationTest.php +++ b/tests/automated/workflow/engine/classes/classDerivationTest.php @@ -1,171 +1,291 @@ -object = new Derivation(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 13); + } - class classDerivationTest extends PHPUnit_Framework_TestCase - { /** * @covers Derivation::prepareInformation * @todo Implement testprepareInformation(). */ - public function testprepareInformation() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'prepareInformation', $methods ), 'seems like this function is outside this class' ); - } + public function testprepareInformation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prepareInformation', $methods ), 'exists method prepareInformation' ); + $r = new ReflectionMethod('Derivation', 'prepareInformation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::getRouteCondition * @todo Implement testgetRouteCondition(). */ - public function testgetRouteCondition() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'getRouteCondition', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRouteCondition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRouteCondition', $methods ), 'exists method getRouteCondition' ); + $r = new ReflectionMethod('Derivation', 'getRouteCondition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::GetAppParentIndex * @todo Implement testGetAppParentIndex(). */ - public function testGetAppParentIndex() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'GetAppParentIndex', $methods ), 'seems like this function is outside this class' ); - } + public function testGetAppParentIndex() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('GetAppParentIndex', $methods ), 'exists method GetAppParentIndex' ); + $r = new ReflectionMethod('Derivation', 'GetAppParentIndex'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::getAllUsersFromAnyTask * @todo Implement testgetAllUsersFromAnyTask(). */ - public function testgetAllUsersFromAnyTask() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'getAllUsersFromAnyTask', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllUsersFromAnyTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllUsersFromAnyTask', $methods ), 'exists method getAllUsersFromAnyTask' ); + $r = new ReflectionMethod('Derivation', 'getAllUsersFromAnyTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTasUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::getUsersFullNameFromArray * @todo Implement testgetUsersFullNameFromArray(). */ - public function testgetUsersFullNameFromArray() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'getUsersFullNameFromArray', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUsersFullNameFromArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUsersFullNameFromArray', $methods ), 'exists method getUsersFullNameFromArray' ); + $r = new ReflectionMethod('Derivation', 'getUsersFullNameFromArray'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aUsers'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::getNextAssignedUser * @todo Implement testgetNextAssignedUser(). */ - public function testgetNextAssignedUser() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'getNextAssignedUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNextAssignedUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNextAssignedUser', $methods ), 'exists method getNextAssignedUser' ); + $r = new ReflectionMethod('Derivation', 'getNextAssignedUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tasInfo'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::getDenpendentUser * @todo Implement testgetDenpendentUser(). */ - public function testgetDenpendentUser() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'getDenpendentUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDenpendentUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDenpendentUser', $methods ), 'exists method getDenpendentUser' ); + $r = new ReflectionMethod('Derivation', 'getDenpendentUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'USR_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::setTasLastAssigned * @todo Implement testsetTasLastAssigned(). */ - public function testsetTasLastAssigned() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'setTasLastAssigned', $methods ), 'seems like this function is outside this class' ); - } + public function testsetTasLastAssigned() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setTasLastAssigned', $methods ), 'exists method setTasLastAssigned' ); + $r = new ReflectionMethod('Derivation', 'setTasLastAssigned'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tasUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'usrUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::derivate * @todo Implement testderivate(). */ - public function testderivate() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'derivate', $methods ), 'seems like this function is outside this class' ); - } + public function testderivate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('derivate', $methods ), 'exists method derivate' ); + $r = new ReflectionMethod('Derivation', 'derivate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'currentDelegation'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[1]->getName() == 'nextDelegations'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::doDerivation * @todo Implement testdoDerivation(). */ - public function testdoDerivation() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'doDerivation', $methods ), 'seems like this function is outside this class' ); - } + public function testdoDerivation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('doDerivation', $methods ), 'exists method doDerivation' ); + $r = new ReflectionMethod('Derivation', 'doDerivation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'currentDelegation'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'nextDel'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'appFields'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'aSP'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::verifyIsCaseChild * @todo Implement testverifyIsCaseChild(). */ - public function testverifyIsCaseChild() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'verifyIsCaseChild', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyIsCaseChild() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyIsCaseChild', $methods ), 'exists method verifyIsCaseChild' ); + $r = new ReflectionMethod('Derivation', 'verifyIsCaseChild'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::getDerivatedCases * @todo Implement testgetDerivatedCases(). */ - public function testgetDerivatedCases() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'getDerivatedCases', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDerivatedCases() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDerivatedCases', $methods ), 'exists method getDerivatedCases' ); + $r = new ReflectionMethod('Derivation', 'getDerivatedCases'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sParentUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sDelIndexParent'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Derivation::getGrpUser * @todo Implement testgetGrpUser(). */ - public function testgetGrpUser() - { - if (class_exists('Derivation')) { - $methods = get_class_methods( 'Derivation'); - $this->assertTrue( in_array( 'getGrpUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetGrpUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getGrpUser', $methods ), 'exists method getGrpUser' ); + $r = new ReflectionMethod('Derivation', 'getGrpUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classDynaFormFieldTest.php b/tests/automated/workflow/engine/classes/classDynaFormFieldTest.php index 56b7368ee..8f4649d4e 100644 --- a/tests/automated/workflow/engine/classes/classDynaFormFieldTest.php +++ b/tests/automated/workflow/engine/classes/classDynaFormFieldTest.php @@ -1,75 +1,139 @@ -object = new DynaFormField(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 12); + } - class classDynaFormFieldTest extends PHPUnit_Framework_TestCase - { /** * @covers DynaFormField::SetTo * @todo Implement testSetTo(). */ - public function testSetTo() - { - if (class_exists('DynaFormField')) { - $methods = get_class_methods( 'DynaFormField'); - $this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' ); - } + public function testSetTo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' ); + $r = new ReflectionMethod('DynaFormField', 'SetTo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'objConnection'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DynaFormField::Load * @todo Implement testLoad(). */ - public function testLoad() - { - if (class_exists('DynaFormField')) { - $methods = get_class_methods( 'DynaFormField'); - $this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' ); - } + public function testLoad() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Load', $methods ), 'exists method Load' ); + $r = new ReflectionMethod('DynaFormField', 'Load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DynaFormField::Delete * @todo Implement testDelete(). */ - public function testDelete() - { - if (class_exists('DynaFormField')) { - $methods = get_class_methods( 'DynaFormField'); - $this->assertTrue( in_array( 'Delete', $methods ), 'seems like this function is outside this class' ); - } + public function testDelete() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Delete', $methods ), 'exists method Delete' ); + $r = new ReflectionMethod('DynaFormField', 'Delete'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'uid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DynaFormField::Save * @todo Implement testSave(). */ - public function testSave() - { - if (class_exists('DynaFormField')) { - $methods = get_class_methods( 'DynaFormField'); - $this->assertTrue( in_array( 'Save', $methods ), 'seems like this function is outside this class' ); - } + public function testSave() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('Save', $methods ), 'exists method Save' ); + $r = new ReflectionMethod('DynaFormField', 'Save'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'Fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'labels'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[2]->getName() == 'options'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers DynaFormField::isNew * @todo Implement testisNew(). */ - public function testisNew() - { - if (class_exists('DynaFormField')) { - $methods = get_class_methods( 'DynaFormField'); - $this->assertTrue( in_array( 'isNew', $methods ), 'seems like this function is outside this class' ); - } + public function testisNew() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isNew', $methods ), 'exists method isNew' ); + $r = new ReflectionMethod('DynaFormField', 'isNew'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classGroupUserTest.php b/tests/automated/workflow/engine/classes/classGroupUserTest.php deleted file mode 100644 index 56a26c3c8..000000000 --- a/tests/automated/workflow/engine/classes/classGroupUserTest.php +++ /dev/null @@ -1,51 +0,0 @@ -assertTrue( in_array( 'GroupUser', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GroupUser::setTo - * @todo Implement testsetTo(). - */ - public function testsetTo() - { - if (class_exists('GroupUser')) { - $methods = get_class_methods( 'GroupUser'); - $this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GroupUser::ofToAssignUser - * @todo Implement testofToAssignUser(). - */ - public function testofToAssignUser() - { - if (class_exists('GroupUser')) { - $methods = get_class_methods( 'GroupUser'); - $this->assertTrue( in_array( 'ofToAssignUser', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/workflow/engine/classes/classGroupsTest.php b/tests/automated/workflow/engine/classes/classGroupsTest.php index 13a55dcca..05787c676 100644 --- a/tests/automated/workflow/engine/classes/classGroupsTest.php +++ b/tests/automated/workflow/engine/classes/classGroupsTest.php @@ -1,219 +1,356 @@ -object = new Groups(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 17); + } - class classGroupsTest extends PHPUnit_Framework_TestCase - { /** * @covers Groups::getUsersOfGroup * @todo Implement testgetUsersOfGroup(). */ - public function testgetUsersOfGroup() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getUsersOfGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUsersOfGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUsersOfGroup', $methods ), 'exists method getUsersOfGroup' ); + $r = new ReflectionMethod('Groups', 'getUsersOfGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGroupUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getActiveGroupsForAnUser * @todo Implement testgetActiveGroupsForAnUser(). */ - public function testgetActiveGroupsForAnUser() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getActiveGroupsForAnUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetActiveGroupsForAnUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getActiveGroupsForAnUser', $methods ), 'exists method getActiveGroupsForAnUser' ); + $r = new ReflectionMethod('Groups', 'getActiveGroupsForAnUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::addUserToGroup * @todo Implement testaddUserToGroup(). */ - public function testaddUserToGroup() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'addUserToGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testaddUserToGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addUserToGroup', $methods ), 'exists method addUserToGroup' ); + $r = new ReflectionMethod('Groups', 'addUserToGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'GrpUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'UsrUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::removeUserOfGroup * @todo Implement testremoveUserOfGroup(). */ - public function testremoveUserOfGroup() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'removeUserOfGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveUserOfGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeUserOfGroup', $methods ), 'exists method removeUserOfGroup' ); + $r = new ReflectionMethod('Groups', 'removeUserOfGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'GrpUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'UsrUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getAllGroups * @todo Implement testgetAllGroups(). */ - public function testgetAllGroups() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getAllGroups', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllGroups() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllGroups', $methods ), 'exists method getAllGroups' ); + $r = new ReflectionMethod('Groups', 'getAllGroups'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getUserGroups * @todo Implement testgetUserGroups(). */ - public function testgetUserGroups() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getUserGroups', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUserGroups() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUserGroups', $methods ), 'exists method getUserGroups' ); + $r = new ReflectionMethod('Groups', 'getUserGroups'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getAvailableGroupsCriteria * @todo Implement testgetAvailableGroupsCriteria(). */ - public function testgetAvailableGroupsCriteria() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getAvailableGroupsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableGroupsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableGroupsCriteria', $methods ), 'exists method getAvailableGroupsCriteria' ); + $r = new ReflectionMethod('Groups', 'getAvailableGroupsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'filter'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getAssignedGroupsCriteria * @todo Implement testgetAssignedGroupsCriteria(). */ - public function testgetAssignedGroupsCriteria() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getAssignedGroupsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAssignedGroupsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAssignedGroupsCriteria', $methods ), 'exists method getAssignedGroupsCriteria' ); + $r = new ReflectionMethod('Groups', 'getAssignedGroupsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'filter'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getGroupsForUser * @todo Implement testgetGroupsForUser(). */ - public function testgetGroupsForUser() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getGroupsForUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetGroupsForUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getGroupsForUser', $methods ), 'exists method getGroupsForUser' ); + $r = new ReflectionMethod('Groups', 'getGroupsForUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'usrUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::removeUserOfAllGroups * @todo Implement testremoveUserOfAllGroups(). */ - public function testremoveUserOfAllGroups() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'removeUserOfAllGroups', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveUserOfAllGroups() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeUserOfAllGroups', $methods ), 'exists method removeUserOfAllGroups' ); + $r = new ReflectionMethod('Groups', 'removeUserOfAllGroups'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getUsersGroupCriteria * @todo Implement testgetUsersGroupCriteria(). */ - public function testgetUsersGroupCriteria() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getUsersGroupCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUsersGroupCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUsersGroupCriteria', $methods ), 'exists method getUsersGroupCriteria' ); + $r = new ReflectionMethod('Groups', 'getUsersGroupCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGroupUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getUserGroupsCriteria * @todo Implement testgetUserGroupsCriteria(). */ - public function testgetUserGroupsCriteria() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getUserGroupsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUserGroupsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUserGroupsCriteria', $methods ), 'exists method getUserGroupsCriteria' ); + $r = new ReflectionMethod('Groups', 'getUserGroupsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getNumberGroups * @todo Implement testgetNumberGroups(). */ - public function testgetNumberGroups() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getNumberGroups', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNumberGroups() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNumberGroups', $methods ), 'exists method getNumberGroups' ); + $r = new ReflectionMethod('Groups', 'getNumberGroups'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::getAvailableUsersCriteria * @todo Implement testgetAvailableUsersCriteria(). */ - public function testgetAvailableUsersCriteria() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'getAvailableUsersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableUsersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableUsersCriteria', $methods ), 'exists method getAvailableUsersCriteria' ); + $r = new ReflectionMethod('Groups', 'getAvailableUsersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGroupUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::verifyUsertoGroup * @todo Implement testverifyUsertoGroup(). */ - public function testverifyUsertoGroup() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'verifyUsertoGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyUsertoGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyUsertoGroup', $methods ), 'exists method verifyUsertoGroup' ); + $r = new ReflectionMethod('Groups', 'verifyUsertoGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'GrpUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'UsrUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::verifyGroup * @todo Implement testverifyGroup(). */ - public function testverifyGroup() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'verifyGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyGroup', $methods ), 'exists method verifyGroup' ); + $r = new ReflectionMethod('Groups', 'verifyGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGroupUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Groups::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('Groups')) { - $methods = get_class_methods( 'Groups'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('Groups', 'load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'GrpUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classGulliverBasePeerTest.php b/tests/automated/workflow/engine/classes/classGulliverBasePeerTest.php deleted file mode 100644 index 20dc80c71..000000000 --- a/tests/automated/workflow/engine/classes/classGulliverBasePeerTest.php +++ /dev/null @@ -1,255 +0,0 @@ -assertTrue( in_array( 'getMapBuilder', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::getPhpNameMap - * @todo Implement testgetPhpNameMap(). - */ - public function testgetPhpNameMap() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'getPhpNameMap', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::translateFieldName - * @todo Implement testtranslateFieldName(). - */ - public function testtranslateFieldName() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'translateFieldName', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::getFieldNames - * @todo Implement testgetFieldNames(). - */ - public function testgetFieldNames() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::alias - * @todo Implement testalias(). - */ - public function testalias() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'alias', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::addSelectColumns - * @todo Implement testaddSelectColumns(). - */ - public function testaddSelectColumns() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'addSelectColumns', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doCount - * @todo Implement testdoCount(). - */ - public function testdoCount() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doCount', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doSelectOne - * @todo Implement testdoSelectOne(). - */ - public function testdoSelectOne() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doSelectOne', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doSelect - * @todo Implement testdoSelect(). - */ - public function testdoSelect() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doSelect', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doSelectRS - * @todo Implement testdoSelectRS(). - */ - public function testdoSelectRS() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doSelectRS', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::populateObjects - * @todo Implement testpopulateObjects(). - */ - public function testpopulateObjects() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'populateObjects', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::getTableMap - * @todo Implement testgetTableMap(). - */ - public function testgetTableMap() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'getTableMap', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::getOMClass - * @todo Implement testgetOMClass(). - */ - public function testgetOMClass() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'getOMClass', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doInsert - * @todo Implement testdoInsert(). - */ - public function testdoInsert() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doInsert', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doUpdate - * @todo Implement testdoUpdate(). - */ - public function testdoUpdate() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doUpdate', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doDeleteAll - * @todo Implement testdoDeleteAll(). - */ - public function testdoDeleteAll() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doDeleteAll', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doDelete - * @todo Implement testdoDelete(). - */ - public function testdoDelete() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doDelete', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::doValidate - * @todo Implement testdoValidate(). - */ - public function testdoValidate() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'doValidate', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::retrieveByPK - * @todo Implement testretrieveByPK(). - */ - public function testretrieveByPK() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'retrieveByPK', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers GulliverBasePeer::retrieveByPKs - * @todo Implement testretrieveByPKs(). - */ - public function testretrieveByPKs() - { - if (class_exists('GulliverBasePeer')) { - $methods = get_class_methods( 'GulliverBasePeer'); - $this->assertTrue( in_array( 'retrieveByPKs', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/workflow/engine/classes/classInstallerTest.php b/tests/automated/workflow/engine/classes/classInstallerTest.php index d0d328e72..41604477d 100644 --- a/tests/automated/workflow/engine/classes/classInstallerTest.php +++ b/tests/automated/workflow/engine/classes/classInstallerTest.php @@ -1,219 +1,251 @@ -object = new Installer(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 11); + } - class classInstallerTest extends PHPUnit_Framework_TestCase - { /** * @covers Installer::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('Installer', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Installer::create_site * @todo Implement testcreate_site(). */ - public function testcreate_site() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'create_site', $methods ), 'seems like this function is outside this class' ); - } + public function testcreate_site() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('create_site', $methods ), 'exists method create_site' ); + $r = new ReflectionMethod('Installer', 'create_site'); + $params = $r->getParameters(); + $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[1]->getName() == 'confirmed'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Installer::isset_site * @todo Implement testisset_site(). */ - public function testisset_site() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'isset_site', $methods ), 'seems like this function is outside this class' ); - } - } + public function testisset_site() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isset_site', $methods ), 'exists method isset_site' ); + $r = new ReflectionMethod('Installer', 'isset_site'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'workflow'); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers Installer::create_site_test - * @todo Implement testcreate_site_test(). - */ - public function testcreate_site_test() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'create_site_test', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers Installer::make_site - * @todo Implement testmake_site(). - */ - public function testmake_site() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'make_site', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers Installer::set_admin * @todo Implement testset_admin(). */ - public function testset_admin() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'set_admin', $methods ), 'seems like this function is outside this class' ); - } - } + public function testset_admin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set_admin', $methods ), 'exists method set_admin' ); + $r = new ReflectionMethod('Installer', 'set_admin'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers Installer::run_query - * @todo Implement testrun_query(). - */ - public function testrun_query() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'run_query', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers Installer::query_sql_file * @todo Implement testquery_sql_file(). */ - public function testquery_sql_file() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'query_sql_file', $methods ), 'seems like this function is outside this class' ); - } - } + public function testquery_sql_file() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('query_sql_file', $methods ), 'exists method query_sql_file' ); + $r = new ReflectionMethod('Installer', 'query_sql_file'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'connection'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers Installer::check_path - * @todo Implement testcheck_path(). - */ - public function testcheck_path() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'check_path', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers Installer::find_root_path - * @todo Implement testfind_root_path(). - */ - public function testfind_root_path() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'find_root_path', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers Installer::file_permisions * @todo Implement testfile_permisions(). */ - public function testfile_permisions() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'file_permisions', $methods ), 'seems like this function is outside this class' ); - } + public function testfile_permisions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('file_permisions', $methods ), 'exists method file_permisions' ); + $r = new ReflectionMethod('Installer', 'file_permisions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'def'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '777'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Installer::is_dir_writable * @todo Implement testis_dir_writable(). */ - public function testis_dir_writable() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'is_dir_writable', $methods ), 'seems like this function is outside this class' ); - } + public function testis_dir_writable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('is_dir_writable', $methods ), 'exists method is_dir_writable' ); + $r = new ReflectionMethod('Installer', 'is_dir_writable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dir'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Installer::getDirectoryFiles * @todo Implement testgetDirectoryFiles(). */ - public function testgetDirectoryFiles() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'getDirectoryFiles', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDirectoryFiles() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDirectoryFiles', $methods ), 'exists method getDirectoryFiles' ); + $r = new ReflectionMethod('Installer', 'getDirectoryFiles'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dir'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'extension'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Installer::check_db_empty * @todo Implement testcheck_db_empty(). */ - public function testcheck_db_empty() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'check_db_empty', $methods ), 'seems like this function is outside this class' ); - } + public function testcheck_db_empty() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('check_db_empty', $methods ), 'exists method check_db_empty' ); + $r = new ReflectionMethod('Installer', 'check_db_empty'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Installer::check_db * @todo Implement testcheck_db(). */ - public function testcheck_db() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'check_db', $methods ), 'seems like this function is outside this class' ); - } - } + public function testcheck_db() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('check_db', $methods ), 'exists method check_db' ); + $r = new ReflectionMethod('Installer', 'check_db'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers Installer::check_connection - * @todo Implement testcheck_connection(). - */ - public function testcheck_connection() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'check_connection', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers Installer::log * @todo Implement testlog(). */ - public function testlog() - { - if (class_exists('Installer')) { - $methods = get_class_methods( 'Installer'); - $this->assertTrue( in_array( 'log', $methods ), 'seems like this function is outside this class' ); - } + public function testlog() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('log', $methods ), 'exists method log' ); + $r = new ReflectionMethod('Installer', 'log'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'text'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'failed'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classJavaBridgePMTest.php b/tests/automated/workflow/engine/classes/classJavaBridgePMTest.php index 78334b733..22252ebdd 100644 --- a/tests/automated/workflow/engine/classes/classJavaBridgePMTest.php +++ b/tests/automated/workflow/engine/classes/classJavaBridgePMTest.php @@ -1,51 +1,106 @@ -object = new JavaBridgePM(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 3); + } - class classJavaBridgePMTest extends PHPUnit_Framework_TestCase - { /** * @covers JavaBridgePM::checkJavaExtension * @todo Implement testcheckJavaExtension(). */ - public function testcheckJavaExtension() - { - if (class_exists('JavaBridgePM')) { - $methods = get_class_methods( 'JavaBridgePM'); - $this->assertTrue( in_array( 'checkJavaExtension', $methods ), 'seems like this function is outside this class' ); - } + public function testcheckJavaExtension() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('checkJavaExtension', $methods ), 'exists method checkJavaExtension' ); + $r = new ReflectionMethod('JavaBridgePM', 'checkJavaExtension'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers JavaBridgePM::convertValue * @todo Implement testconvertValue(). */ - public function testconvertValue() - { - if (class_exists('JavaBridgePM')) { - $methods = get_class_methods( 'JavaBridgePM'); - $this->assertTrue( in_array( 'convertValue', $methods ), 'seems like this function is outside this class' ); - } + public function testconvertValue() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('convertValue', $methods ), 'exists method convertValue' ); + $r = new ReflectionMethod('JavaBridgePM', 'convertValue'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'className'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers JavaBridgePM::generateJrxmlFromDynaform * @todo Implement testgenerateJrxmlFromDynaform(). */ - public function testgenerateJrxmlFromDynaform() - { - if (class_exists('JavaBridgePM')) { - $methods = get_class_methods( 'JavaBridgePM'); - $this->assertTrue( in_array( 'generateJrxmlFromDynaform', $methods ), 'seems like this function is outside this class' ); - } + public function testgenerateJrxmlFromDynaform() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generateJrxmlFromDynaform', $methods ), 'exists method generateJrxmlFromDynaform' ); + $r = new ReflectionMethod('JavaBridgePM', 'generateJrxmlFromDynaform'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'outDocUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'dynaformUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'template'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classJrmlTest.php b/tests/automated/workflow/engine/classes/classJrmlTest.php index be109ad45..c887a9eb0 100644 --- a/tests/automated/workflow/engine/classes/classJrmlTest.php +++ b/tests/automated/workflow/engine/classes/classJrmlTest.php @@ -1,111 +1,151 @@ -object = new Jrml(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 7); + } - class classJrmlTest extends PHPUnit_Framework_TestCase - { /** * @covers Jrml::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('Jrml', '__construct'); + $params = $r->getParameters(); + $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->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers Jrml::get_rows - * @todo Implement testget_rows(). - */ - public function testget_rows() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( 'get_rows', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers Jrml::get_md * @todo Implement testget_md(). */ - public function testget_md() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( 'get_md', $methods ), 'seems like this function is outside this class' ); - } + public function testget_md() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_md', $methods ), 'exists method get_md' ); + $r = new ReflectionMethod('Jrml', 'get_md'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Jrml::get_header * @todo Implement testget_header(). */ - public function testget_header() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( 'get_header', $methods ), 'seems like this function is outside this class' ); - } + public function testget_header() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_header', $methods ), 'exists method get_header' ); + $r = new ReflectionMethod('Jrml', 'get_header'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Jrml::get_column_header * @todo Implement testget_column_header(). */ - public function testget_column_header() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( 'get_column_header', $methods ), 'seems like this function is outside this class' ); - } + public function testget_column_header() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_column_header', $methods ), 'exists method get_column_header' ); + $r = new ReflectionMethod('Jrml', 'get_column_header'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Jrml::get_detail * @todo Implement testget_detail(). */ - public function testget_detail() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( 'get_detail', $methods ), 'seems like this function is outside this class' ); - } + public function testget_detail() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_detail', $methods ), 'exists method get_detail' ); + $r = new ReflectionMethod('Jrml', 'get_detail'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Jrml::get_footer * @todo Implement testget_footer(). */ - public function testget_footer() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( 'get_footer', $methods ), 'seems like this function is outside this class' ); - } + public function testget_footer() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_footer', $methods ), 'exists method get_footer' ); + $r = new ReflectionMethod('Jrml', 'get_footer'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Jrml::export * @todo Implement testexport(). */ - public function testexport() - { - if (class_exists('Jrml')) { - $methods = get_class_methods( 'Jrml'); - $this->assertTrue( in_array( 'export', $methods ), 'seems like this function is outside this class' ); - } + public function testexport() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('export', $methods ), 'exists method export' ); + $r = new ReflectionMethod('Jrml', 'export'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classNETTest.php b/tests/automated/workflow/engine/classes/classNETTest.php index 604dddb0b..a5e11d194 100644 --- a/tests/automated/workflow/engine/classes/classNETTest.php +++ b/tests/automated/workflow/engine/classes/classNETTest.php @@ -1,183 +1,286 @@ -object = new NET(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 14); + } - class classNETTest extends PHPUnit_Framework_TestCase - { /** * @covers NET::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('NET', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pHost'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::resolv * @todo Implement testresolv(). */ - public function testresolv() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'resolv', $methods ), 'seems like this function is outside this class' ); - } + public function testresolv() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('resolv', $methods ), 'exists method resolv' ); + $r = new ReflectionMethod('NET', 'resolv'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pHost'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::scannPort * @todo Implement testscannPort(). */ - public function testscannPort() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'scannPort', $methods ), 'seems like this function is outside this class' ); - } + public function testscannPort() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('scannPort', $methods ), 'exists method scannPort' ); + $r = new ReflectionMethod('NET', 'scannPort'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pPort'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::is_ipaddress * @todo Implement testis_ipaddress(). */ - public function testis_ipaddress() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'is_ipaddress', $methods ), 'seems like this function is outside this class' ); - } + public function testis_ipaddress() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('is_ipaddress', $methods ), 'exists method is_ipaddress' ); + $r = new ReflectionMethod('NET', 'is_ipaddress'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pHost'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::ping * @todo Implement testping(). */ - public function testping() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'ping', $methods ), 'seems like this function is outside this class' ); - } + public function testping() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ping', $methods ), 'exists method ping' ); + $r = new ReflectionMethod('NET', 'ping'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pTTL'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '3000'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::loginDbServer * @todo Implement testloginDbServer(). */ - public function testloginDbServer() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'loginDbServer', $methods ), 'seems like this function is outside this class' ); - } + public function testloginDbServer() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loginDbServer', $methods ), 'exists method loginDbServer' ); + $r = new ReflectionMethod('NET', 'loginDbServer'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pPasswd'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::setDataBase * @todo Implement testsetDataBase(). */ - public function testsetDataBase() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'setDataBase', $methods ), 'seems like this function is outside this class' ); - } + public function testsetDataBase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setDataBase', $methods ), 'exists method setDataBase' ); + $r = new ReflectionMethod('NET', 'setDataBase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pDb'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pPort'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::tryConnectServer * @todo Implement testtryConnectServer(). */ - public function testtryConnectServer() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'tryConnectServer', $methods ), 'seems like this function is outside this class' ); - } + public function testtryConnectServer() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('tryConnectServer', $methods ), 'exists method tryConnectServer' ); + $r = new ReflectionMethod('NET', 'tryConnectServer'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pDbDriver'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::tryOpenDataBase * @todo Implement testtryOpenDataBase(). */ - public function testtryOpenDataBase() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'tryOpenDataBase', $methods ), 'seems like this function is outside this class' ); - } + public function testtryOpenDataBase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('tryOpenDataBase', $methods ), 'exists method tryOpenDataBase' ); + $r = new ReflectionMethod('NET', 'tryOpenDataBase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pDbDriver'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::getDbServerVersion * @todo Implement testgetDbServerVersion(). */ - public function testgetDbServerVersion() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'getDbServerVersion', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDbServerVersion() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDbServerVersion', $methods ), 'exists method getDbServerVersion' ); + $r = new ReflectionMethod('NET', 'getDbServerVersion'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'driver'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::dbName * @todo Implement testdbName(). */ - public function testdbName() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'dbName', $methods ), 'seems like this function is outside this class' ); - } + public function testdbName() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dbName', $methods ), 'exists method dbName' ); + $r = new ReflectionMethod('NET', 'dbName'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pAdapter'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::showMsg * @todo Implement testshowMsg(). */ - public function testshowMsg() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'showMsg', $methods ), 'seems like this function is outside this class' ); - } + public function testshowMsg() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('showMsg', $methods ), 'exists method showMsg' ); + $r = new ReflectionMethod('NET', 'showMsg'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::getErrno * @todo Implement testgetErrno(). */ - public function testgetErrno() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'getErrno', $methods ), 'seems like this function is outside this class' ); - } + public function testgetErrno() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getErrno', $methods ), 'exists method getErrno' ); + $r = new ReflectionMethod('NET', 'getErrno'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers NET::getErrmsg * @todo Implement testgetErrmsg(). */ - public function testgetErrmsg() - { - if (class_exists('NET')) { - $methods = get_class_methods( 'NET'); - $this->assertTrue( in_array( 'getErrmsg', $methods ), 'seems like this function is outside this class' ); - } + public function testgetErrmsg() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getErrmsg', $methods ), 'exists method getErrmsg' ); + $r = new ReflectionMethod('NET', 'getErrmsg'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classObjectCellectionTest.php b/tests/automated/workflow/engine/classes/classObjectCellectionTest.php index a49a63766..d933e65b3 100644 --- a/tests/automated/workflow/engine/classes/classObjectCellectionTest.php +++ b/tests/automated/workflow/engine/classes/classObjectCellectionTest.php @@ -1,51 +1,103 @@ -object = new ObjectCellection(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 3); + } - class classObjectCellectionTest extends PHPUnit_Framework_TestCase - { /** * @covers ObjectCellection::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('ObjectCellection')) { - $methods = get_class_methods( 'ObjectCellection'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('ObjectCellection', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ObjectCellection::add * @todo Implement testadd(). */ - public function testadd() - { - if (class_exists('ObjectCellection')) { - $methods = get_class_methods( 'ObjectCellection'); - $this->assertTrue( in_array( 'add', $methods ), 'seems like this function is outside this class' ); - } + public function testadd() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('add', $methods ), 'exists method add' ); + $r = new ReflectionMethod('ObjectCellection', 'add'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'data'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'origin'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ObjectCellection::get * @todo Implement testget(). */ - public function testget() - { - if (class_exists('ObjectCellection')) { - $methods = get_class_methods( 'ObjectCellection'); - $this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' ); - } + public function testget() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get', $methods ), 'exists method get' ); + $r = new ReflectionMethod('ObjectCellection', 'get'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classObjectDocumentTest.php b/tests/automated/workflow/engine/classes/classObjectDocumentTest.php index e41f7235d..de27dd063 100644 --- a/tests/automated/workflow/engine/classes/classObjectDocumentTest.php +++ b/tests/automated/workflow/engine/classes/classObjectDocumentTest.php @@ -1,27 +1,63 @@ -object = new ObjectDocument(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classObjectDocumentTest extends PHPUnit_Framework_TestCase - { /** * @covers ObjectDocument::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('ObjectDocument')) { - $methods = get_class_methods( 'ObjectDocument'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('ObjectDocument', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classPMDashletTest.php b/tests/automated/workflow/engine/classes/classPMDashletTest.php index 8b168bb93..28216eb4d 100644 --- a/tests/automated/workflow/engine/classes/classPMDashletTest.php +++ b/tests/automated/workflow/engine/classes/classPMDashletTest.php @@ -1,171 +1,250 @@ -object = new PMDashlet(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 58); + } - class classPMDashletTest extends PHPUnit_Framework_TestCase - { /** * @covers PMDashlet::getAdditionalFields * @todo Implement testgetAdditionalFields(). */ - public function testgetAdditionalFields() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'getAdditionalFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAdditionalFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAdditionalFields', $methods ), 'exists method getAdditionalFields' ); + $r = new ReflectionMethod('PMDashlet', 'getAdditionalFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::setup * @todo Implement testsetup(). */ - public function testsetup() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'setup', $methods ), 'seems like this function is outside this class' ); - } + public function testsetup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setup', $methods ), 'exists method setup' ); + $r = new ReflectionMethod('PMDashlet', 'setup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dasInsUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('PMDashlet', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'width'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '300'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::getDashletInstance * @todo Implement testgetDashletInstance(). */ - public function testgetDashletInstance() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'getDashletInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDashletInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDashletInstance', $methods ), 'exists method getDashletInstance' ); + $r = new ReflectionMethod('PMDashlet', 'getDashletInstance'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::getDashletObject * @todo Implement testgetDashletObject(). */ - public function testgetDashletObject() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'getDashletObject', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDashletObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDashletObject', $methods ), 'exists method getDashletObject' ); + $r = new ReflectionMethod('PMDashlet', 'getDashletObject'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::getDashletsInstances * @todo Implement testgetDashletsInstances(). */ - public function testgetDashletsInstances() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'getDashletsInstances', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDashletsInstances() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDashletsInstances', $methods ), 'exists method getDashletsInstances' ); + $r = new ReflectionMethod('PMDashlet', 'getDashletsInstances'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::getDashletsInstancesQuantity * @todo Implement testgetDashletsInstancesQuantity(). */ - public function testgetDashletsInstancesQuantity() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'getDashletsInstancesQuantity', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDashletsInstancesQuantity() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDashletsInstancesQuantity', $methods ), 'exists method getDashletsInstancesQuantity' ); + $r = new ReflectionMethod('PMDashlet', 'getDashletsInstancesQuantity'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::loadDashletInstance * @todo Implement testloadDashletInstance(). */ - public function testloadDashletInstance() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'loadDashletInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testloadDashletInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadDashletInstance', $methods ), 'exists method loadDashletInstance' ); + $r = new ReflectionMethod('PMDashlet', 'loadDashletInstance'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dasInsUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::saveDashletInstance * @todo Implement testsaveDashletInstance(). */ - public function testsaveDashletInstance() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'saveDashletInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveDashletInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveDashletInstance', $methods ), 'exists method saveDashletInstance' ); + $r = new ReflectionMethod('PMDashlet', 'saveDashletInstance'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'data'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::deleteDashletInstance * @todo Implement testdeleteDashletInstance(). */ - public function testdeleteDashletInstance() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'deleteDashletInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteDashletInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteDashletInstance', $methods ), 'exists method deleteDashletInstance' ); + $r = new ReflectionMethod('PMDashlet', 'deleteDashletInstance'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dasInsUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::getDashletsInstancesForUser * @todo Implement testgetDashletsInstancesForUser(). */ - public function testgetDashletsInstancesForUser() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'getDashletsInstancesForUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDashletsInstancesForUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDashletsInstancesForUser', $methods ), 'exists method getDashletsInstancesForUser' ); + $r = new ReflectionMethod('PMDashlet', 'getDashletsInstancesForUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMDashlet::getXTemplate * @todo Implement testgetXTemplate(). */ - public function testgetXTemplate() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'getXTemplate', $methods ), 'seems like this function is outside this class' ); - } - } + public function testgetXTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXTemplate', $methods ), 'exists method getXTemplate' ); + $r = new ReflectionMethod('PMDashlet', 'getXTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers PMDashlet::setIncludePath - * @todo Implement testsetIncludePath(). - */ - public function testsetIncludePath() - { - if (class_exists('PMDashlet')) { - $methods = get_class_methods( 'PMDashlet'); - $this->assertTrue( in_array( 'setIncludePath', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/workflow/engine/classes/classPMPluginRegistryTest.php b/tests/automated/workflow/engine/classes/classPMPluginRegistryTest.php index 0175334b1..609f45082 100644 --- a/tests/automated/workflow/engine/classes/classPMPluginRegistryTest.php +++ b/tests/automated/workflow/engine/classes/classPMPluginRegistryTest.php @@ -1,687 +1,1066 @@ -object = new PMPluginRegistry(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 56); + } - class classPMPluginRegistryTest extends PHPUnit_Framework_TestCase - { /** * @covers PMPluginRegistry::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('PMPluginRegistry', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getSingleton * @todo Implement testgetSingleton(). */ - public function testgetSingleton() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSingleton() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getSingleton'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::serializeInstance * @todo Implement testserializeInstance(). */ - public function testserializeInstance() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'serializeInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testserializeInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('serializeInstance', $methods ), 'exists method serializeInstance' ); + $r = new ReflectionMethod('PMPluginRegistry', 'serializeInstance'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::unSerializeInstance * @todo Implement testunSerializeInstance(). */ - public function testunSerializeInstance() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'unSerializeInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testunSerializeInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unSerializeInstance', $methods ), 'exists method unSerializeInstance' ); + $r = new ReflectionMethod('PMPluginRegistry', 'unSerializeInstance'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'serialized'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::save * @todo Implement testsave(). */ - public function testsave() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); - } + public function testsave() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('save', $methods ), 'exists method save' ); + $r = new ReflectionMethod('PMPluginRegistry', 'save'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerPlugin * @todo Implement testregisterPlugin(). */ - public function testregisterPlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterPlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerPlugin', $methods ), 'exists method registerPlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerPlugin'); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getPluginDetails * @todo Implement testgetPluginDetails(). */ - public function testgetPluginDetails() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getPluginDetails', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPluginDetails() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPluginDetails', $methods ), 'exists method getPluginDetails' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getPluginDetails'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sFilename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::enablePlugin * @todo Implement testenablePlugin(). */ - public function testenablePlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'enablePlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testenablePlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('enablePlugin', $methods ), 'exists method enablePlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'enablePlugin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::disablePlugin * @todo Implement testdisablePlugin(). */ - public function testdisablePlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'disablePlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testdisablePlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('disablePlugin', $methods ), 'exists method disablePlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'disablePlugin'); + $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() == 'eventPlugin'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getStatusPlugin * @todo Implement testgetStatusPlugin(). */ - public function testgetStatusPlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getStatusPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStatusPlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStatusPlugin', $methods ), 'exists method getStatusPlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getStatusPlugin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::installPluginArchive * @todo Implement testinstallPluginArchive(). */ - public function testinstallPluginArchive() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'installPluginArchive', $methods ), 'seems like this function is outside this class' ); - } + public function testinstallPluginArchive() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('installPluginArchive', $methods ), 'exists method installPluginArchive' ); + $r = new ReflectionMethod('PMPluginRegistry', 'installPluginArchive'); + $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() == 'pluginName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::uninstallPlugin * @todo Implement testuninstallPlugin(). */ - public function testuninstallPlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'uninstallPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testuninstallPlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('uninstallPlugin', $methods ), 'exists method uninstallPlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'uninstallPlugin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::uninstallPluginWorkspaces * @todo Implement testuninstallPluginWorkspaces(). */ - public function testuninstallPluginWorkspaces() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'uninstallPluginWorkspaces', $methods ), 'seems like this function is outside this class' ); - } + public function testuninstallPluginWorkspaces() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('uninstallPluginWorkspaces', $methods ), 'exists method uninstallPluginWorkspaces' ); + $r = new ReflectionMethod('PMPluginRegistry', 'uninstallPluginWorkspaces'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'arrayPlugin'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::installPlugin * @todo Implement testinstallPlugin(). */ - public function testinstallPlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'installPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testinstallPlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('installPlugin', $methods ), 'exists method installPlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'installPlugin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerMenu * @todo Implement testregisterMenu(). */ - public function testregisterMenu() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerMenu', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterMenu() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerMenu', $methods ), 'exists method registerMenu' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerMenu'); + $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() == 'sMenuId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFilename'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerDashlets * @todo Implement testregisterDashlets(). */ - public function testregisterDashlets() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerDashlets', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterDashlets() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerDashlets', $methods ), 'exists method registerDashlets' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerDashlets'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'namespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerCss * @todo Implement testregisterCss(). */ - public function testregisterCss() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerCss', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterCss() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerCss', $methods ), 'exists method registerCss' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerCss'); + $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() == 'sCssFile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getRegisteredCss * @todo Implement testgetRegisteredCss(). */ - public function testgetRegisteredCss() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getRegisteredCss', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRegisteredCss() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRegisteredCss', $methods ), 'exists method getRegisteredCss' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getRegisteredCss'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerJavascript * @todo Implement testregisterJavascript(). */ - public function testregisterJavascript() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerJavascript', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterJavascript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerJavascript', $methods ), 'exists method registerJavascript' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerJavascript'); + $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() == 'sCoreJsFile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'pluginJsFile'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getRegisteredJavascript * @todo Implement testgetRegisteredJavascript(). */ - public function testgetRegisteredJavascript() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getRegisteredJavascript', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRegisteredJavascript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRegisteredJavascript', $methods ), 'exists method getRegisteredJavascript' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getRegisteredJavascript'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getRegisteredJavascriptBy * @todo Implement testgetRegisteredJavascriptBy(). */ - public function testgetRegisteredJavascriptBy() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getRegisteredJavascriptBy', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRegisteredJavascriptBy() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRegisteredJavascriptBy', $methods ), 'exists method getRegisteredJavascriptBy' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getRegisteredJavascriptBy'); + $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() == 'sNamespace'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::unregisterJavascripts * @todo Implement testunregisterJavascripts(). */ - public function testunregisterJavascripts() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'unregisterJavascripts', $methods ), 'seems like this function is outside this class' ); - } + public function testunregisterJavascripts() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unregisterJavascripts', $methods ), 'exists method unregisterJavascripts' ); + $r = new ReflectionMethod('PMPluginRegistry', 'unregisterJavascripts'); + $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() == 'sCoreJsFile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerReport * @todo Implement testregisterReport(). */ - public function testregisterReport() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerReport', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterReport() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerReport', $methods ), 'exists method registerReport' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerReport'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerPmFunction * @todo Implement testregisterPmFunction(). */ - public function testregisterPmFunction() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerPmFunction', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterPmFunction() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerPmFunction', $methods ), 'exists method registerPmFunction' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerPmFunction'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerRedirectLogin * @todo Implement testregisterRedirectLogin(). */ - public function testregisterRedirectLogin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerRedirectLogin', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterRedirectLogin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerRedirectLogin', $methods ), 'exists method registerRedirectLogin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerRedirectLogin'); + $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() == 'sRole'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sPathMethod'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerFolder * @todo Implement testregisterFolder(). */ - public function testregisterFolder() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerFolder', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterFolder() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerFolder', $methods ), 'exists method registerFolder' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerFolder'); + $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() == 'sFolderId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFolderName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerStep * @todo Implement testregisterStep(). */ - public function testregisterStep() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerStep', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterStep() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerStep', $methods ), 'exists method registerStep' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerStep'); + $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() == 'sStepId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sStepName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sStepTitle'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'setupStepPage'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::isRegisteredFolder * @todo Implement testisRegisteredFolder(). */ - public function testisRegisteredFolder() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'isRegisteredFolder', $methods ), 'seems like this function is outside this class' ); - } + public function testisRegisteredFolder() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isRegisteredFolder', $methods ), 'exists method isRegisteredFolder' ); + $r = new ReflectionMethod('PMPluginRegistry', 'isRegisteredFolder'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sFolderName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getMenus * @todo Implement testgetMenus(). */ - public function testgetMenus() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getMenus', $methods ), 'seems like this function is outside this class' ); - } + public function testgetMenus() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getMenus', $methods ), 'exists method getMenus' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getMenus'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'menuId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getDashlets * @todo Implement testgetDashlets(). */ - public function testgetDashlets() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getDashlets', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDashlets() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDashlets', $methods ), 'exists method getDashlets' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getDashlets'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getReports * @todo Implement testgetReports(). */ - public function testgetReports() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getReports', $methods ), 'seems like this function is outside this class' ); - } + public function testgetReports() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getReports', $methods ), 'exists method getReports' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getReports'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getPmFunctions * @todo Implement testgetPmFunctions(). */ - public function testgetPmFunctions() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getPmFunctions', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPmFunctions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPmFunctions', $methods ), 'exists method getPmFunctions' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getPmFunctions'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getSteps * @todo Implement testgetSteps(). */ - public function testgetSteps() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getSteps', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSteps() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSteps', $methods ), 'exists method getSteps' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getSteps'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getRedirectLogins * @todo Implement testgetRedirectLogins(). */ - public function testgetRedirectLogins() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getRedirectLogins', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRedirectLogins() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRedirectLogins', $methods ), 'exists method getRedirectLogins' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getRedirectLogins'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::executeTriggers * @todo Implement testexecuteTriggers(). */ - public function testexecuteTriggers() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'executeTriggers', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteTriggers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeTriggers', $methods ), 'exists method executeTriggers' ); + $r = new ReflectionMethod('PMPluginRegistry', 'executeTriggers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'triggerId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'oData'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::existsTrigger * @todo Implement testexistsTrigger(). */ - public function testexistsTrigger() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'existsTrigger', $methods ), 'seems like this function is outside this class' ); - } + public function testexistsTrigger() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('existsTrigger', $methods ), 'exists method existsTrigger' ); + $r = new ReflectionMethod('PMPluginRegistry', 'existsTrigger'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'triggerId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getTriggerInfo * @todo Implement testgetTriggerInfo(). */ - public function testgetTriggerInfo() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getTriggerInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTriggerInfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTriggerInfo', $methods ), 'exists method getTriggerInfo' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getTriggerInfo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'triggerId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerTrigger * @todo Implement testregisterTrigger(). */ - public function testregisterTrigger() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerTrigger', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterTrigger() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerTrigger', $methods ), 'exists method registerTrigger' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerTrigger'); + $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() == 'sTriggerId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTriggerName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getPlugin * @todo Implement testgetPlugin(). */ - public function testgetPlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPlugin', $methods ), 'exists method getPlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getPlugin'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::setCompanyLogo * @todo Implement testsetCompanyLogo(). */ - public function testsetCompanyLogo() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'setCompanyLogo', $methods ), 'seems like this function is outside this class' ); - } + public function testsetCompanyLogo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setCompanyLogo', $methods ), 'exists method setCompanyLogo' ); + $r = new ReflectionMethod('PMPluginRegistry', 'setCompanyLogo'); + $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() == 'filename'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getCompanyLogo * @todo Implement testgetCompanyLogo(). */ - public function testgetCompanyLogo() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getCompanyLogo', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCompanyLogo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCompanyLogo', $methods ), 'exists method getCompanyLogo' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getCompanyLogo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'default'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::setupPlugins * @todo Implement testsetupPlugins(). */ - public function testsetupPlugins() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'setupPlugins', $methods ), 'seems like this function is outside this class' ); - } + public function testsetupPlugins() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setupPlugins', $methods ), 'exists method setupPlugins' ); + $r = new ReflectionMethod('PMPluginRegistry', 'setupPlugins'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::executeMethod * @todo Implement testexecuteMethod(). */ - public function testexecuteMethod() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'executeMethod', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteMethod() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeMethod', $methods ), 'exists method executeMethod' ); + $r = new ReflectionMethod('PMPluginRegistry', 'executeMethod'); + $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() == 'methodName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'oData'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getFieldsForPageSetup * @todo Implement testgetFieldsForPageSetup(). */ - public function testgetFieldsForPageSetup() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getFieldsForPageSetup', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFieldsForPageSetup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFieldsForPageSetup', $methods ), 'exists method getFieldsForPageSetup' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getFieldsForPageSetup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sNamespace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::updateFieldsForPageSetup * @todo Implement testupdateFieldsForPageSetup(). */ - public function testupdateFieldsForPageSetup() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'updateFieldsForPageSetup', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateFieldsForPageSetup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateFieldsForPageSetup', $methods ), 'exists method updateFieldsForPageSetup' ); + $r = new ReflectionMethod('PMPluginRegistry', 'updateFieldsForPageSetup'); + $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() == 'oData'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::eevalidate * @todo Implement testeevalidate(). */ - public function testeevalidate() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'eevalidate', $methods ), 'seems like this function is outside this class' ); - } + public function testeevalidate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('eevalidate', $methods ), 'exists method eevalidate' ); + $r = new ReflectionMethod('PMPluginRegistry', 'eevalidate'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerToolbarFile * @todo Implement testregisterToolbarFile(). */ - public function testregisterToolbarFile() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerToolbarFile', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterToolbarFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerToolbarFile', $methods ), 'exists method registerToolbarFile' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerToolbarFile'); + $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() == 'sToolbarId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFilename'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getToolbarOptions * @todo Implement testgetToolbarOptions(). */ - public function testgetToolbarOptions() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getToolbarOptions', $methods ), 'seems like this function is outside this class' ); - } + public function testgetToolbarOptions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getToolbarOptions', $methods ), 'exists method getToolbarOptions' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getToolbarOptions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sToolbarId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerCaseSchedulerPlugin * @todo Implement testregisterCaseSchedulerPlugin(). */ - public function testregisterCaseSchedulerPlugin() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerCaseSchedulerPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterCaseSchedulerPlugin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerCaseSchedulerPlugin', $methods ), 'exists method registerCaseSchedulerPlugin' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerCaseSchedulerPlugin'); + $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() == 'sActionId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sActionForm'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sActionSave'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sActionExecute'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'sActionGetFields'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getCaseSchedulerPlugins * @todo Implement testgetCaseSchedulerPlugins(). */ - public function testgetCaseSchedulerPlugins() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getCaseSchedulerPlugins', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseSchedulerPlugins() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseSchedulerPlugins', $methods ), 'exists method getCaseSchedulerPlugins' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getCaseSchedulerPlugins'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerTaskExtendedProperty * @todo Implement testregisterTaskExtendedProperty(). */ - public function testregisterTaskExtendedProperty() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerTaskExtendedProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterTaskExtendedProperty() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerTaskExtendedProperty', $methods ), 'exists method registerTaskExtendedProperty' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerTaskExtendedProperty'); + $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() == 'sPage'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sIcon'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerDashboardPage * @todo Implement testregisterDashboardPage(). */ - public function testregisterDashboardPage() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerDashboardPage', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterDashboardPage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerDashboardPage', $methods ), 'exists method registerDashboardPage' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerDashboardPage'); + $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() == 'sPage'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sIcon'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getDashboardPages * @todo Implement testgetDashboardPages(). */ - public function testgetDashboardPages() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getDashboardPages', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDashboardPages() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDashboardPages', $methods ), 'exists method getDashboardPages' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getDashboardPages'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getTaskExtendedProperties * @todo Implement testgetTaskExtendedProperties(). */ - public function testgetTaskExtendedProperties() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getTaskExtendedProperties', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTaskExtendedProperties() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTaskExtendedProperties', $methods ), 'exists method getTaskExtendedProperties' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getTaskExtendedProperties'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::registerDashboard * @todo Implement testregisterDashboard(). */ - public function testregisterDashboard() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'registerDashboard', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterDashboard() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerDashboard', $methods ), 'exists method registerDashboard' ); + $r = new ReflectionMethod('PMPluginRegistry', 'registerDashboard'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPluginRegistry::getAttributes * @todo Implement testgetAttributes(). */ - public function testgetAttributes() - { - if (class_exists('PMPluginRegistry')) { - $methods = get_class_methods( 'PMPluginRegistry'); - $this->assertTrue( in_array( 'getAttributes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAttributes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAttributes', $methods ), 'exists method getAttributes' ); + $r = new ReflectionMethod('PMPluginRegistry', 'getAttributes'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classPMPluginTest.php b/tests/automated/workflow/engine/classes/classPMPluginTest.php index 5a8451d7d..5a5d6bbeb 100644 --- a/tests/automated/workflow/engine/classes/classPMPluginTest.php +++ b/tests/automated/workflow/engine/classes/classPMPluginTest.php @@ -1,279 +1,491 @@ -object = new PMPlugin(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 22); + } - class classPMPluginTest extends PHPUnit_Framework_TestCase - { /** * @covers PMPlugin::PMPlugin * @todo Implement testPMPlugin(). */ - public function testPMPlugin() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'PMPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testPMPlugin() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerMenu * @todo Implement testregisterMenu(). */ - public function testregisterMenu() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerMenu', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterMenu() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerDashlets * @todo Implement testregisterDashlets(). */ - public function testregisterDashlets() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerDashlets', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterDashlets() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerDashlets', $methods ), 'exists method registerDashlets' ); + $r = new ReflectionMethod('PMPlugin', 'registerDashlets'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerReport * @todo Implement testregisterReport(). */ - public function testregisterReport() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerReport', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterReport() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerReport', $methods ), 'exists method registerReport' ); + $r = new ReflectionMethod('PMPlugin', 'registerReport'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerPmFunction * @todo Implement testregisterPmFunction(). */ - public function testregisterPmFunction() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerPmFunction', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterPmFunction() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerPmFunction', $methods ), 'exists method registerPmFunction' ); + $r = new ReflectionMethod('PMPlugin', 'registerPmFunction'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::setCompanyLogo * @todo Implement testsetCompanyLogo(). */ - public function testsetCompanyLogo() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'setCompanyLogo', $methods ), 'seems like this function is outside this class' ); - } + public function testsetCompanyLogo() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::redirectLogin * @todo Implement testredirectLogin(). */ - public function testredirectLogin() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'redirectLogin', $methods ), 'seems like this function is outside this class' ); - } + public function testredirectLogin() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerFolder * @todo Implement testregisterFolder(). */ - public function testregisterFolder() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerFolder', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterFolder() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerStep * @todo Implement testregisterStep(). */ - public function testregisterStep() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerStep', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterStep() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerTrigger * @todo Implement testregisterTrigger(). */ - public function testregisterTrigger() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerTrigger', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterTrigger() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::delete * @todo Implement testdelete(). */ - public function testdelete() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' ); - } + public function testdelete() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::copy * @todo Implement testcopy(). */ - public function testcopy() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'copy', $methods ), 'seems like this function is outside this class' ); - } + public function testcopy() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::rename * @todo Implement testrename(). */ - public function testrename() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'rename', $methods ), 'seems like this function is outside this class' ); - } + public function testrename() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerBreakPageTemplate * @todo Implement testregisterBreakPageTemplate(). */ - public function testregisterBreakPageTemplate() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerBreakPageTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterBreakPageTemplate() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerCss * @todo Implement testregisterCss(). */ - public function testregisterCss() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerCss', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterCss() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerToolbarFile * @todo Implement testregisterToolbarFile(). */ - public function testregisterToolbarFile() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerToolbarFile', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterToolbarFile() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerCaseSchedulerPlugin * @todo Implement testregisterCaseSchedulerPlugin(). */ - public function testregisterCaseSchedulerPlugin() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerCaseSchedulerPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterCaseSchedulerPlugin() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerTaskExtendedProperty * @todo Implement testregisterTaskExtendedProperty(). */ - public function testregisterTaskExtendedProperty() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerTaskExtendedProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterTaskExtendedProperty() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerJavascript * @todo Implement testregisterJavascript(). */ - public function testregisterJavascript() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerJavascript', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterJavascript() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::unregisterJavascript * @todo Implement testunregisterJavascript(). */ - public function testunregisterJavascript() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'unregisterJavascript', $methods ), 'seems like this function is outside this class' ); - } + public function testunregisterJavascript() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::registerDashboard * @todo Implement testregisterDashboard(). */ - public function testregisterDashboard() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'registerDashboard', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterDashboard() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerDashboard', $methods ), 'exists method registerDashboard' ); + $r = new ReflectionMethod('PMPlugin', 'registerDashboard'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMPlugin::getExternalStepAction * @todo Implement testgetExternalStepAction(). */ - public function testgetExternalStepAction() - { - if (class_exists('PMPlugin')) { - $methods = get_class_methods( 'PMPlugin'); - $this->assertTrue( in_array( 'getExternalStepAction', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExternalStepAction() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExternalStepAction', $methods ), 'exists method getExternalStepAction' ); + $r = new ReflectionMethod('PMPlugin', 'getExternalStepAction'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classPMScriptTest.php b/tests/automated/workflow/engine/classes/classPMScriptTest.php index fee2cf90e..1facd9192 100644 --- a/tests/automated/workflow/engine/classes/classPMScriptTest.php +++ b/tests/automated/workflow/engine/classes/classPMScriptTest.php @@ -1,195 +1,164 @@ -object = new PMScript(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 7); + } - class classPMScriptTest extends PHPUnit_Framework_TestCase - { /** * @covers PMScript::PMScript * @todo Implement testPMScript(). */ - public function testPMScript() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'PMScript', $methods ), 'seems like this function is outside this class' ); - } + public function testPMScript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('PMScript', $methods ), 'exists method PMScript' ); + $r = new ReflectionMethod('PMScript', 'PMScript'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMScript::setFields * @todo Implement testsetFields(). */ - public function testsetFields() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'setFields', $methods ), 'seems like this function is outside this class' ); - } + public function testsetFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setFields', $methods ), 'exists method setFields' ); + $r = new ReflectionMethod('PMScript', 'setFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aFields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMScript::setScript * @todo Implement testsetScript(). */ - public function testsetScript() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'setScript', $methods ), 'seems like this function is outside this class' ); - } + public function testsetScript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setScript', $methods ), 'exists method setScript' ); + $r = new ReflectionMethod('PMScript', 'setScript'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sScript'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMScript::validSyntax * @todo Implement testvalidSyntax(). */ - public function testvalidSyntax() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'validSyntax', $methods ), 'seems like this function is outside this class' ); - } + public function testvalidSyntax() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('validSyntax', $methods ), 'exists method validSyntax' ); + $r = new ReflectionMethod('PMScript', 'validSyntax'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sScript'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMScript::executeAndCatchErrors * @todo Implement testexecuteAndCatchErrors(). */ - public function testexecuteAndCatchErrors() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'executeAndCatchErrors', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteAndCatchErrors() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeAndCatchErrors', $methods ), 'exists method executeAndCatchErrors' ); + $r = new ReflectionMethod('PMScript', 'executeAndCatchErrors'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sScript'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sCode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMScript::execute * @todo Implement testexecute(). */ - public function testexecute() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'execute', $methods ), 'seems like this function is outside this class' ); - } + public function testexecute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('execute', $methods ), 'exists method execute' ); + $r = new ReflectionMethod('PMScript', 'execute'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMScript::evaluate * @todo Implement testevaluate(). */ - public function testevaluate() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'evaluate', $methods ), 'seems like this function is outside this class' ); - } - } + public function testevaluate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('evaluate', $methods ), 'exists method evaluate' ); + $r = new ReflectionMethod('PMScript', 'evaluate'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers PMScript::pmToString - * @todo Implement testpmToString(). - */ - public function testpmToString() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'pmToString', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMScript::pmToInteger - * @todo Implement testpmToInteger(). - */ - public function testpmToInteger() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'pmToInteger', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMScript::pmToFloat - * @todo Implement testpmToFloat(). - */ - public function testpmToFloat() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'pmToFloat', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMScript::pmToUrl - * @todo Implement testpmToUrl(). - */ - public function testpmToUrl() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'pmToUrl', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMScript::pmSqlEscape - * @todo Implement testpmSqlEscape(). - */ - public function testpmSqlEscape() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'pmSqlEscape', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMScript::handleErrors - * @todo Implement testhandleErrors(). - */ - public function testhandleErrors() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'handleErrors', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMScript::handleFatalErrors - * @todo Implement testhandleFatalErrors(). - */ - public function testhandleFatalErrors() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'handleFatalErrors', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers PMScript::registerError - * @todo Implement testregisterError(). - */ - public function testregisterError() - { - if (class_exists('PMScript')) { - $methods = get_class_methods( 'PMScript'); - $this->assertTrue( in_array( 'registerError', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/workflow/engine/classes/classPMmemcachedTest.php b/tests/automated/workflow/engine/classes/classPMmemcachedTest.php index 3c7313508..6ae4e1625 100644 --- a/tests/automated/workflow/engine/classes/classPMmemcachedTest.php +++ b/tests/automated/workflow/engine/classes/classPMmemcachedTest.php @@ -1,135 +1,251 @@ -object = new PMmemcached(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 12); + } - class classPMmemcachedTest extends PHPUnit_Framework_TestCase - { /** * @covers PMmemcached::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('PMmemcached', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'workspace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::getSingleton * @todo Implement testgetSingleton(). */ - public function testgetSingleton() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSingleton() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' ); + $r = new ReflectionMethod('PMmemcached', 'getSingleton'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'workspace'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + + } + + /** + * @covers PMmemcached::__clone + * @todo Implement test__clone(). + */ + public function test__clone() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__clone', $methods ), 'exists method __clone' ); + $r = new ReflectionMethod('PMmemcached', '__clone'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + + } + + /** + * @covers PMmemcached::__wakeup + * @todo Implement test__wakeup(). + */ + public function test__wakeup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__wakeup', $methods ), 'exists method __wakeup' ); + $r = new ReflectionMethod('PMmemcached', '__wakeup'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::set * @todo Implement testset(). */ - public function testset() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'set', $methods ), 'seems like this function is outside this class' ); - } + public function testset() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set', $methods ), 'exists method set' ); + $r = new ReflectionMethod('PMmemcached', 'set'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'key'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'object'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'timeout'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::get * @todo Implement testget(). */ - public function testget() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' ); - } + public function testget() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get', $methods ), 'exists method get' ); + $r = new ReflectionMethod('PMmemcached', 'get'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'key'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::add * @todo Implement testadd(). */ - public function testadd() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'add', $methods ), 'seems like this function is outside this class' ); - } + public function testadd() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('add', $methods ), 'exists method add' ); + $r = new ReflectionMethod('PMmemcached', 'add'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'key'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::increment * @todo Implement testincrement(). */ - public function testincrement() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'increment', $methods ), 'seems like this function is outside this class' ); - } + public function testincrement() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('increment', $methods ), 'exists method increment' ); + $r = new ReflectionMethod('PMmemcached', 'increment'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'key'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::delete * @todo Implement testdelete(). */ - public function testdelete() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' ); - } + public function testdelete() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('delete', $methods ), 'exists method delete' ); + $r = new ReflectionMethod('PMmemcached', 'delete'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'key'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::flush * @todo Implement testflush(). */ - public function testflush() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'flush', $methods ), 'seems like this function is outside this class' ); - } + public function testflush() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('flush', $methods ), 'exists method flush' ); + $r = new ReflectionMethod('PMmemcached', 'flush'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::getStats * @todo Implement testgetStats(). */ - public function testgetStats() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'getStats', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStats() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStats', $methods ), 'exists method getStats' ); + $r = new ReflectionMethod('PMmemcached', 'getStats'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PMmemcached::printDetails * @todo Implement testprintDetails(). */ - public function testprintDetails() - { - if (class_exists('PMmemcached')) { - $methods = get_class_methods( 'PMmemcached'); - $this->assertTrue( in_array( 'printDetails', $methods ), 'seems like this function is outside this class' ); - } + public function testprintDetails() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printDetails', $methods ), 'exists method printDetails' ); + $r = new ReflectionMethod('PMmemcached', 'printDetails'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classPmTableTest.php b/tests/automated/workflow/engine/classes/classPmTableTest.php index 4aac51d39..e8b6f8617 100644 --- a/tests/automated/workflow/engine/classes/classPmTableTest.php +++ b/tests/automated/workflow/engine/classes/classPmTableTest.php @@ -1,339 +1,468 @@ -object = new PmTable(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 26); + } - class classPmTableTest extends PHPUnit_Framework_TestCase - { /** * @covers PmTable::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('PmTable', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tableName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::setColumns * @todo Implement testsetColumns(). */ - public function testsetColumns() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'setColumns', $methods ), 'seems like this function is outside this class' ); - } + public function testsetColumns() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setColumns', $methods ), 'exists method setColumns' ); + $r = new ReflectionMethod('PmTable', 'setColumns'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'columns'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::setDataSource * @todo Implement testsetDataSource(). */ - public function testsetDataSource() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'setDataSource', $methods ), 'seems like this function is outside this class' ); - } + public function testsetDataSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setDataSource', $methods ), 'exists method setDataSource' ); + $r = new ReflectionMethod('PmTable', 'setDataSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbsUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::resolveDbSource * @todo Implement testresolveDbSource(). */ - public function testresolveDbSource() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'resolveDbSource', $methods ), 'seems like this function is outside this class' ); - } + public function testresolveDbSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('resolveDbSource', $methods ), 'exists method resolveDbSource' ); + $r = new ReflectionMethod('PmTable', 'resolveDbSource'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbsUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::getDataSource * @todo Implement testgetDataSource(). */ - public function testgetDataSource() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'getDataSource', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDataSource() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDataSource', $methods ), 'exists method getDataSource' ); + $r = new ReflectionMethod('PmTable', 'getDataSource'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::getDbConfig * @todo Implement testgetDbConfig(). */ - public function testgetDbConfig() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'getDbConfig', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDbConfig() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDbConfig', $methods ), 'exists method getDbConfig' ); + $r = new ReflectionMethod('PmTable', 'getDbConfig'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::setAlterTable * @todo Implement testsetAlterTable(). */ - public function testsetAlterTable() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'setAlterTable', $methods ), 'seems like this function is outside this class' ); - } + public function testsetAlterTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setAlterTable', $methods ), 'exists method setAlterTable' ); + $r = new ReflectionMethod('PmTable', 'setAlterTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::build * @todo Implement testbuild(). */ - public function testbuild() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'build', $methods ), 'seems like this function is outside this class' ); - } + public function testbuild() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('build', $methods ), 'exists method build' ); + $r = new ReflectionMethod('PmTable', 'build'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::buildModelFor * @todo Implement testbuildModelFor(). */ - public function testbuildModelFor() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'buildModelFor', $methods ), 'seems like this function is outside this class' ); - } + public function testbuildModelFor() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('buildModelFor', $methods ), 'exists method buildModelFor' ); + $r = new ReflectionMethod('PmTable', 'buildModelFor'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbsUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tablesList'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::prepare * @todo Implement testprepare(). */ - public function testprepare() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' ); - } + public function testprepare() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' ); + $r = new ReflectionMethod('PmTable', 'prepare'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'loadSchema'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::loadSchema * @todo Implement testloadSchema(). */ - public function testloadSchema() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'loadSchema', $methods ), 'seems like this function is outside this class' ); - } + public function testloadSchema() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadSchema', $methods ), 'exists method loadSchema' ); + $r = new ReflectionMethod('PmTable', 'loadSchema'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::buildSchema * @todo Implement testbuildSchema(). */ - public function testbuildSchema() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'buildSchema', $methods ), 'seems like this function is outside this class' ); - } + public function testbuildSchema() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('buildSchema', $methods ), 'exists method buildSchema' ); + $r = new ReflectionMethod('PmTable', 'buildSchema'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::remove * @todo Implement testremove(). */ - public function testremove() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'remove', $methods ), 'seems like this function is outside this class' ); - } + public function testremove() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('remove', $methods ), 'exists method remove' ); + $r = new ReflectionMethod('PmTable', 'remove'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::removeFromSchema * @todo Implement testremoveFromSchema(). */ - public function testremoveFromSchema() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'removeFromSchema', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveFromSchema() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeFromSchema', $methods ), 'exists method removeFromSchema' ); + $r = new ReflectionMethod('PmTable', 'removeFromSchema'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::removeModelFiles * @todo Implement testremoveModelFiles(). */ - public function testremoveModelFiles() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'removeModelFiles', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveModelFiles() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeModelFiles', $methods ), 'exists method removeModelFiles' ); + $r = new ReflectionMethod('PmTable', 'removeModelFiles'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::dropTable * @todo Implement testdropTable(). */ - public function testdropTable() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'dropTable', $methods ), 'seems like this function is outside this class' ); - } + public function testdropTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dropTable', $methods ), 'exists method dropTable' ); + $r = new ReflectionMethod('PmTable', 'dropTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tableName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::saveSchema * @todo Implement testsaveSchema(). */ - public function testsaveSchema() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'saveSchema', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveSchema() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveSchema', $methods ), 'exists method saveSchema' ); + $r = new ReflectionMethod('PmTable', 'saveSchema'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::preparePropelIniFile * @todo Implement testpreparePropelIniFile(). */ - public function testpreparePropelIniFile() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'preparePropelIniFile', $methods ), 'seems like this function is outside this class' ); - } + public function testpreparePropelIniFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('preparePropelIniFile', $methods ), 'exists method preparePropelIniFile' ); + $r = new ReflectionMethod('PmTable', 'preparePropelIniFile'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::upgradeDatabase * @todo Implement testupgradeDatabase(). */ - public function testupgradeDatabase() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'upgradeDatabase', $methods ), 'seems like this function is outside this class' ); - } + public function testupgradeDatabase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradeDatabase', $methods ), 'exists method upgradeDatabase' ); + $r = new ReflectionMethod('PmTable', 'upgradeDatabase'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::upgradeDatabaseFor * @todo Implement testupgradeDatabaseFor(). */ - public function testupgradeDatabaseFor() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'upgradeDatabaseFor', $methods ), 'seems like this function is outside this class' ); - } + public function testupgradeDatabaseFor() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradeDatabaseFor', $methods ), 'exists method upgradeDatabaseFor' ); + $r = new ReflectionMethod('PmTable', 'upgradeDatabaseFor'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dataSource'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tablesList'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::hasAutoIncrementPKey * @todo Implement testhasAutoIncrementPKey(). */ - public function testhasAutoIncrementPKey() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'hasAutoIncrementPKey', $methods ), 'seems like this function is outside this class' ); - } + public function testhasAutoIncrementPKey() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('hasAutoIncrementPKey', $methods ), 'exists method hasAutoIncrementPKey' ); + $r = new ReflectionMethod('PmTable', 'hasAutoIncrementPKey'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::getPropelSupportedColumnTypes * @todo Implement testgetPropelSupportedColumnTypes(). */ - public function testgetPropelSupportedColumnTypes() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'getPropelSupportedColumnTypes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPropelSupportedColumnTypes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPropelSupportedColumnTypes', $methods ), 'exists method getPropelSupportedColumnTypes' ); + $r = new ReflectionMethod('PmTable', 'getPropelSupportedColumnTypes'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::toCamelCase * @todo Implement testtoCamelCase(). */ - public function testtoCamelCase() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'toCamelCase', $methods ), 'seems like this function is outside this class' ); - } + public function testtoCamelCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('toCamelCase', $methods ), 'exists method toCamelCase' ); + $r = new ReflectionMethod('PmTable', 'toCamelCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::phingbuildModel * @todo Implement testphingbuildModel(). */ - public function testphingbuildModel() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'phingbuildModel', $methods ), 'seems like this function is outside this class' ); - } + public function testphingbuildModel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('phingbuildModel', $methods ), 'exists method phingbuildModel' ); + $r = new ReflectionMethod('PmTable', 'phingbuildModel'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers PmTable::phingbuildSql * @todo Implement testphingbuildSql(). */ - public function testphingbuildSql() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'phingbuildSql', $methods ), 'seems like this function is outside this class' ); - } - } + public function testphingbuildSql() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('phingbuildSql', $methods ), 'exists method phingbuildSql' ); + $r = new ReflectionMethod('PmTable', 'phingbuildSql'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers PmTable::_callPhing - * @todo Implement test_callPhing(). - */ - public function test_callPhing() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( '_callPhing', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers PmTable::callPhing * @todo Implement testcallPhing(). */ - public function testcallPhing() - { - if (class_exists('PmTable')) { - $methods = get_class_methods( 'PmTable'); - $this->assertTrue( in_array( 'callPhing', $methods ), 'seems like this function is outside this class' ); - } + public function testcallPhing() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('callPhing', $methods ), 'exists method callPhing' ); + $r = new ReflectionMethod('PmTable', 'callPhing'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'target'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'buildFile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'options'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[3]->getName() == 'verbose'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classProcessMakerWebDavTest.php b/tests/automated/workflow/engine/classes/classProcessMakerWebDavTest.php deleted file mode 100644 index 9f563bc50..000000000 --- a/tests/automated/workflow/engine/classes/classProcessMakerWebDavTest.php +++ /dev/null @@ -1,231 +0,0 @@ -assertTrue( in_array( 'ServeRequest', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::check_auth - * @todo Implement testcheck_auth(). - */ - public function testcheck_auth() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'check_auth', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::PROPFIND - * @todo Implement testPROPFIND(). - */ - public function testPROPFIND() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'PROPFIND', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::_can_execute - * @todo Implement test_can_execute(). - */ - public function test_can_execute() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( '_can_execute', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::_mimetype - * @todo Implement test_mimetype(). - */ - public function test_mimetype() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( '_mimetype', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::GET - * @todo Implement testGET(). - */ - public function testGET() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'GET', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::getRoot - * @todo Implement testgetRoot(). - */ - public function testgetRoot() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'getRoot', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::GetDir - * @todo Implement testGetDir(). - */ - public function testGetDir() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'GetDir', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::PUT - * @todo Implement testPUT(). - */ - public function testPUT() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'PUT', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::MKCOL - * @todo Implement testMKCOL(). - */ - public function testMKCOL() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'MKCOL', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::DELETE - * @todo Implement testDELETE(). - */ - public function testDELETE() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'DELETE', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::MOVE - * @todo Implement testMOVE(). - */ - public function testMOVE() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'MOVE', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::COPY - * @todo Implement testCOPY(). - */ - public function testCOPY() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'COPY', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::PROPPATCH - * @todo Implement testPROPPATCH(). - */ - public function testPROPPATCH() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'PROPPATCH', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::LOCK - * @todo Implement testLOCK(). - */ - public function testLOCK() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'LOCK', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::UNLOCK - * @todo Implement testUNLOCK(). - */ - public function testUNLOCK() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'UNLOCK', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::checkLock - * @todo Implement testcheckLock(). - */ - public function testcheckLock() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'checkLock', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers ProcessMakerWebDav::create_database - * @todo Implement testcreate_database(). - */ - public function testcreate_database() - { - if (class_exists('ProcessMakerWebDav')) { - $methods = get_class_methods( 'ProcessMakerWebDav'); - $this->assertTrue( in_array( 'create_database', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/workflow/engine/classes/classProcessesTest.php b/tests/automated/workflow/engine/classes/classProcessesTest.php index 2e115f1a6..5f9619f0d 100644 --- a/tests/automated/workflow/engine/classes/classProcessesTest.php +++ b/tests/automated/workflow/engine/classes/classProcessesTest.php @@ -1,1707 +1,2458 @@ -object = new Processes(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 141); + } - class classProcessesTest extends PHPUnit_Framework_TestCase - { /** * @covers Processes::changeStatus * @todo Implement testchangeStatus(). */ - public function testchangeStatus() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'changeStatus', $methods ), 'seems like this function is outside this class' ); - } + public function testchangeStatus() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('changeStatus', $methods ), 'exists method changeStatus' ); + $r = new ReflectionMethod('Processes', 'changeStatus'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::changeDebugMode * @todo Implement testchangeDebugMode(). */ - public function testchangeDebugMode() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'changeDebugMode', $methods ), 'seems like this function is outside this class' ); - } + public function testchangeDebugMode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('changeDebugMode', $methods ), 'exists method changeDebugMode' ); + $r = new ReflectionMethod('Processes', 'changeDebugMode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::changeProcessParent * @todo Implement testchangeProcessParent(). */ - public function testchangeProcessParent() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'changeProcessParent', $methods ), 'seems like this function is outside this class' ); - } + public function testchangeProcessParent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('changeProcessParent', $methods ), 'exists method changeProcessParent' ); + $r = new ReflectionMethod('Processes', 'changeProcessParent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sParentUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::processExists * @todo Implement testprocessExists(). */ - public function testprocessExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'processExists', $methods ), 'seems like this function is outside this class' ); - } + public function testprocessExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('processExists', $methods ), 'exists method processExists' ); + $r = new ReflectionMethod('Processes', 'processExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedProcessGUID * @todo Implement testgetUnusedProcessGUID(). */ - public function testgetUnusedProcessGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedProcessGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedProcessGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedProcessGUID', $methods ), 'exists method getUnusedProcessGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedProcessGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::taskExists * @todo Implement testtaskExists(). */ - public function testtaskExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'taskExists', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskExists', $methods ), 'exists method taskExists' ); + $r = new ReflectionMethod('Processes', 'taskExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTasUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedTaskGUID * @todo Implement testgetUnusedTaskGUID(). */ - public function testgetUnusedTaskGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedTaskGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedTaskGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedTaskGUID', $methods ), 'exists method getUnusedTaskGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedTaskGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::dynaformExists * @todo Implement testdynaformExists(). */ - public function testdynaformExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'dynaformExists', $methods ), 'seems like this function is outside this class' ); - } + public function testdynaformExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dynaformExists', $methods ), 'exists method dynaformExists' ); + $r = new ReflectionMethod('Processes', 'dynaformExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sDynUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::inputExists * @todo Implement testinputExists(). */ - public function testinputExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'inputExists', $methods ), 'seems like this function is outside this class' ); - } + public function testinputExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('inputExists', $methods ), 'exists method inputExists' ); + $r = new ReflectionMethod('Processes', 'inputExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::outputExists * @todo Implement testoutputExists(). */ - public function testoutputExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'outputExists', $methods ), 'seems like this function is outside this class' ); - } + public function testoutputExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('outputExists', $methods ), 'exists method outputExists' ); + $r = new ReflectionMethod('Processes', 'outputExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::triggerExists * @todo Implement testtriggerExists(). */ - public function testtriggerExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'triggerExists', $methods ), 'seems like this function is outside this class' ); - } + public function testtriggerExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('triggerExists', $methods ), 'exists method triggerExists' ); + $r = new ReflectionMethod('Processes', 'triggerExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::SubProcessExists * @todo Implement testSubProcessExists(). */ - public function testSubProcessExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'SubProcessExists', $methods ), 'seems like this function is outside this class' ); - } + public function testSubProcessExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('SubProcessExists', $methods ), 'exists method SubProcessExists' ); + $r = new ReflectionMethod('Processes', 'SubProcessExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::caseTrackerObjectExists * @todo Implement testcaseTrackerObjectExists(). */ - public function testcaseTrackerObjectExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'caseTrackerObjectExists', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseTrackerObjectExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseTrackerObjectExists', $methods ), 'exists method caseTrackerObjectExists' ); + $r = new ReflectionMethod('Processes', 'caseTrackerObjectExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::caseTrackerExists * @todo Implement testcaseTrackerExists(). */ - public function testcaseTrackerExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'caseTrackerExists', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseTrackerExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseTrackerExists', $methods ), 'exists method caseTrackerExists' ); + $r = new ReflectionMethod('Processes', 'caseTrackerExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::dbConnectionExists * @todo Implement testdbConnectionExists(). */ - public function testdbConnectionExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'dbConnectionExists', $methods ), 'seems like this function is outside this class' ); - } + public function testdbConnectionExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dbConnectionExists', $methods ), 'exists method dbConnectionExists' ); + $r = new ReflectionMethod('Processes', 'dbConnectionExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::objectPermissionExists * @todo Implement testobjectPermissionExists(). */ - public function testobjectPermissionExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'objectPermissionExists', $methods ), 'seems like this function is outside this class' ); - } + public function testobjectPermissionExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('objectPermissionExists', $methods ), 'exists method objectPermissionExists' ); + $r = new ReflectionMethod('Processes', 'objectPermissionExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::routeExists * @todo Implement testrouteExists(). */ - public function testrouteExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'routeExists', $methods ), 'seems like this function is outside this class' ); - } + public function testrouteExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('routeExists', $methods ), 'exists method routeExists' ); + $r = new ReflectionMethod('Processes', 'routeExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::stageExists * @todo Implement teststageExists(). */ - public function teststageExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'stageExists', $methods ), 'seems like this function is outside this class' ); - } + public function teststageExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('stageExists', $methods ), 'exists method stageExists' ); + $r = new ReflectionMethod('Processes', 'stageExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::slExists * @todo Implement testslExists(). */ - public function testslExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'slExists', $methods ), 'seems like this function is outside this class' ); - } + public function testslExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('slExists', $methods ), 'exists method slExists' ); + $r = new ReflectionMethod('Processes', 'slExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::reportTableExists * @todo Implement testreportTableExists(). */ - public function testreportTableExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'reportTableExists', $methods ), 'seems like this function is outside this class' ); - } + public function testreportTableExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reportTableExists', $methods ), 'exists method reportTableExists' ); + $r = new ReflectionMethod('Processes', 'reportTableExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::reportVarExists * @todo Implement testreportVarExists(). */ - public function testreportVarExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'reportVarExists', $methods ), 'seems like this function is outside this class' ); - } + public function testreportVarExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reportVarExists', $methods ), 'exists method reportVarExists' ); + $r = new ReflectionMethod('Processes', 'reportVarExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::fieldsConditionsExists * @todo Implement testfieldsConditionsExists(). */ - public function testfieldsConditionsExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'fieldsConditionsExists', $methods ), 'seems like this function is outside this class' ); - } + public function testfieldsConditionsExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('fieldsConditionsExists', $methods ), 'exists method fieldsConditionsExists' ); + $r = new ReflectionMethod('Processes', 'fieldsConditionsExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::eventExists * @todo Implement testeventExists(). */ - public function testeventExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'eventExists', $methods ), 'seems like this function is outside this class' ); - } + public function testeventExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('eventExists', $methods ), 'exists method eventExists' ); + $r = new ReflectionMethod('Processes', 'eventExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::caseSchedulerExists * @todo Implement testcaseSchedulerExists(). */ - public function testcaseSchedulerExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'caseSchedulerExists', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseSchedulerExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseSchedulerExists', $methods ), 'exists method caseSchedulerExists' ); + $r = new ReflectionMethod('Processes', 'caseSchedulerExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedInputGUID * @todo Implement testgetUnusedInputGUID(). */ - public function testgetUnusedInputGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedInputGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedInputGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedInputGUID', $methods ), 'exists method getUnusedInputGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedInputGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedOutputGUID * @todo Implement testgetUnusedOutputGUID(). */ - public function testgetUnusedOutputGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedOutputGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedOutputGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedOutputGUID', $methods ), 'exists method getUnusedOutputGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedOutputGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedTriggerGUID * @todo Implement testgetUnusedTriggerGUID(). */ - public function testgetUnusedTriggerGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedTriggerGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedTriggerGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedTriggerGUID', $methods ), 'exists method getUnusedTriggerGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedTriggerGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedSubProcessGUID * @todo Implement testgetUnusedSubProcessGUID(). */ - public function testgetUnusedSubProcessGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedSubProcessGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedSubProcessGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedSubProcessGUID', $methods ), 'exists method getUnusedSubProcessGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedSubProcessGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedCaseTrackerObjectGUID * @todo Implement testgetUnusedCaseTrackerObjectGUID(). */ - public function testgetUnusedCaseTrackerObjectGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedCaseTrackerObjectGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedCaseTrackerObjectGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedCaseTrackerObjectGUID', $methods ), 'exists method getUnusedCaseTrackerObjectGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedCaseTrackerObjectGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedDBSourceGUID * @todo Implement testgetUnusedDBSourceGUID(). */ - public function testgetUnusedDBSourceGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedDBSourceGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedDBSourceGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedDBSourceGUID', $methods ), 'exists method getUnusedDBSourceGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedDBSourceGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedObjectPermissionGUID * @todo Implement testgetUnusedObjectPermissionGUID(). */ - public function testgetUnusedObjectPermissionGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedObjectPermissionGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedObjectPermissionGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedObjectPermissionGUID', $methods ), 'exists method getUnusedObjectPermissionGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedObjectPermissionGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedRouteGUID * @todo Implement testgetUnusedRouteGUID(). */ - public function testgetUnusedRouteGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedRouteGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedRouteGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedRouteGUID', $methods ), 'exists method getUnusedRouteGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedRouteGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedStageGUID * @todo Implement testgetUnusedStageGUID(). */ - public function testgetUnusedStageGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedStageGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedStageGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedStageGUID', $methods ), 'exists method getUnusedStageGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedStageGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedSLGUID * @todo Implement testgetUnusedSLGUID(). */ - public function testgetUnusedSLGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedSLGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedSLGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedSLGUID', $methods ), 'exists method getUnusedSLGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedSLGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedRTGUID * @todo Implement testgetUnusedRTGUID(). */ - public function testgetUnusedRTGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedRTGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedRTGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedRTGUID', $methods ), 'exists method getUnusedRTGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedRTGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedRTVGUID * @todo Implement testgetUnusedRTVGUID(). */ - public function testgetUnusedRTVGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedRTVGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedRTVGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedRTVGUID', $methods ), 'exists method getUnusedRTVGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedRTVGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::stepExists * @todo Implement teststepExists(). */ - public function teststepExists() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'stepExists', $methods ), 'seems like this function is outside this class' ); - } + public function teststepExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('stepExists', $methods ), 'exists method stepExists' ); + $r = new ReflectionMethod('Processes', 'stepExists'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedStepGUID * @todo Implement testgetUnusedStepGUID(). */ - public function testgetUnusedStepGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedStepGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedStepGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedStepGUID', $methods ), 'exists method getUnusedStepGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedStepGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedDynaformGUID * @todo Implement testgetUnusedDynaformGUID(). */ - public function testgetUnusedDynaformGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedDynaformGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedDynaformGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedDynaformGUID', $methods ), 'exists method getUnusedDynaformGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedDynaformGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedFieldConditionGUID * @todo Implement testgetUnusedFieldConditionGUID(). */ - public function testgetUnusedFieldConditionGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedFieldConditionGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedFieldConditionGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedFieldConditionGUID', $methods ), 'exists method getUnusedFieldConditionGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedFieldConditionGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedEventGUID * @todo Implement testgetUnusedEventGUID(). */ - public function testgetUnusedEventGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedEventGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedEventGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedEventGUID', $methods ), 'exists method getUnusedEventGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedEventGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getUnusedCaseSchedulerGUID * @todo Implement testgetUnusedCaseSchedulerGUID(). */ - public function testgetUnusedCaseSchedulerGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getUnusedCaseSchedulerGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUnusedCaseSchedulerGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUnusedCaseSchedulerGUID', $methods ), 'exists method getUnusedCaseSchedulerGUID' ); + $r = new ReflectionMethod('Processes', 'getUnusedCaseSchedulerGUID'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::setProcessGUID * @todo Implement testsetProcessGUID(). */ - public function testsetProcessGUID() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'setProcessGUID', $methods ), 'seems like this function is outside this class' ); - } + public function testsetProcessGUID() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setProcessGUID', $methods ), 'exists method setProcessGUID' ); + $r = new ReflectionMethod('Processes', 'setProcessGUID'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sNewProUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::setProcessParent * @todo Implement testsetProcessParent(). */ - public function testsetProcessParent() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'setProcessParent', $methods ), 'seems like this function is outside this class' ); - } + public function testsetProcessParent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setProcessParent', $methods ), 'exists method setProcessParent' ); + $r = new ReflectionMethod('Processes', 'setProcessParent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sParentUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllTaskGuid * @todo Implement testrenewAllTaskGuid(). */ - public function testrenewAllTaskGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllTaskGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllTaskGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllTaskGuid', $methods ), 'exists method renewAllTaskGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllTaskGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllDynaformGuid * @todo Implement testrenewAllDynaformGuid(). */ - public function testrenewAllDynaformGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllDynaformGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllDynaformGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllDynaformGuid', $methods ), 'exists method renewAllDynaformGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllDynaformGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getProcessRow * @todo Implement testgetProcessRow(). */ - public function testgetProcessRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getProcessRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetProcessRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getProcessRow', $methods ), 'exists method getProcessRow' ); + $r = new ReflectionMethod('Processes', 'getProcessRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'getAllLang'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createProcessRow * @todo Implement testcreateProcessRow(). */ - public function testcreateProcessRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createProcessRow', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcessRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcessRow', $methods ), 'exists method createProcessRow' ); + $r = new ReflectionMethod('Processes', 'createProcessRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'row'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::updateProcessRow * @todo Implement testupdateProcessRow(). */ - public function testupdateProcessRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'updateProcessRow', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateProcessRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateProcessRow', $methods ), 'exists method updateProcessRow' ); + $r = new ReflectionMethod('Processes', 'updateProcessRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'row'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getSubProcessRow * @todo Implement testgetSubProcessRow(). */ - public function testgetSubProcessRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getSubProcessRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSubProcessRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSubProcessRow', $methods ), 'exists method getSubProcessRow' ); + $r = new ReflectionMethod('Processes', 'getSubProcessRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getCaseTrackerRow * @todo Implement testgetCaseTrackerRow(). */ - public function testgetCaseTrackerRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getCaseTrackerRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseTrackerRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseTrackerRow', $methods ), 'exists method getCaseTrackerRow' ); + $r = new ReflectionMethod('Processes', 'getCaseTrackerRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getCaseTrackerObjectRow * @todo Implement testgetCaseTrackerObjectRow(). */ - public function testgetCaseTrackerObjectRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getCaseTrackerObjectRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseTrackerObjectRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseTrackerObjectRow', $methods ), 'exists method getCaseTrackerObjectRow' ); + $r = new ReflectionMethod('Processes', 'getCaseTrackerObjectRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getStageRow * @todo Implement testgetStageRow(). */ - public function testgetStageRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getStageRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStageRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStageRow', $methods ), 'exists method getStageRow' ); + $r = new ReflectionMethod('Processes', 'getStageRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getFieldCondition * @todo Implement testgetFieldCondition(). */ - public function testgetFieldCondition() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getFieldCondition', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFieldCondition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFieldCondition', $methods ), 'exists method getFieldCondition' ); + $r = new ReflectionMethod('Processes', 'getFieldCondition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getEventRow * @todo Implement testgetEventRow(). */ - public function testgetEventRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getEventRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetEventRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getEventRow', $methods ), 'exists method getEventRow' ); + $r = new ReflectionMethod('Processes', 'getEventRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getCaseSchedulerRow * @todo Implement testgetCaseSchedulerRow(). */ - public function testgetCaseSchedulerRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getCaseSchedulerRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseSchedulerRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseSchedulerRow', $methods ), 'exists method getCaseSchedulerRow' ); + $r = new ReflectionMethod('Processes', 'getCaseSchedulerRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getProcessCategoryRow * @todo Implement testgetProcessCategoryRow(). */ - public function testgetProcessCategoryRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getProcessCategoryRow', $methods ), 'seems like this function is outside this class' ); - } + public function testgetProcessCategoryRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getProcessCategoryRow', $methods ), 'exists method getProcessCategoryRow' ); + $r = new ReflectionMethod('Processes', 'getProcessCategoryRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getAllLanes * @todo Implement testgetAllLanes(). */ - public function testgetAllLanes() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getAllLanes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllLanes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllLanes', $methods ), 'exists method getAllLanes' ); + $r = new ReflectionMethod('Processes', 'getAllLanes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getTaskRows * @todo Implement testgetTaskRows(). */ - public function testgetTaskRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getTaskRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTaskRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTaskRows', $methods ), 'exists method getTaskRows' ); + $r = new ReflectionMethod('Processes', 'getTaskRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createTaskRows * @todo Implement testcreateTaskRows(). */ - public function testcreateTaskRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createTaskRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTaskRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTaskRows', $methods ), 'exists method createTaskRows' ); + $r = new ReflectionMethod('Processes', 'createTaskRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTasks'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::updateTaskRows * @todo Implement testupdateTaskRows(). */ - public function testupdateTaskRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'updateTaskRows', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateTaskRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateTaskRows', $methods ), 'exists method updateTaskRows' ); + $r = new ReflectionMethod('Processes', 'updateTaskRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTasks'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getRouteRows * @todo Implement testgetRouteRows(). */ - public function testgetRouteRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getRouteRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRouteRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRouteRows', $methods ), 'exists method getRouteRows' ); + $r = new ReflectionMethod('Processes', 'getRouteRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createRouteRows * @todo Implement testcreateRouteRows(). */ - public function testcreateRouteRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createRouteRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateRouteRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createRouteRows', $methods ), 'exists method createRouteRows' ); + $r = new ReflectionMethod('Processes', 'createRouteRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aRoutes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::updateRouteRows * @todo Implement testupdateRouteRows(). */ - public function testupdateRouteRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'updateRouteRows', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateRouteRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateRouteRows', $methods ), 'exists method updateRouteRows' ); + $r = new ReflectionMethod('Processes', 'updateRouteRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aRoutes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getLaneRows * @todo Implement testgetLaneRows(). */ - public function testgetLaneRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getLaneRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetLaneRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getLaneRows', $methods ), 'exists method getLaneRows' ); + $r = new ReflectionMethod('Processes', 'getLaneRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getGatewayRows * @todo Implement testgetGatewayRows(). */ - public function testgetGatewayRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getGatewayRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetGatewayRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getGatewayRows', $methods ), 'exists method getGatewayRows' ); + $r = new ReflectionMethod('Processes', 'getGatewayRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createGatewayRows * @todo Implement testcreateGatewayRows(). */ - public function testcreateGatewayRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createGatewayRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateGatewayRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createGatewayRows', $methods ), 'exists method createGatewayRows' ); + $r = new ReflectionMethod('Processes', 'createGatewayRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aGateways'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createLaneRows * @todo Implement testcreateLaneRows(). */ - public function testcreateLaneRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createLaneRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateLaneRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createLaneRows', $methods ), 'exists method createLaneRows' ); + $r = new ReflectionMethod('Processes', 'createLaneRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aLanes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createSubProcessRows * @todo Implement testcreateSubProcessRows(). */ - public function testcreateSubProcessRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createSubProcessRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSubProcessRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSubProcessRows', $methods ), 'exists method createSubProcessRows' ); + $r = new ReflectionMethod('Processes', 'createSubProcessRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'SubProcess'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createCaseTrackerRows * @todo Implement testcreateCaseTrackerRows(). */ - public function testcreateCaseTrackerRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createCaseTrackerRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateCaseTrackerRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createCaseTrackerRows', $methods ), 'exists method createCaseTrackerRows' ); + $r = new ReflectionMethod('Processes', 'createCaseTrackerRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'CaseTracker'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createCaseTrackerObjectRows * @todo Implement testcreateCaseTrackerObjectRows(). */ - public function testcreateCaseTrackerObjectRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createCaseTrackerObjectRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateCaseTrackerObjectRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createCaseTrackerObjectRows', $methods ), 'exists method createCaseTrackerObjectRows' ); + $r = new ReflectionMethod('Processes', 'createCaseTrackerObjectRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'CaseTrackerObject'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createObjectPermissionsRows * @todo Implement testcreateObjectPermissionsRows(). */ - public function testcreateObjectPermissionsRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createObjectPermissionsRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateObjectPermissionsRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createObjectPermissionsRows', $methods ), 'exists method createObjectPermissionsRows' ); + $r = new ReflectionMethod('Processes', 'createObjectPermissionsRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'ObjectPermissions'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createStageRows * @todo Implement testcreateStageRows(). */ - public function testcreateStageRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createStageRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateStageRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createStageRows', $methods ), 'exists method createStageRows' ); + $r = new ReflectionMethod('Processes', 'createStageRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'Stage'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createFieldCondition * @todo Implement testcreateFieldCondition(). */ - public function testcreateFieldCondition() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createFieldCondition', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateFieldCondition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createFieldCondition', $methods ), 'exists method createFieldCondition' ); + $r = new ReflectionMethod('Processes', 'createFieldCondition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aFieldCondition'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aDynaform'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createEventRows * @todo Implement testcreateEventRows(). */ - public function testcreateEventRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createEventRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateEventRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createEventRows', $methods ), 'exists method createEventRows' ); + $r = new ReflectionMethod('Processes', 'createEventRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'Event'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createCaseSchedulerRows * @todo Implement testcreateCaseSchedulerRows(). */ - public function testcreateCaseSchedulerRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createCaseSchedulerRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateCaseSchedulerRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createCaseSchedulerRows', $methods ), 'exists method createCaseSchedulerRows' ); + $r = new ReflectionMethod('Processes', 'createCaseSchedulerRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'CaseScheduler'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createProcessCategoryRow * @todo Implement testcreateProcessCategoryRow(). */ - public function testcreateProcessCategoryRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createProcessCategoryRow', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcessCategoryRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcessCategoryRow', $methods ), 'exists method createProcessCategoryRow' ); + $r = new ReflectionMethod('Processes', 'createProcessCategoryRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'row'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getInputRows * @todo Implement testgetInputRows(). */ - public function testgetInputRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getInputRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetInputRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getInputRows', $methods ), 'exists method getInputRows' ); + $r = new ReflectionMethod('Processes', 'getInputRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createInputRows * @todo Implement testcreateInputRows(). */ - public function testcreateInputRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createInputRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateInputRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createInputRows', $methods ), 'exists method createInputRows' ); + $r = new ReflectionMethod('Processes', 'createInputRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aInput'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllInputGuid * @todo Implement testrenewAllInputGuid(). */ - public function testrenewAllInputGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllInputGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllInputGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllInputGuid', $methods ), 'exists method renewAllInputGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllInputGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getOutputRows * @todo Implement testgetOutputRows(). */ - public function testgetOutputRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getOutputRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetOutputRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getOutputRows', $methods ), 'exists method getOutputRows' ); + $r = new ReflectionMethod('Processes', 'getOutputRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createOutputRows * @todo Implement testcreateOutputRows(). */ - public function testcreateOutputRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createOutputRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateOutputRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createOutputRows', $methods ), 'exists method createOutputRows' ); + $r = new ReflectionMethod('Processes', 'createOutputRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aOutput'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllOutputGuid * @todo Implement testrenewAllOutputGuid(). */ - public function testrenewAllOutputGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllOutputGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllOutputGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllOutputGuid', $methods ), 'exists method renewAllOutputGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllOutputGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllTriggerGuid * @todo Implement testrenewAllTriggerGuid(). */ - public function testrenewAllTriggerGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllTriggerGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllTriggerGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllTriggerGuid', $methods ), 'exists method renewAllTriggerGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllTriggerGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllSubProcessGuid * @todo Implement testrenewAllSubProcessGuid(). */ - public function testrenewAllSubProcessGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllSubProcessGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllSubProcessGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllSubProcessGuid', $methods ), 'exists method renewAllSubProcessGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllSubProcessGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllCaseTrackerObjectGuid * @todo Implement testrenewAllCaseTrackerObjectGuid(). */ - public function testrenewAllCaseTrackerObjectGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllCaseTrackerObjectGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllCaseTrackerObjectGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllCaseTrackerObjectGuid', $methods ), 'exists method renewAllCaseTrackerObjectGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllCaseTrackerObjectGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllDBSourceGuid * @todo Implement testrenewAllDBSourceGuid(). */ - public function testrenewAllDBSourceGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllDBSourceGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllDBSourceGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllDBSourceGuid', $methods ), 'exists method renewAllDBSourceGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllDBSourceGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllObjectPermissionGuid * @todo Implement testrenewAllObjectPermissionGuid(). */ - public function testrenewAllObjectPermissionGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllObjectPermissionGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllObjectPermissionGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllObjectPermissionGuid', $methods ), 'exists method renewAllObjectPermissionGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllObjectPermissionGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllRouteGuid * @todo Implement testrenewAllRouteGuid(). */ - public function testrenewAllRouteGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllRouteGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllRouteGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllRouteGuid', $methods ), 'exists method renewAllRouteGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllRouteGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllStageGuid * @todo Implement testrenewAllStageGuid(). */ - public function testrenewAllStageGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllStageGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllStageGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllStageGuid', $methods ), 'exists method renewAllStageGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllStageGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllSwimlanesElementsGuid * @todo Implement testrenewAllSwimlanesElementsGuid(). */ - public function testrenewAllSwimlanesElementsGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllSwimlanesElementsGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllSwimlanesElementsGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllSwimlanesElementsGuid', $methods ), 'exists method renewAllSwimlanesElementsGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllSwimlanesElementsGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllReportTableGuid * @todo Implement testrenewAllReportTableGuid(). */ - public function testrenewAllReportTableGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllReportTableGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllReportTableGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllReportTableGuid', $methods ), 'exists method renewAllReportTableGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllReportTableGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllReportVarGuid * @todo Implement testrenewAllReportVarGuid(). */ - public function testrenewAllReportVarGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllReportVarGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllReportVarGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllReportVarGuid', $methods ), 'exists method renewAllReportVarGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllReportVarGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllFieldCondition * @todo Implement testrenewAllFieldCondition(). */ - public function testrenewAllFieldCondition() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllFieldCondition', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllFieldCondition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllFieldCondition', $methods ), 'exists method renewAllFieldCondition' ); + $r = new ReflectionMethod('Processes', 'renewAllFieldCondition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllEvent * @todo Implement testrenewAllEvent(). */ - public function testrenewAllEvent() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllEvent', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllEvent() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllEvent', $methods ), 'exists method renewAllEvent' ); + $r = new ReflectionMethod('Processes', 'renewAllEvent'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllCaseScheduler * @todo Implement testrenewAllCaseScheduler(). */ - public function testrenewAllCaseScheduler() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllCaseScheduler', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllCaseScheduler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllCaseScheduler', $methods ), 'exists method renewAllCaseScheduler' ); + $r = new ReflectionMethod('Processes', 'renewAllCaseScheduler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAll * @todo Implement testrenewAll(). */ - public function testrenewAll() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAll', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAll() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAll', $methods ), 'exists method renewAll' ); + $r = new ReflectionMethod('Processes', 'renewAll'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getStepRows * @todo Implement testgetStepRows(). */ - public function testgetStepRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getStepRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStepRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStepRows', $methods ), 'exists method getStepRows' ); + $r = new ReflectionMethod('Processes', 'getStepRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createStepRows * @todo Implement testcreateStepRows(). */ - public function testcreateStepRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createStepRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateStepRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createStepRows', $methods ), 'exists method createStepRows' ); + $r = new ReflectionMethod('Processes', 'createStepRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aStep'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createStepSupervisorRows * @todo Implement testcreateStepSupervisorRows(). */ - public function testcreateStepSupervisorRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createStepSupervisorRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateStepSupervisorRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createStepSupervisorRows', $methods ), 'exists method createStepSupervisorRows' ); + $r = new ReflectionMethod('Processes', 'createStepSupervisorRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aStepSupervisor'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renewAllStepGuid * @todo Implement testrenewAllStepGuid(). */ - public function testrenewAllStepGuid() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renewAllStepGuid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenewAllStepGuid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renewAllStepGuid', $methods ), 'exists method renewAllStepGuid' ); + $r = new ReflectionMethod('Processes', 'renewAllStepGuid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getDynaformRows * @todo Implement testgetDynaformRows(). */ - public function testgetDynaformRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getDynaformRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDynaformRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDynaformRows', $methods ), 'exists method getDynaformRows' ); + $r = new ReflectionMethod('Processes', 'getDynaformRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getObjectPermissionRows * @todo Implement testgetObjectPermissionRows(). */ - public function testgetObjectPermissionRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getObjectPermissionRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetObjectPermissionRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getObjectPermissionRows', $methods ), 'exists method getObjectPermissionRows' ); + $r = new ReflectionMethod('Processes', 'getObjectPermissionRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createDynaformRows * @todo Implement testcreateDynaformRows(). */ - public function testcreateDynaformRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createDynaformRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateDynaformRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createDynaformRows', $methods ), 'exists method createDynaformRows' ); + $r = new ReflectionMethod('Processes', 'createDynaformRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aDynaform'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createStepTriggerRows * @todo Implement testcreateStepTriggerRows(). */ - public function testcreateStepTriggerRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createStepTriggerRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateStepTriggerRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createStepTriggerRows', $methods ), 'exists method createStepTriggerRows' ); + $r = new ReflectionMethod('Processes', 'createStepTriggerRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aStepTrigger'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getStepTriggerRows * @todo Implement testgetStepTriggerRows(). */ - public function testgetStepTriggerRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getStepTriggerRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStepTriggerRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStepTriggerRows', $methods ), 'exists method getStepTriggerRows' ); + $r = new ReflectionMethod('Processes', 'getStepTriggerRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTask'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getTriggerRows * @todo Implement testgetTriggerRows(). */ - public function testgetTriggerRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getTriggerRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTriggerRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTriggerRows', $methods ), 'exists method getTriggerRows' ); + $r = new ReflectionMethod('Processes', 'getTriggerRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createTriggerRows * @todo Implement testcreateTriggerRows(). */ - public function testcreateTriggerRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createTriggerRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTriggerRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTriggerRows', $methods ), 'exists method createTriggerRows' ); + $r = new ReflectionMethod('Processes', 'createTriggerRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTrigger'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getGroupwfRows * @todo Implement testgetGroupwfRows(). */ - public function testgetGroupwfRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getGroupwfRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetGroupwfRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getGroupwfRows', $methods ), 'exists method getGroupwfRows' ); + $r = new ReflectionMethod('Processes', 'getGroupwfRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aGroups'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getDBConnectionsRows * @todo Implement testgetDBConnectionsRows(). */ - public function testgetDBConnectionsRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getDBConnectionsRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDBConnectionsRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDBConnectionsRows', $methods ), 'exists method getDBConnectionsRows' ); + $r = new ReflectionMethod('Processes', 'getDBConnectionsRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getStepSupervisorRows * @todo Implement testgetStepSupervisorRows(). */ - public function testgetStepSupervisorRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getStepSupervisorRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStepSupervisorRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStepSupervisorRows', $methods ), 'exists method getStepSupervisorRows' ); + $r = new ReflectionMethod('Processes', 'getStepSupervisorRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getReportTablesRows * @todo Implement testgetReportTablesRows(). */ - public function testgetReportTablesRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getReportTablesRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetReportTablesRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getReportTablesRows', $methods ), 'exists method getReportTablesRows' ); + $r = new ReflectionMethod('Processes', 'getReportTablesRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getReportTablesVarsRows * @todo Implement testgetReportTablesVarsRows(). */ - public function testgetReportTablesVarsRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getReportTablesVarsRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetReportTablesVarsRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getReportTablesVarsRows', $methods ), 'exists method getReportTablesVarsRows' ); + $r = new ReflectionMethod('Processes', 'getReportTablesVarsRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getTaskUserRows * @todo Implement testgetTaskUserRows(). */ - public function testgetTaskUserRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getTaskUserRows', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTaskUserRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTaskUserRows', $methods ), 'exists method getTaskUserRows' ); + $r = new ReflectionMethod('Processes', 'getTaskUserRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTask'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createTaskUserRows * @todo Implement testcreateTaskUserRows(). */ - public function testcreateTaskUserRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createTaskUserRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTaskUserRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTaskUserRows', $methods ), 'exists method createTaskUserRows' ); + $r = new ReflectionMethod('Processes', 'createTaskUserRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTaskUser'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createGroupRow * @todo Implement testcreateGroupRow(). */ - public function testcreateGroupRow() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createGroupRow', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateGroupRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createGroupRow', $methods ), 'exists method createGroupRow' ); + $r = new ReflectionMethod('Processes', 'createGroupRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aGroupwf'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createDBConnectionsRows * @todo Implement testcreateDBConnectionsRows(). */ - public function testcreateDBConnectionsRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createDBConnectionsRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateDBConnectionsRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createDBConnectionsRows', $methods ), 'exists method createDBConnectionsRows' ); + $r = new ReflectionMethod('Processes', 'createDBConnectionsRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aConnections'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createReportTables * @todo Implement testcreateReportTables(). */ - public function testcreateReportTables() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createReportTables', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateReportTables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createReportTables', $methods ), 'exists method createReportTables' ); + $r = new ReflectionMethod('Processes', 'createReportTables'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aReportTables'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aReportTablesVars'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::updateReportTables * @todo Implement testupdateReportTables(). */ - public function testupdateReportTables() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'updateReportTables', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateReportTables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateReportTables', $methods ), 'exists method updateReportTables' ); + $r = new ReflectionMethod('Processes', 'updateReportTables'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aReportTables'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aReportTablesVars'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createReportTablesVars * @todo Implement testcreateReportTablesVars(). */ - public function testcreateReportTablesVars() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createReportTablesVars', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateReportTablesVars() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createReportTablesVars', $methods ), 'exists method createReportTablesVars' ); + $r = new ReflectionMethod('Processes', 'createReportTablesVars'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aReportTablesVars'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::cleanupReportTablesReferences * @todo Implement testcleanupReportTablesReferences(). */ - public function testcleanupReportTablesReferences() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'cleanupReportTablesReferences', $methods ), 'seems like this function is outside this class' ); - } + public function testcleanupReportTablesReferences() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('cleanupReportTablesReferences', $methods ), 'exists method cleanupReportTablesReferences' ); + $r = new ReflectionMethod('Processes', 'cleanupReportTablesReferences'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aReportTables'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::serializeProcess * @todo Implement testserializeProcess(). */ - public function testserializeProcess() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'serializeProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testserializeProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('serializeProcess', $methods ), 'exists method serializeProcess' ); + $r = new ReflectionMethod('Processes', 'serializeProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::saveSerializedProcess * @todo Implement testsaveSerializedProcess(). */ - public function testsaveSerializedProcess() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'saveSerializedProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveSerializedProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveSerializedProcess', $methods ), 'exists method saveSerializedProcess' ); + $r = new ReflectionMethod('Processes', 'saveSerializedProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getProcessData * @todo Implement testgetProcessData(). */ - public function testgetProcessData() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getProcessData', $methods ), 'seems like this function is outside this class' ); - } + public function testgetProcessData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getProcessData', $methods ), 'exists method getProcessData' ); + $r = new ReflectionMethod('Processes', 'getProcessData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pmFilename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::checkExistingGroups * @todo Implement testcheckExistingGroups(). */ - public function testcheckExistingGroups() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'checkExistingGroups', $methods ), 'seems like this function is outside this class' ); - } + public function testcheckExistingGroups() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('checkExistingGroups', $methods ), 'exists method checkExistingGroups' ); + $r = new ReflectionMethod('Processes', 'checkExistingGroups'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGroupList'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::renameExistingGroups * @todo Implement testrenameExistingGroups(). */ - public function testrenameExistingGroups() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'renameExistingGroups', $methods ), 'seems like this function is outside this class' ); - } + public function testrenameExistingGroups() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renameExistingGroups', $methods ), 'exists method renameExistingGroups' ); + $r = new ReflectionMethod('Processes', 'renameExistingGroups'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGroupList'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::mergeExistingGroups * @todo Implement testmergeExistingGroups(). */ - public function testmergeExistingGroups() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'mergeExistingGroups', $methods ), 'seems like this function is outside this class' ); - } + public function testmergeExistingGroups() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('mergeExistingGroups', $methods ), 'exists method mergeExistingGroups' ); + $r = new ReflectionMethod('Processes', 'mergeExistingGroups'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGroupList'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::mergeExistingUsers * @todo Implement testmergeExistingUsers(). */ - public function testmergeExistingUsers() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'mergeExistingUsers', $methods ), 'seems like this function is outside this class' ); - } + public function testmergeExistingUsers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('mergeExistingUsers', $methods ), 'exists method mergeExistingUsers' ); + $r = new ReflectionMethod('Processes', 'mergeExistingUsers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sBaseGroupList'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sGroupList'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTaskUserList'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::disablePreviousProcesses * @todo Implement testdisablePreviousProcesses(). */ - public function testdisablePreviousProcesses() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'disablePreviousProcesses', $methods ), 'seems like this function is outside this class' ); - } + public function testdisablePreviousProcesses() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('disablePreviousProcesses', $methods ), 'exists method disablePreviousProcesses' ); + $r = new ReflectionMethod('Processes', 'disablePreviousProcesses'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createFiles * @todo Implement testcreateFiles(). */ - public function testcreateFiles() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createFiles', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateFiles() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createFiles', $methods ), 'exists method createFiles' ); + $r = new ReflectionMethod('Processes', 'createFiles'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pmFilename'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::removeProcessRows * @todo Implement testremoveProcessRows(). */ - public function testremoveProcessRows() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'removeProcessRows', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveProcessRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeProcessRows', $methods ), 'exists method removeProcessRows' ); + $r = new ReflectionMethod('Processes', 'removeProcessRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::createProcessFromData * @todo Implement testcreateProcessFromData(). */ - public function testcreateProcessFromData() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'createProcessFromData', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcessFromData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcessFromData', $methods ), 'exists method createProcessFromData' ); + $r = new ReflectionMethod('Processes', 'createProcessFromData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pmFilename'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::updateProcessFromData * @todo Implement testupdateProcessFromData(). */ - public function testupdateProcessFromData() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'updateProcessFromData', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateProcessFromData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateProcessFromData', $methods ), 'exists method updateProcessFromData' ); + $r = new ReflectionMethod('Processes', 'updateProcessFromData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pmFilename'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getStartingTaskForUser * @todo Implement testgetStartingTaskForUser(). */ - public function testgetStartingTaskForUser() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getStartingTaskForUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStartingTaskForUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStartingTaskForUser', $methods ), 'exists method getStartingTaskForUser' ); + $r = new ReflectionMethod('Processes', 'getStartingTaskForUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUsrUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::ws_open * @todo Implement testws_open(). */ - public function testws_open() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'ws_open', $methods ), 'seems like this function is outside this class' ); - } + public function testws_open() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ws_open', $methods ), 'exists method ws_open' ); + $r = new ReflectionMethod('Processes', 'ws_open'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'user'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'pass'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::ws_open_public * @todo Implement testws_open_public(). */ - public function testws_open_public() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'ws_open_public', $methods ), 'seems like this function is outside this class' ); - } + public function testws_open_public() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ws_open_public', $methods ), 'exists method ws_open_public' ); + $r = new ReflectionMethod('Processes', 'ws_open_public'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::ws_processList * @todo Implement testws_processList(). */ - public function testws_processList() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'ws_processList', $methods ), 'seems like this function is outside this class' ); - } + public function testws_processList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ws_processList', $methods ), 'exists method ws_processList' ); + $r = new ReflectionMethod('Processes', 'ws_processList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::downloadFile * @todo Implement testdownloadFile(). */ - public function testdownloadFile() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'downloadFile', $methods ), 'seems like this function is outside this class' ); - } + public function testdownloadFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('downloadFile', $methods ), 'exists method downloadFile' ); + $r = new ReflectionMethod('Processes', 'downloadFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'local_path'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'newfilename'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::ws_processGetData * @todo Implement testws_processGetData(). */ - public function testws_processGetData() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'ws_processGetData', $methods ), 'seems like this function is outside this class' ); - } + public function testws_processGetData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ws_processGetData', $methods ), 'exists method ws_processGetData' ); + $r = new ReflectionMethod('Processes', 'ws_processGetData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'proId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::parseItemArray * @todo Implement testparseItemArray(). */ - public function testparseItemArray() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'parseItemArray', $methods ), 'seems like this function is outside this class' ); - } + public function testparseItemArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parseItemArray', $methods ), 'exists method parseItemArray' ); + $r = new ReflectionMethod('Processes', 'parseItemArray'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Processes::getProcessFiles * @todo Implement testgetProcessFiles(). */ - public function testgetProcessFiles() - { - if (class_exists('Processes')) { - $methods = get_class_methods( 'Processes'); - $this->assertTrue( in_array( 'getProcessFiles', $methods ), 'seems like this function is outside this class' ); - } + public function testgetProcessFiles() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getProcessFiles', $methods ), 'exists method getProcessFiles' ); + $r = new ReflectionMethod('Processes', 'getProcessFiles'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'proUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classReportTablesTest.php b/tests/automated/workflow/engine/classes/classReportTablesTest.php index c460727b9..fe77a4778 100644 --- a/tests/automated/workflow/engine/classes/classReportTablesTest.php +++ b/tests/automated/workflow/engine/classes/classReportTablesTest.php @@ -1,147 +1,293 @@ -object = new ReportTables(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 11); + } - class classReportTablesTest extends PHPUnit_Framework_TestCase - { /** * @covers ReportTables::deleteAllReportVars * @todo Implement testdeleteAllReportVars(). */ - public function testdeleteAllReportVars() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'deleteAllReportVars', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteAllReportVars() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteAllReportVars', $methods ), 'exists method deleteAllReportVars' ); + $r = new ReflectionMethod('ReportTables', 'deleteAllReportVars'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sRepTabUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::dropTable * @todo Implement testdropTable(). */ - public function testdropTable() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'dropTable', $methods ), 'seems like this function is outside this class' ); - } + public function testdropTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dropTable', $methods ), 'exists method dropTable' ); + $r = new ReflectionMethod('ReportTables', 'dropTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTableName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sConnection'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'report'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::createTable * @todo Implement testcreateTable(). */ - public function testcreateTable() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'createTable', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTable', $methods ), 'exists method createTable' ); + $r = new ReflectionMethod('ReportTables', 'createTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTableName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sConnection'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'report'); + $this->assertTrue( $params[2]->getName() == 'sType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'NORMAL'); + $this->assertTrue( $params[3]->getName() == 'aFields'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[4]->getName() == 'bDefaultFields'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::populateTable * @todo Implement testpopulateTable(). */ - public function testpopulateTable() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'populateTable', $methods ), 'seems like this function is outside this class' ); - } + public function testpopulateTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('populateTable', $methods ), 'exists method populateTable' ); + $r = new ReflectionMethod('ReportTables', 'populateTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTableName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sConnection'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'report'); + $this->assertTrue( $params[2]->getName() == 'sType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'NORMAL'); + $this->assertTrue( $params[3]->getName() == 'aFields'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == 'Array'); + $this->assertTrue( $params[4]->getName() == 'sProcessUid'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'sGrid'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::getTableVars * @todo Implement testgetTableVars(). */ - public function testgetTableVars() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'getTableVars', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTableVars() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTableVars', $methods ), 'exists method getTableVars' ); + $r = new ReflectionMethod('ReportTables', 'getTableVars'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sRepTabUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'bWhitType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::deleteReportTable * @todo Implement testdeleteReportTable(). */ - public function testdeleteReportTable() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'deleteReportTable', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteReportTable() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteReportTable', $methods ), 'exists method deleteReportTable' ); + $r = new ReflectionMethod('ReportTables', 'deleteReportTable'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sRepTabUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::getSplitDate * @todo Implement testgetSplitDate(). */ - public function testgetSplitDate() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'getSplitDate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSplitDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSplitDate', $methods ), 'exists method getSplitDate' ); + $r = new ReflectionMethod('ReportTables', 'getSplitDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'mask'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::getFormatDate * @todo Implement testgetFormatDate(). */ - public function testgetFormatDate() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'getFormatDate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetFormatDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getFormatDate', $methods ), 'exists method getFormatDate' ); + $r = new ReflectionMethod('ReportTables', 'getFormatDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sDate'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sMask'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::updateTables * @todo Implement testupdateTables(). */ - public function testupdateTables() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'updateTables', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateTables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateTables', $methods ), 'exists method updateTables' ); + $r = new ReflectionMethod('ReportTables', 'updateTables'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sApplicationUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iApplicationNumber'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'aFields'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::tableExist * @todo Implement testtableExist(). */ - public function testtableExist() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'tableExist', $methods ), 'seems like this function is outside this class' ); - } + public function testtableExist() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('tableExist', $methods ), 'exists method tableExist' ); + $r = new ReflectionMethod('ReportTables', 'tableExist'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers ReportTables::chooseDB * @todo Implement testchooseDB(). */ - public function testchooseDB() - { - if (class_exists('ReportTables')) { - $methods = get_class_methods( 'ReportTables'); - $this->assertTrue( in_array( 'chooseDB', $methods ), 'seems like this function is outside this class' ); - } + public function testchooseDB() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('chooseDB', $methods ), 'exists method chooseDB' ); + $r = new ReflectionMethod('ReportTables', 'chooseDB'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'TabConnectionk'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classReportTest.php b/tests/automated/workflow/engine/classes/classReportTest.php index 46e11009a..9ba94efc3 100644 --- a/tests/automated/workflow/engine/classes/classReportTest.php +++ b/tests/automated/workflow/engine/classes/classReportTest.php @@ -1,183 +1,296 @@ -object = new Report(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 14); + } - class classReportTest extends PHPUnit_Framework_TestCase - { /** * @covers Report::generatedReport1 * @todo Implement testgeneratedReport1(). */ - public function testgeneratedReport1() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport1', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport1() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport1', $methods ), 'exists method generatedReport1' ); + $r = new ReflectionMethod('Report', 'generatedReport1'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport1_filter * @todo Implement testgeneratedReport1_filter(). */ - public function testgeneratedReport1_filter() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport1_filter', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport1_filter() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport1_filter', $methods ), 'exists method generatedReport1_filter' ); + $r = new ReflectionMethod('Report', 'generatedReport1_filter'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'to'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'startedby'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::descriptionReport1 * @todo Implement testdescriptionReport1(). */ - public function testdescriptionReport1() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'descriptionReport1', $methods ), 'seems like this function is outside this class' ); - } + public function testdescriptionReport1() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('descriptionReport1', $methods ), 'exists method descriptionReport1' ); + $r = new ReflectionMethod('Report', 'descriptionReport1'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'PRO_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport2 * @todo Implement testgeneratedReport2(). */ - public function testgeneratedReport2() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport2', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport2() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport2', $methods ), 'exists method generatedReport2' ); + $r = new ReflectionMethod('Report', 'generatedReport2'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::reports_Description_filter * @todo Implement testreports_Description_filter(). */ - public function testreports_Description_filter() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'reports_Description_filter', $methods ), 'seems like this function is outside this class' ); - } + public function testreports_Description_filter() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reports_Description_filter', $methods ), 'exists method reports_Description_filter' ); + $r = new ReflectionMethod('Report', 'reports_Description_filter'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'to'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'startedby'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'PRO_UID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport2_filter * @todo Implement testgeneratedReport2_filter(). */ - public function testgeneratedReport2_filter() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport2_filter', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport2_filter() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport2_filter', $methods ), 'exists method generatedReport2_filter' ); + $r = new ReflectionMethod('Report', 'generatedReport2_filter'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'to'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'startedby'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport3 * @todo Implement testgeneratedReport3(). */ - public function testgeneratedReport3() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport3', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport3() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport3', $methods ), 'exists method generatedReport3' ); + $r = new ReflectionMethod('Report', 'generatedReport3'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport3_filter * @todo Implement testgeneratedReport3_filter(). */ - public function testgeneratedReport3_filter() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport3_filter', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport3_filter() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport3_filter', $methods ), 'exists method generatedReport3_filter' ); + $r = new ReflectionMethod('Report', 'generatedReport3_filter'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'process'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'task'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport4 * @todo Implement testgeneratedReport4(). */ - public function testgeneratedReport4() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport4', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport4() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport4', $methods ), 'exists method generatedReport4' ); + $r = new ReflectionMethod('Report', 'generatedReport4'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport4_filter * @todo Implement testgeneratedReport4_filter(). */ - public function testgeneratedReport4_filter() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport4_filter', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport4_filter() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport4_filter', $methods ), 'exists method generatedReport4_filter' ); + $r = new ReflectionMethod('Report', 'generatedReport4_filter'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'process'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'task'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport5 * @todo Implement testgeneratedReport5(). */ - public function testgeneratedReport5() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport5', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport5() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport5', $methods ), 'exists method generatedReport5' ); + $r = new ReflectionMethod('Report', 'generatedReport5'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::generatedReport5_filter * @todo Implement testgeneratedReport5_filter(). */ - public function testgeneratedReport5_filter() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'generatedReport5_filter', $methods ), 'seems like this function is outside this class' ); - } + public function testgeneratedReport5_filter() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('generatedReport5_filter', $methods ), 'exists method generatedReport5_filter' ); + $r = new ReflectionMethod('Report', 'generatedReport5_filter'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'process'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'task'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::getAvailableReports * @todo Implement testgetAvailableReports(). */ - public function testgetAvailableReports() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'getAvailableReports', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableReports() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableReports', $methods ), 'exists method getAvailableReports' ); + $r = new ReflectionMethod('Report', 'getAvailableReports'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Report::reportsPatch * @todo Implement testreportsPatch(). */ - public function testreportsPatch() - { - if (class_exists('Report')) { - $methods = get_class_methods( 'Report'); - $this->assertTrue( in_array( 'reportsPatch', $methods ), 'seems like this function is outside this class' ); - } + public function testreportsPatch() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reportsPatch', $methods ), 'exists method reportsPatch' ); + $r = new ReflectionMethod('Report', 'reportsPatch'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classSessionsTest.php b/tests/automated/workflow/engine/classes/classSessionsTest.php index a1bf0a9ea..af5dc9e4d 100644 --- a/tests/automated/workflow/engine/classes/classSessionsTest.php +++ b/tests/automated/workflow/engine/classes/classSessionsTest.php @@ -1,99 +1,154 @@ -object = new Sessions(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 6); + } - class classSessionsTest extends PHPUnit_Framework_TestCase - { /** * @covers Sessions::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('Sessions')) { - $methods = get_class_methods( 'Sessions'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('Sessions', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSessionId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Sessions::getSessionUser * @todo Implement testgetSessionUser(). */ - public function testgetSessionUser() - { - if (class_exists('Sessions')) { - $methods = get_class_methods( 'Sessions'); - $this->assertTrue( in_array( 'getSessionUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSessionUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSessionUser', $methods ), 'exists method getSessionUser' ); + $r = new ReflectionMethod('Sessions', 'getSessionUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSessionId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Sessions::verifySession * @todo Implement testverifySession(). */ - public function testverifySession() - { - if (class_exists('Sessions')) { - $methods = get_class_methods( 'Sessions'); - $this->assertTrue( in_array( 'verifySession', $methods ), 'seems like this function is outside this class' ); - } + public function testverifySession() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifySession', $methods ), 'exists method verifySession' ); + $r = new ReflectionMethod('Sessions', 'verifySession'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSessionId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Sessions::registerGlobal * @todo Implement testregisterGlobal(). */ - public function testregisterGlobal() - { - if (class_exists('Sessions')) { - $methods = get_class_methods( 'Sessions'); - $this->assertTrue( in_array( 'registerGlobal', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterGlobal() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerGlobal', $methods ), 'exists method registerGlobal' ); + $r = new ReflectionMethod('Sessions', 'registerGlobal'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Sessions::getGlobal * @todo Implement testgetGlobal(). */ - public function testgetGlobal() - { - if (class_exists('Sessions')) { - $methods = get_class_methods( 'Sessions'); - $this->assertTrue( in_array( 'getGlobal', $methods ), 'seems like this function is outside this class' ); - } + public function testgetGlobal() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getGlobal', $methods ), 'exists method getGlobal' ); + $r = new ReflectionMethod('Sessions', 'getGlobal'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Sessions::getGlobals * @todo Implement testgetGlobals(). */ - public function testgetGlobals() - { - if (class_exists('Sessions')) { - $methods = get_class_methods( 'Sessions'); - $this->assertTrue( in_array( 'getGlobals', $methods ), 'seems like this function is outside this class' ); - } - } + public function testgetGlobals() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getGlobals', $methods ), 'exists method getGlobals' ); + $r = new ReflectionMethod('Sessions', 'getGlobals'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers Sessions::deleteTmpfile - * @todo Implement testdeleteTmpfile(). - */ - public function testdeleteTmpfile() - { - if (class_exists('Sessions')) { - $methods = get_class_methods( 'Sessions'); - $this->assertTrue( in_array( 'deleteTmpfile', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/workflow/engine/classes/classStatTest.php b/tests/automated/workflow/engine/classes/classStatTest.php index 3e7b07ba9..4fd12c43e 100644 --- a/tests/automated/workflow/engine/classes/classStatTest.php +++ b/tests/automated/workflow/engine/classes/classStatTest.php @@ -1,27 +1,63 @@ -object = new Stat(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classStatTest extends PHPUnit_Framework_TestCase - { /** * @covers Stat::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('Stat')) { - $methods = get_class_methods( 'Stat'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('Stat', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classSystemTest.php b/tests/automated/workflow/engine/classes/classSystemTest.php deleted file mode 100644 index 0bda08966..000000000 --- a/tests/automated/workflow/engine/classes/classSystemTest.php +++ /dev/null @@ -1,303 +0,0 @@ -assertTrue( in_array( 'getPlugins', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::listWorkspaces - * @todo Implement testlistWorkspaces(). - */ - public function testlistWorkspaces() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'listWorkspaces', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getVersion - * @todo Implement testgetVersion(). - */ - public function testgetVersion() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getVersion', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getVersionFromGit - * @todo Implement testgetVersionFromGit(). - */ - public function testgetVersionFromGit() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getVersionFromGit', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getSysInfo - * @todo Implement testgetSysInfo(). - */ - public function testgetSysInfo() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getSysInfo', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::listPoFiles - * @todo Implement testlistPoFiles(). - */ - public function testlistPoFiles() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'listPoFiles', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::verifyChecksum - * @todo Implement testverifyChecksum(). - */ - public function testverifyChecksum() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'verifyChecksum', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::verifyFileForUpgrade - * @todo Implement testverifyFileForUpgrade(). - */ - public function testverifyFileForUpgrade() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'verifyFileForUpgrade', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getUpgradedFilesList - * @todo Implement testgetUpgradedFilesList(). - */ - public function testgetUpgradedFilesList() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getUpgradedFilesList', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::verifyForBootstrapUpgrade - * @todo Implement testverifyForBootstrapUpgrade(). - */ - public function testverifyForBootstrapUpgrade() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'verifyForBootstrapUpgrade', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::upgrade - * @todo Implement testupgrade(). - */ - public function testupgrade() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'upgrade', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::cleanupUpgradeDirectory - * @todo Implement testcleanupUpgradeDirectory(). - */ - public function testcleanupUpgradeDirectory() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'cleanupUpgradeDirectory', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::rm_dir - * @todo Implement testrm_dir(). - */ - public function testrm_dir() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'rm_dir', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::pm_copy - * @todo Implement testpm_copy(). - */ - public function testpm_copy() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'pm_copy', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getDatabaseCredentials - * @todo Implement testgetDatabaseCredentials(). - */ - public function testgetDatabaseCredentials() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getDatabaseCredentials', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getSystemSchema - * @todo Implement testgetSystemSchema(). - */ - public function testgetSystemSchema() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getSystemSchema', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getPluginSchema - * @todo Implement testgetPluginSchema(). - */ - public function testgetPluginSchema() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getPluginSchema', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getSchema - * @todo Implement testgetSchema(). - */ - public function testgetSchema() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getSchema', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::compareSchema - * @todo Implement testcompareSchema(). - */ - public function testcompareSchema() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'compareSchema', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getEmailConfiguration - * @todo Implement testgetEmailConfiguration(). - */ - public function testgetEmailConfiguration() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getEmailConfiguration', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getSkingList - * @todo Implement testgetSkingList(). - */ - public function testgetSkingList() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getSkingList', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getAllTimeZones - * @todo Implement testgetAllTimeZones(). - */ - public function testgetAllTimeZones() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getAllTimeZones', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::getSystemConfiguration - * @todo Implement testgetSystemConfiguration(). - */ - public function testgetSystemConfiguration() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'getSystemConfiguration', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers System::updateIndexFile - * @todo Implement testupdateIndexFile(). - */ - public function testupdateIndexFile() - { - if (class_exists('System')) { - $methods = get_class_methods( 'System'); - $this->assertTrue( in_array( 'updateIndexFile', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/workflow/engine/classes/classTasksTest.php b/tests/automated/workflow/engine/classes/classTasksTest.php index 1bddc213f..88e3efd9d 100644 --- a/tests/automated/workflow/engine/classes/classTasksTest.php +++ b/tests/automated/workflow/engine/classes/classTasksTest.php @@ -1,327 +1,568 @@ -object = new Tasks(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 26); + } - class classTasksTest extends PHPUnit_Framework_TestCase - { /** * @covers Tasks::getGroupsOfTask * @todo Implement testgetGroupsOfTask(). */ - public function testgetGroupsOfTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getGroupsOfTask', $methods ), 'seems like this function is outside this class' ); - } + public function testgetGroupsOfTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getGroupsOfTask', $methods ), 'exists method getGroupsOfTask' ); + $r = new ReflectionMethod('Tasks', 'getGroupsOfTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getAllTasks * @todo Implement testgetAllTasks(). */ - public function testgetAllTasks() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getAllTasks', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllTasks() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllTasks', $methods ), 'exists method getAllTasks' ); + $r = new ReflectionMethod('Tasks', 'getAllTasks'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::createTaskRows * @todo Implement testcreateTaskRows(). */ - public function testcreateTaskRows() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'createTaskRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTaskRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTaskRows', $methods ), 'exists method createTaskRows' ); + $r = new ReflectionMethod('Tasks', 'createTaskRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTask'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::updateTaskRows * @todo Implement testupdateTaskRows(). */ - public function testupdateTaskRows() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'updateTaskRows', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateTaskRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateTaskRows', $methods ), 'exists method updateTaskRows' ); + $r = new ReflectionMethod('Tasks', 'updateTaskRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aTask'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getAllRoutes * @todo Implement testgetAllRoutes(). */ - public function testgetAllRoutes() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getAllRoutes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllRoutes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllRoutes', $methods ), 'exists method getAllRoutes' ); + $r = new ReflectionMethod('Tasks', 'getAllRoutes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::createRouteRows * @todo Implement testcreateRouteRows(). */ - public function testcreateRouteRows() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'createRouteRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateRouteRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createRouteRows', $methods ), 'exists method createRouteRows' ); + $r = new ReflectionMethod('Tasks', 'createRouteRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aRoutes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::updateRouteRows * @todo Implement testupdateRouteRows(). */ - public function testupdateRouteRows() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'updateRouteRows', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateRouteRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateRouteRows', $methods ), 'exists method updateRouteRows' ); + $r = new ReflectionMethod('Tasks', 'updateRouteRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aRoutes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getUsersOfTask * @todo Implement testgetUsersOfTask(). */ - public function testgetUsersOfTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getUsersOfTask', $methods ), 'seems like this function is outside this class' ); - } + public function testgetUsersOfTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getUsersOfTask', $methods ), 'exists method getUsersOfTask' ); + $r = new ReflectionMethod('Tasks', 'getUsersOfTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::deleteTask * @todo Implement testdeleteTask(). */ - public function testdeleteTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'deleteTask', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteTask', $methods ), 'exists method deleteTask' ); + $r = new ReflectionMethod('Tasks', 'deleteTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::deleteAllRoutesOfTask * @todo Implement testdeleteAllRoutesOfTask(). */ - public function testdeleteAllRoutesOfTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'deleteAllRoutesOfTask', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteAllRoutesOfTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteAllRoutesOfTask', $methods ), 'exists method deleteAllRoutesOfTask' ); + $r = new ReflectionMethod('Tasks', 'deleteAllRoutesOfTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'bAll'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getAllGateways * @todo Implement testgetAllGateways(). */ - public function testgetAllGateways() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getAllGateways', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllGateways() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllGateways', $methods ), 'exists method getAllGateways' ); + $r = new ReflectionMethod('Tasks', 'getAllGateways'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::createGatewayRows * @todo Implement testcreateGatewayRows(). */ - public function testcreateGatewayRows() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'createGatewayRows', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateGatewayRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createGatewayRows', $methods ), 'exists method createGatewayRows' ); + $r = new ReflectionMethod('Tasks', 'createGatewayRows'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aGateway'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::deleteAllGatewayOfTask * @todo Implement testdeleteAllGatewayOfTask(). */ - public function testdeleteAllGatewayOfTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'deleteAllGatewayOfTask', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteAllGatewayOfTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteAllGatewayOfTask', $methods ), 'exists method deleteAllGatewayOfTask' ); + $r = new ReflectionMethod('Tasks', 'deleteAllGatewayOfTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'bAll'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::assignUser * @todo Implement testassignUser(). */ - public function testassignUser() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'assignUser', $methods ), 'seems like this function is outside this class' ); - } + public function testassignUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignUser', $methods ), 'exists method assignUser' ); + $r = new ReflectionMethod('Tasks', 'assignUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sUserUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'iType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::assignGroup * @todo Implement testassignGroup(). */ - public function testassignGroup() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'assignGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testassignGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignGroup', $methods ), 'exists method assignGroup' ); + $r = new ReflectionMethod('Tasks', 'assignGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sGroupUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'iType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::ofToAssignUserOfAllTasks * @todo Implement testofToAssignUserOfAllTasks(). */ - public function testofToAssignUserOfAllTasks() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'ofToAssignUserOfAllTasks', $methods ), 'seems like this function is outside this class' ); - } + public function testofToAssignUserOfAllTasks() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ofToAssignUserOfAllTasks', $methods ), 'exists method ofToAssignUserOfAllTasks' ); + $r = new ReflectionMethod('Tasks', 'ofToAssignUserOfAllTasks'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::ofToAssignUser * @todo Implement testofToAssignUser(). */ - public function testofToAssignUser() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'ofToAssignUser', $methods ), 'seems like this function is outside this class' ); - } + public function testofToAssignUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ofToAssignUser', $methods ), 'exists method ofToAssignUser' ); + $r = new ReflectionMethod('Tasks', 'ofToAssignUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sUserUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'iType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::ofToAssignGroup * @todo Implement testofToAssignGroup(). */ - public function testofToAssignGroup() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'ofToAssignGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testofToAssignGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ofToAssignGroup', $methods ), 'exists method ofToAssignGroup' ); + $r = new ReflectionMethod('Tasks', 'ofToAssignGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sGroupUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'iType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getStepsOfTask * @todo Implement testgetStepsOfTask(). */ - public function testgetStepsOfTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getStepsOfTask', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStepsOfTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStepsOfTask', $methods ), 'exists method getStepsOfTask' ); + $r = new ReflectionMethod('Tasks', 'getStepsOfTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::existsBuildingElements * @todo Implement testexistsBuildingElements(). */ - public function testexistsBuildingElements() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'existsBuildingElements', $methods ), 'seems like this function is outside this class' ); - } + public function testexistsBuildingElements() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('existsBuildingElements', $methods ), 'exists method existsBuildingElements' ); + $r = new ReflectionMethod('Tasks', 'existsBuildingElements'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getStartingTaskForUser * @todo Implement testgetStartingTaskForUser(). */ - public function testgetStartingTaskForUser() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getStartingTaskForUser', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStartingTaskForUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStartingTaskForUser', $methods ), 'exists method getStartingTaskForUser' ); + $r = new ReflectionMethod('Tasks', 'getStartingTaskForUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUsrUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::assignUsertoTask * @todo Implement testassignUsertoTask(). */ - public function testassignUsertoTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'assignUsertoTask', $methods ), 'seems like this function is outside this class' ); - } + public function testassignUsertoTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignUsertoTask', $methods ), 'exists method assignUsertoTask' ); + $r = new ReflectionMethod('Tasks', 'assignUsertoTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::verifyUsertoTask * @todo Implement testverifyUsertoTask(). */ - public function testverifyUsertoTask() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'verifyUsertoTask', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyUsertoTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyUsertoTask', $methods ), 'exists method verifyUsertoTask' ); + $r = new ReflectionMethod('Tasks', 'verifyUsertoTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUsrUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getTasksThatUserIsAssigned * @todo Implement testgetTasksThatUserIsAssigned(). */ - public function testgetTasksThatUserIsAssigned() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getTasksThatUserIsAssigned', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTasksThatUserIsAssigned() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTasksThatUserIsAssigned', $methods ), 'exists method getTasksThatUserIsAssigned' ); + $r = new ReflectionMethod('Tasks', 'getTasksThatUserIsAssigned'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sUserUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getRoute * @todo Implement testgetRoute(). */ - public function testgetRoute() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getRoute', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRoute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRoute', $methods ), 'exists method getRoute' ); + $r = new ReflectionMethod('Tasks', 'getRoute'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sTaskUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Tasks::getRouteByType * @todo Implement testgetRouteByType(). */ - public function testgetRouteByType() - { - if (class_exists('Tasks')) { - $methods = get_class_methods( 'Tasks'); - $this->assertTrue( in_array( 'getRouteByType', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRouteByType() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRouteByType', $methods ), 'exists method getRouteByType' ); + $r = new ReflectionMethod('Tasks', 'getRouteByType'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sRouteNextTaskUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sRouteType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classToolBarTest.php b/tests/automated/workflow/engine/classes/classToolBarTest.php index 644148cbe..0486db11b 100644 --- a/tests/automated/workflow/engine/classes/classToolBarTest.php +++ b/tests/automated/workflow/engine/classes/classToolBarTest.php @@ -1,15 +1,49 @@ -object = new ToolBar(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 13); + } - class classToolBarTest extends PHPUnit_Framework_TestCase - { } diff --git a/tests/automated/workflow/engine/classes/classXMLConnectionTest.php b/tests/automated/workflow/engine/classes/classXMLConnectionTest.php index def26be4b..b7a3bef6f 100644 --- a/tests/automated/workflow/engine/classes/classXMLConnectionTest.php +++ b/tests/automated/workflow/engine/classes/classXMLConnectionTest.php @@ -1,147 +1,245 @@ -object = new XMLConnection(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 11); + } - class classXMLConnectionTest extends PHPUnit_Framework_TestCase - { /** * @covers XMLConnection::XMLConnection * @todo Implement testXMLConnection(). */ - public function testXMLConnection() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'XMLConnection', $methods ), 'seems like this function is outside this class' ); - } + public function testXMLConnection() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XMLConnection', $methods ), 'exists method XMLConnection' ); + $r = new ReflectionMethod('XMLConnection', 'XMLConnection'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::query * @todo Implement testquery(). */ - public function testquery() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'query', $methods ), 'seems like this function is outside this class' ); - } + public function testquery() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('query', $methods ), 'exists method query' ); + $r = new ReflectionMethod('XMLConnection', 'query'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sql'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::sqlLike * @todo Implement testsqlLike(). */ - public function testsqlLike() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'sqlLike', $methods ), 'seems like this function is outside this class' ); - } + public function testsqlLike() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sqlLike', $methods ), 'exists method sqlLike' ); + $r = new ReflectionMethod('XMLConnection', 'sqlLike'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'a'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'b'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::expandFields * @todo Implement testexpandFields(). */ - public function testexpandFields() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'expandFields', $methods ), 'seems like this function is outside this class' ); - } + public function testexpandFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('expandFields', $methods ), 'exists method expandFields' ); + $r = new ReflectionMethod('XMLConnection', 'expandFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'resRow'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fieldsList'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::fetchNode * @todo Implement testfetchNode(). */ - public function testfetchNode() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'fetchNode', $methods ), 'seems like this function is outside this class' ); - } + public function testfetchNode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('fetchNode', $methods ), 'exists method fetchNode' ); + $r = new ReflectionMethod('XMLConnection', 'fetchNode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::fetchChildren * @todo Implement testfetchChildren(). */ - public function testfetchChildren() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'fetchChildren', $methods ), 'seems like this function is outside this class' ); - } + public function testfetchChildren() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('fetchChildren', $methods ), 'exists method fetchChildren' ); + $r = new ReflectionMethod('XMLConnection', 'fetchChildren'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::disconnect * @todo Implement testdisconnect(). */ - public function testdisconnect() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'disconnect', $methods ), 'seems like this function is outside this class' ); - } + public function testdisconnect() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('disconnect', $methods ), 'exists method disconnect' ); + $r = new ReflectionMethod('XMLConnection', 'disconnect'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::sqlWhereLike * @todo Implement testsqlWhereLike(). */ - public function testsqlWhereLike() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'sqlWhereLike', $methods ), 'seems like this function is outside this class' ); - } + public function testsqlWhereLike() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sqlWhereLike', $methods ), 'exists method sqlWhereLike' ); + $r = new ReflectionMethod('XMLConnection', 'sqlWhereLike'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'match'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::sqlString * @todo Implement testsqlString(). */ - public function testsqlString() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'sqlString', $methods ), 'seems like this function is outside this class' ); - } + public function testsqlString() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sqlString', $methods ), 'exists method sqlString' ); + $r = new ReflectionMethod('XMLConnection', 'sqlString'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'match'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::insertRow * @todo Implement testinsertRow(). */ - public function testinsertRow() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'insertRow', $methods ), 'seems like this function is outside this class' ); - } + public function testinsertRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('insertRow', $methods ), 'exists method insertRow' ); + $r = new ReflectionMethod('XMLConnection', 'insertRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'values'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLConnection::updateRow * @todo Implement testupdateRow(). */ - public function testupdateRow() - { - if (class_exists('XMLConnection')) { - $methods = get_class_methods( 'XMLConnection'); - $this->assertTrue( in_array( 'updateRow', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateRow', $methods ), 'exists method updateRow' ); + $r = new ReflectionMethod('XMLConnection', 'updateRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'node'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'values'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXMLDBTest.php b/tests/automated/workflow/engine/classes/classXMLDBTest.php index d0122142c..3e4bb2841 100644 --- a/tests/automated/workflow/engine/classes/classXMLDBTest.php +++ b/tests/automated/workflow/engine/classes/classXMLDBTest.php @@ -1,39 +1,87 @@ -object = new XMLDB(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 2); + } - class classXMLDBTest extends PHPUnit_Framework_TestCase - { /** * @covers XMLDB::connect * @todo Implement testconnect(). */ - public function testconnect() - { - if (class_exists('XMLDB')) { - $methods = get_class_methods( 'XMLDB'); - $this->assertTrue( in_array( 'connect', $methods ), 'seems like this function is outside this class' ); - } + public function testconnect() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('connect', $methods ), 'exists method connect' ); + $r = new ReflectionMethod('XMLDB', 'connect'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dsn'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'options'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLDB::isError * @todo Implement testisError(). */ - public function testisError() - { - if (class_exists('XMLDB')) { - $methods = get_class_methods( 'XMLDB'); - $this->assertTrue( in_array( 'isError', $methods ), 'seems like this function is outside this class' ); - } + public function testisError() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('isError', $methods ), 'exists method isError' ); + $r = new ReflectionMethod('XMLDB', 'isError'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'result'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXMLResultTest.php b/tests/automated/workflow/engine/classes/classXMLResultTest.php index e7a7b52a4..7174758dc 100644 --- a/tests/automated/workflow/engine/classes/classXMLResultTest.php +++ b/tests/automated/workflow/engine/classes/classXMLResultTest.php @@ -1,63 +1,98 @@ -object = new XMLResult(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 3); + } - class classXMLResultTest extends PHPUnit_Framework_TestCase - { /** * @covers XMLResult::XMLResult * @todo Implement testXMLResult(). */ - public function testXMLResult() - { - if (class_exists('XMLResult')) { - $methods = get_class_methods( 'XMLResult'); - $this->assertTrue( in_array( 'XMLResult', $methods ), 'seems like this function is outside this class' ); - } + public function testXMLResult() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XMLResult', $methods ), 'exists method XMLResult' ); + $r = new ReflectionMethod('XMLResult', 'XMLResult'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'result'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLResult::numRows * @todo Implement testnumRows(). */ - public function testnumRows() - { - if (class_exists('XMLResult')) { - $methods = get_class_methods( 'XMLResult'); - $this->assertTrue( in_array( 'numRows', $methods ), 'seems like this function is outside this class' ); - } + public function testnumRows() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('numRows', $methods ), 'exists method numRows' ); + $r = new ReflectionMethod('XMLResult', 'numRows'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XMLResult::fetchRow * @todo Implement testfetchRow(). */ - public function testfetchRow() - { - if (class_exists('XMLResult')) { - $methods = get_class_methods( 'XMLResult'); - $this->assertTrue( in_array( 'fetchRow', $methods ), 'seems like this function is outside this class' ); - } - } + public function testfetchRow() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('fetchRow', $methods ), 'exists method fetchRow' ); + $r = new ReflectionMethod('XMLResult', 'fetchRow'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'const'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers XMLResult::getNames - * @todo Implement testgetNames(). - */ - public function testgetNames() - { - if (class_exists('XMLResult')) { - $methods = get_class_methods( 'XMLResult'); - $this->assertTrue( in_array( 'getNames', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_CheckBoxTableTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_CheckBoxTableTest.php index 3ece41f28..a3b82b8b2 100644 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_CheckBoxTableTest.php +++ b/tests/automated/workflow/engine/classes/classXmlForm_Field_CheckBoxTableTest.php @@ -1,27 +1,71 @@ -object = new XmlForm_Field_CheckBoxTable(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_CheckBoxTableTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_CheckBoxTable::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_CheckBoxTable')) { - $methods = get_class_methods( 'XmlForm_Field_CheckBoxTable'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_CheckBoxTable', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_ImageTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_ImageTest.php deleted file mode 100644 index 7851dac37..000000000 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_ImageTest.php +++ /dev/null @@ -1,27 +0,0 @@ -assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_TextPMTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_TextPMTest.php index 8fb03190a..9627dcc15 100644 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_TextPMTest.php +++ b/tests/automated/workflow/engine/classes/classXmlForm_Field_TextPMTest.php @@ -1,51 +1,108 @@ -object = new XmlForm_Field_TextPM(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_TextPMTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_TextPM::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_TextPM')) { - $methods = get_class_methods( 'XmlForm_Field_TextPM'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_TextPM', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_TextPM::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_TextPM')) { - $methods = get_class_methods( 'XmlForm_Field_TextPM'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_TextPM', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_TextPM::attachEvents * @todo Implement testattachEvents(). */ - public function testattachEvents() - { - if (class_exists('XmlForm_Field_TextPM')) { - $methods = get_class_methods( 'XmlForm_Field_TextPM'); - $this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testattachEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' ); + $r = new ReflectionMethod('XmlForm_Field_TextPM', 'attachEvents'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'element'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_TextareaPMTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_TextareaPMTest.php index 711c0a3f9..1ab3f6570 100644 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_TextareaPMTest.php +++ b/tests/automated/workflow/engine/classes/classXmlForm_Field_TextareaPMTest.php @@ -1,39 +1,89 @@ -object = new XmlForm_Field_TextareaPM(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_TextareaPMTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_TextareaPM::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_TextareaPM')) { - $methods = get_class_methods( 'XmlForm_Field_TextareaPM'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_TextareaPM', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_TextareaPM::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_TextareaPM')) { - $methods = get_class_methods( 'XmlForm_Field_TextareaPM'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_TextareaPM', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_ToolBarTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_ToolBarTest.php index f7b79d52e..3112eb588 100644 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_ToolBarTest.php +++ b/tests/automated/workflow/engine/classes/classXmlForm_Field_ToolBarTest.php @@ -1,39 +1,92 @@ -object = new XmlForm_Field_ToolBar(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 25); + } - class classXmlForm_Field_ToolBarTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_ToolBar::XmlForm_Field_ToolBar * @todo Implement testXmlForm_Field_ToolBar(). */ - public function testXmlForm_Field_ToolBar() - { - if (class_exists('XmlForm_Field_ToolBar')) { - $methods = get_class_methods( 'XmlForm_Field_ToolBar'); - $this->assertTrue( in_array( 'XmlForm_Field_ToolBar', $methods ), 'seems like this function is outside this class' ); - } + public function testXmlForm_Field_ToolBar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('XmlForm_Field_ToolBar', $methods ), 'exists method XmlForm_Field_ToolBar' ); + $r = new ReflectionMethod('XmlForm_Field_ToolBar', 'XmlForm_Field_ToolBar'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'xmlNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'lang'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'home'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'owner'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_ToolBar::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_ToolBar')) { - $methods = get_class_methods( 'XmlForm_Field_ToolBar'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_ToolBar', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_hoursTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_hoursTest.php index 1eaea2f8e..7787c4a6b 100644 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_hoursTest.php +++ b/tests/automated/workflow/engine/classes/classXmlForm_Field_hoursTest.php @@ -1,75 +1,108 @@ -object = new XmlForm_Field_hours(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_hoursTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_hours::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_hours')) { - $methods = get_class_methods( 'XmlForm_Field_hours'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_hours', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_hours::renderGrid * @todo Implement testrenderGrid(). */ - public function testrenderGrid() - { - if (class_exists('XmlForm_Field_hours')) { - $methods = get_class_methods( 'XmlForm_Field_hours'); - $this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGrid() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' ); + $r = new ReflectionMethod('XmlForm_Field_hours', 'renderGrid'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'values'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers XmlForm_Field_hours::attachEvents * @todo Implement testattachEvents(). */ - public function testattachEvents() - { - if (class_exists('XmlForm_Field_hours')) { - $methods = get_class_methods( 'XmlForm_Field_hours'); - $this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); - } - } + public function testattachEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' ); + $r = new ReflectionMethod('XmlForm_Field_hours', 'attachEvents'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'element'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers XmlForm_Field_hours::getDynaformsVars - * @todo Implement testgetDynaformsVars(). - */ - public function testgetDynaformsVars() - { - if (class_exists('XmlForm_Field_hours')) { - $methods = get_class_methods( 'XmlForm_Field_hours'); - $this->assertTrue( in_array( 'getDynaformsVars', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers XmlForm_Field_hours::getGridsVars - * @todo Implement testgetGridsVars(). - */ - public function testgetGridsVars() - { - if (class_exists('XmlForm_Field_hours')) { - $methods = get_class_methods( 'XmlForm_Field_hours'); - $this->assertTrue( in_array( 'getGridsVars', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_popupOptionTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_popupOptionTest.php index f0d3c544d..a49532657 100644 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_popupOptionTest.php +++ b/tests/automated/workflow/engine/classes/classXmlForm_Field_popupOptionTest.php @@ -1,27 +1,63 @@ -object = new XmlForm_Field_popupOption(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_popupOptionTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_popupOption::getEvents * @todo Implement testgetEvents(). */ - public function testgetEvents() - { - if (class_exists('XmlForm_Field_popupOption')) { - $methods = get_class_methods( 'XmlForm_Field_popupOption'); - $this->assertTrue( in_array( 'getEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testgetEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getEvents', $methods ), 'exists method getEvents' ); + $r = new ReflectionMethod('XmlForm_Field_popupOption', 'getEvents'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXmlForm_Field_toolButtonTest.php b/tests/automated/workflow/engine/classes/classXmlForm_Field_toolButtonTest.php index 801973517..2b5d25a07 100644 --- a/tests/automated/workflow/engine/classes/classXmlForm_Field_toolButtonTest.php +++ b/tests/automated/workflow/engine/classes/classXmlForm_Field_toolButtonTest.php @@ -1,27 +1,66 @@ -object = new XmlForm_Field_toolButton(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 24); + } - class classXmlForm_Field_toolButtonTest extends PHPUnit_Framework_TestCase - { /** * @covers XmlForm_Field_toolButton::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('XmlForm_Field_toolButton')) { - $methods = get_class_methods( 'XmlForm_Field_toolButton'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('XmlForm_Field_toolButton', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'value'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classXpdlTest.php b/tests/automated/workflow/engine/classes/classXpdlTest.php index 3b786294a..98c4934a8 100644 --- a/tests/automated/workflow/engine/classes/classXpdlTest.php +++ b/tests/automated/workflow/engine/classes/classXpdlTest.php @@ -1,543 +1,948 @@ -object = new Xpdl(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 185); + } - class classXpdlTest extends PHPUnit_Framework_TestCase - { /** * @covers Xpdl::createProcessFromDataXpdl * @todo Implement testcreateProcessFromDataXpdl(). */ - public function testcreateProcessFromDataXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createProcessFromDataXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcessFromDataXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcessFromDataXpdl', $methods ), 'exists method createProcessFromDataXpdl' ); + $r = new ReflectionMethod('Xpdl', 'createProcessFromDataXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::updateProcessFromDataXpdl * @todo Implement testupdateProcessFromDataXpdl(). */ - public function testupdateProcessFromDataXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'updateProcessFromDataXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateProcessFromDataXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateProcessFromDataXpdl', $methods ), 'exists method updateProcessFromDataXpdl' ); + $r = new ReflectionMethod('Xpdl', 'updateProcessFromDataXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createProcessFromDataPmxml * @todo Implement testcreateProcessFromDataPmxml(). */ - public function testcreateProcessFromDataPmxml() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createProcessFromDataPmxml', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcessFromDataPmxml() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcessFromDataPmxml', $methods ), 'exists method createProcessFromDataPmxml' ); + $r = new ReflectionMethod('Xpdl', 'createProcessFromDataPmxml'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createSubProcessFromDataXpdl * @todo Implement testcreateSubProcessFromDataXpdl(). */ - public function testcreateSubProcessFromDataXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createSubProcessFromDataXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSubProcessFromDataXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSubProcessFromDataXpdl', $methods ), 'exists method createSubProcessFromDataXpdl' ); + $r = new ReflectionMethod('Xpdl', 'createSubProcessFromDataXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::verifyTasks * @todo Implement testverifyTasks(). */ - public function testverifyTasks() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'verifyTasks', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyTasks() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyTasks', $methods ), 'exists method verifyTasks' ); + $r = new ReflectionMethod('Xpdl', 'verifyTasks'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fieldsTasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createRouteRowsXpdl * @todo Implement testcreateRouteRowsXpdl(). */ - public function testcreateRouteRowsXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createRouteRowsXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateRouteRowsXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createRouteRowsXpdl', $methods ), 'exists method createRouteRowsXpdl' ); + $r = new ReflectionMethod('Xpdl', 'createRouteRowsXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'routes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'fieldsTasks'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createSubProcessRowsXpdl * @todo Implement testcreateSubProcessRowsXpdl(). */ - public function testcreateSubProcessRowsXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createSubProcessRowsXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSubProcessRowsXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSubProcessRowsXpdl', $methods ), 'exists method createSubProcessRowsXpdl' ); + $r = new ReflectionMethod('Xpdl', 'createSubProcessRowsXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'SubProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'tasks'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::findIdTask * @todo Implement testfindIdTask(). */ - public function testfindIdTask() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'findIdTask', $methods ), 'seems like this function is outside this class' ); - } + public function testfindIdTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('findIdTask', $methods ), 'exists method findIdTask' ); + $r = new ReflectionMethod('Xpdl', 'findIdTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'idTask'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'routes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::xmdlProcess * @todo Implement testxmdlProcess(). */ - public function testxmdlProcess() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'xmdlProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testxmdlProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('xmdlProcess', $methods ), 'exists method xmdlProcess' ); + $r = new ReflectionMethod('Xpdl', 'xmdlProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createPool * @todo Implement testcreatePool(). */ - public function testcreatePool() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createPool', $methods ), 'seems like this function is outside this class' ); - } + public function testcreatePool() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createPool', $methods ), 'exists method createPool' ); + $r = new ReflectionMethod('Xpdl', 'createPool'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'process'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'coordinateMaximumX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'coordinateMaximumY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createArtifacts * @todo Implement testcreateArtifacts(). */ - public function testcreateArtifacts() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createArtifacts', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateArtifacts() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createArtifacts', $methods ), 'exists method createArtifacts' ); + $r = new ReflectionMethod('Xpdl', 'createArtifacts'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'lanes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'id'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createSubProcessesXpdl * @todo Implement testcreateSubProcessesXpdl(). */ - public function testcreateSubProcessesXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createSubProcessesXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSubProcessesXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSubProcessesXpdl', $methods ), 'exists method createSubProcessesXpdl' ); + $r = new ReflectionMethod('Xpdl', 'createSubProcessesXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'subProcess'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createActivitiesXpdl * @todo Implement testcreateActivitiesXpdl(). */ - public function testcreateActivitiesXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createActivitiesXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateActivitiesXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createActivitiesXpdl', $methods ), 'exists method createActivitiesXpdl' ); + $r = new ReflectionMethod('Xpdl', 'createActivitiesXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tasks'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'events'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'scheduler'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createTransitionsXpdl * @todo Implement testcreateTransitionsXpdl(). */ - public function testcreateTransitionsXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createTransitionsXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTransitionsXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTransitionsXpdl', $methods ), 'exists method createTransitionsXpdl' ); + $r = new ReflectionMethod('Xpdl', 'createTransitionsXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'routes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'taskHidden'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::getProcessDataXpdl * @todo Implement testgetProcessDataXpdl(). */ - public function testgetProcessDataXpdl() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'getProcessDataXpdl', $methods ), 'seems like this function is outside this class' ); - } + public function testgetProcessDataXpdl() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getProcessDataXpdl', $methods ), 'exists method getProcessDataXpdl' ); + $r = new ReflectionMethod('Xpdl', 'getProcessDataXpdl'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'pmFilename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::sortArray * @todo Implement testsortArray(). */ - public function testsortArray() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'sortArray', $methods ), 'seems like this function is outside this class' ); - } + public function testsortArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sortArray', $methods ), 'exists method sortArray' ); + $r = new ReflectionMethod('Xpdl', 'sortArray'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::verifyRoutes * @todo Implement testverifyRoutes(). */ - public function testverifyRoutes() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'verifyRoutes', $methods ), 'seems like this function is outside this class' ); - } + public function testverifyRoutes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('verifyRoutes', $methods ), 'exists method verifyRoutes' ); + $r = new ReflectionMethod('Xpdl', 'verifyRoutes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'routeTransitions'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'endArray'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'taskHidden'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createProcess * @todo Implement testcreateProcess(). */ - public function testcreateProcess() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcess', $methods ), 'exists method createProcess' ); + $r = new ReflectionMethod('Xpdl', 'createProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createSubProcesses * @todo Implement testcreateSubProcesses(). */ - public function testcreateSubProcesses() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createSubProcesses', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSubProcesses() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSubProcesses', $methods ), 'exists method createSubProcesses' ); + $r = new ReflectionMethod('Xpdl', 'createSubProcesses'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contentNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'arrayLanes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createTask * @todo Implement testcreateTask(). */ - public function testcreateTask() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createTask', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTask', $methods ), 'exists method createTask' ); + $r = new ReflectionMethod('Xpdl', 'createTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createDataTask * @todo Implement testcreateDataTask(). */ - public function testcreateDataTask() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createDataTask', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateDataTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createDataTask', $methods ), 'exists method createDataTask' ); + $r = new ReflectionMethod('Xpdl', 'createDataTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createRoute * @todo Implement testcreateRoute(). */ - public function testcreateRoute() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createRoute', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateRoute() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createRoute', $methods ), 'exists method createRoute' ); + $r = new ReflectionMethod('Xpdl', 'createRoute'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createSubProcess * @todo Implement testcreateSubProcess(). */ - public function testcreateSubProcess() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createSubProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSubProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSubProcess', $methods ), 'exists method createSubProcess' ); + $r = new ReflectionMethod('Xpdl', 'createSubProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createGateways * @todo Implement testcreateGateways(). */ - public function testcreateGateways() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createGateways', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateGateways() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createGateways', $methods ), 'exists method createGateways' ); + $r = new ReflectionMethod('Xpdl', 'createGateways'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'routeTransitions'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'endArray'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'dataRoutes'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'numberRoutes'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'idProcess'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'taskHidden'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createLanesPM * @todo Implement testcreateLanesPM(). */ - public function testcreateLanesPM() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createLanesPM', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateLanesPM() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createLanesPM', $methods ), 'exists method createLanesPM' ); + $r = new ReflectionMethod('Xpdl', 'createLanesPM'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'idProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createLanes * @todo Implement testcreateLanes(). */ - public function testcreateLanes() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createLanes', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateLanes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createLanes', $methods ), 'exists method createLanes' ); + $r = new ReflectionMethod('Xpdl', 'createLanes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'lanes'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createLanesNewPM * @todo Implement testcreateLanesNewPM(). */ - public function testcreateLanesNewPM() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createLanesNewPM', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateLanesNewPM() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createLanesNewPM', $methods ), 'exists method createLanesNewPM' ); + $r = new ReflectionMethod('Xpdl', 'createLanesNewPM'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createActivities * @todo Implement testcreateActivities(). */ - public function testcreateActivities() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createActivities', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateActivities() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createActivities', $methods ), 'exists method createActivities' ); + $r = new ReflectionMethod('Xpdl', 'createActivities'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contentNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'idProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'activitySet'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createEventMessages * @todo Implement testcreateEventMessages(). */ - public function testcreateEventMessages() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createEventMessages', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateEventMessages() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createEventMessages', $methods ), 'exists method createEventMessages' ); + $r = new ReflectionMethod('Xpdl', 'createEventMessages'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'idProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createScheduler * @todo Implement testcreateScheduler(). */ - public function testcreateScheduler() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createScheduler', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateScheduler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createScheduler', $methods ), 'exists method createScheduler' ); + $r = new ReflectionMethod('Xpdl', 'createScheduler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'idProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::calculateTimeScheduler * @todo Implement testcalculateTimeScheduler(). */ - public function testcalculateTimeScheduler() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'calculateTimeScheduler', $methods ), 'seems like this function is outside this class' ); - } + public function testcalculateTimeScheduler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calculateTimeScheduler', $methods ), 'exists method calculateTimeScheduler' ); + $r = new ReflectionMethod('Xpdl', 'calculateTimeScheduler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'time'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createArrayScheduler * @todo Implement testcreateArrayScheduler(). */ - public function testcreateArrayScheduler() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createArrayScheduler', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateArrayScheduler() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createArrayScheduler', $methods ), 'exists method createArrayScheduler' ); + $r = new ReflectionMethod('Xpdl', 'createArrayScheduler'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'idProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createTransitions * @todo Implement testcreateTransitions(). */ - public function testcreateTransitions() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createTransitions', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTransitions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTransitions', $methods ), 'exists method createTransitions' ); + $r = new ReflectionMethod('Xpdl', 'createTransitions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contentNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'dataTasks'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'arrayRoutes'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'endArray'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'startArray'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'idProcess'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->assertTrue( $params[6]->getName() == 'schedulerArray'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == false); + $this->assertTrue( $params[7]->getName() == 'messages'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createActivity * @todo Implement testcreateActivity(). */ - public function testcreateActivity() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createActivity', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateActivity() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createActivity', $methods ), 'exists method createActivity' ); + $r = new ReflectionMethod('Xpdl', 'createActivity'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contentNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createExtended * @todo Implement testcreateExtended(). */ - public function testcreateExtended() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createExtended', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateExtended() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createExtended', $methods ), 'exists method createExtended' ); + $r = new ReflectionMethod('Xpdl', 'createExtended'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contentNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::findCoordinates * @todo Implement testfindCoordinates(). */ - public function testfindCoordinates() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'findCoordinates', $methods ), 'seems like this function is outside this class' ); - } + public function testfindCoordinates() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('findCoordinates', $methods ), 'exists method findCoordinates' ); + $r = new ReflectionMethod('Xpdl', 'findCoordinates'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'contentNode'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::findCoordinatesTransition * @todo Implement testfindCoordinatesTransition(). */ - public function testfindCoordinatesTransition() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'findCoordinatesTransition', $methods ), 'seems like this function is outside this class' ); - } + public function testfindCoordinatesTransition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('findCoordinatesTransition', $methods ), 'exists method findCoordinatesTransition' ); + $r = new ReflectionMethod('Xpdl', 'findCoordinatesTransition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'idRoute'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'aRoutes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createArrayRoutes * @todo Implement testcreateArrayRoutes(). */ - public function testcreateArrayRoutes() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createArrayRoutes', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateArrayRoutes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createArrayRoutes', $methods ), 'exists method createArrayRoutes' ); + $r = new ReflectionMethod('Xpdl', 'createArrayRoutes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dataTasks'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'arrayRoutes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'aEvents'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'aGateways'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'aEnd'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'idProcess'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::convertArrayEnd * @todo Implement testconvertArrayEnd(). */ - public function testconvertArrayEnd() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'convertArrayEnd', $methods ), 'seems like this function is outside this class' ); - } + public function testconvertArrayEnd() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('convertArrayEnd', $methods ), 'exists method convertArrayEnd' ); + $r = new ReflectionMethod('Xpdl', 'convertArrayEnd'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aEvents'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'idProcess'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createTransitionsPM * @todo Implement testcreateTransitionsPM(). */ - public function testcreateTransitionsPM() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createTransitionsPM', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateTransitionsPM() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createTransitionsPM', $methods ), 'exists method createTransitionsPM' ); + $r = new ReflectionMethod('Xpdl', 'createTransitionsPM'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tasks'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'routes'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'events'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'countEvents'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'arrayRoutes'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'countRoutes'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::super_unique * @todo Implement testsuper_unique(). */ - public function testsuper_unique() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'super_unique', $methods ), 'seems like this function is outside this class' ); - } + public function testsuper_unique() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('super_unique', $methods ), 'exists method super_unique' ); + $r = new ReflectionMethod('Xpdl', 'super_unique'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createProcessPM * @todo Implement testcreateProcessPM(). */ - public function testcreateProcessPM() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createProcessPM', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcessPM() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcessPM', $methods ), 'exists method createProcessPM' ); + $r = new ReflectionMethod('Xpdl', 'createProcessPM'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::createSubProcessesPM * @todo Implement testcreateSubProcessesPM(). */ - public function testcreateSubProcessesPM() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'createSubProcessesPM', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateSubProcessesPM() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createSubProcessesPM', $methods ), 'exists method createSubProcessesPM' ); + $r = new ReflectionMethod('Xpdl', 'createSubProcessesPM'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers Xpdl::saveWebEntry * @todo Implement testsaveWebEntry(). */ - public function testsaveWebEntry() - { - if (class_exists('Xpdl')) { - $methods = get_class_methods( 'Xpdl'); - $this->assertTrue( in_array( 'saveWebEntry', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveWebEntry() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveWebEntry', $methods ), 'exists method saveWebEntry' ); + $r = new ReflectionMethod('Xpdl', 'saveWebEntry'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'array'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classarchiveTest.php b/tests/automated/workflow/engine/classes/classarchiveTest.php index 37483d3bc..ed68ca5d9 100644 --- a/tests/automated/workflow/engine/classes/classarchiveTest.php +++ b/tests/automated/workflow/engine/classes/classarchiveTest.php @@ -1,159 +1,247 @@ -object = new archive(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 12); + } - class classarchiveTest extends PHPUnit_Framework_TestCase - { /** * @covers archive::archive * @todo Implement testarchive(). */ - public function testarchive() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'archive', $methods ), 'seems like this function is outside this class' ); - } + public function testarchive() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('archive', $methods ), 'exists method archive' ); + $r = new ReflectionMethod('archive', 'archive'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::set_options * @todo Implement testset_options(). */ - public function testset_options() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'set_options', $methods ), 'seems like this function is outside this class' ); - } + public function testset_options() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set_options', $methods ), 'exists method set_options' ); + $r = new ReflectionMethod('archive', 'set_options'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'options'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::create_archive * @todo Implement testcreate_archive(). */ - public function testcreate_archive() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'create_archive', $methods ), 'seems like this function is outside this class' ); - } + public function testcreate_archive() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('create_archive', $methods ), 'exists method create_archive' ); + $r = new ReflectionMethod('archive', 'create_archive'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::add_data * @todo Implement testadd_data(). */ - public function testadd_data() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'add_data', $methods ), 'seems like this function is outside this class' ); - } + public function testadd_data() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('add_data', $methods ), 'exists method add_data' ); + $r = new ReflectionMethod('archive', 'add_data'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'data'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::make_list * @todo Implement testmake_list(). */ - public function testmake_list() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'make_list', $methods ), 'seems like this function is outside this class' ); - } + public function testmake_list() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('make_list', $methods ), 'exists method make_list' ); + $r = new ReflectionMethod('archive', 'make_list'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::add_files * @todo Implement testadd_files(). */ - public function testadd_files() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'add_files', $methods ), 'seems like this function is outside this class' ); - } + public function testadd_files() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('add_files', $methods ), 'exists method add_files' ); + $r = new ReflectionMethod('archive', 'add_files'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'list'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::exclude_files * @todo Implement testexclude_files(). */ - public function testexclude_files() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'exclude_files', $methods ), 'seems like this function is outside this class' ); - } + public function testexclude_files() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('exclude_files', $methods ), 'exists method exclude_files' ); + $r = new ReflectionMethod('archive', 'exclude_files'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'list'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::store_files * @todo Implement teststore_files(). */ - public function teststore_files() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'store_files', $methods ), 'seems like this function is outside this class' ); - } + public function teststore_files() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('store_files', $methods ), 'exists method store_files' ); + $r = new ReflectionMethod('archive', 'store_files'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'list'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::list_files * @todo Implement testlist_files(). */ - public function testlist_files() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'list_files', $methods ), 'seems like this function is outside this class' ); - } + public function testlist_files() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('list_files', $methods ), 'exists method list_files' ); + $r = new ReflectionMethod('archive', 'list_files'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'list'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::parse_dir * @todo Implement testparse_dir(). */ - public function testparse_dir() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'parse_dir', $methods ), 'seems like this function is outside this class' ); - } + public function testparse_dir() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('parse_dir', $methods ), 'exists method parse_dir' ); + $r = new ReflectionMethod('archive', 'parse_dir'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dirname'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::sort_files * @todo Implement testsort_files(). */ - public function testsort_files() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'sort_files', $methods ), 'seems like this function is outside this class' ); - } + public function testsort_files() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sort_files', $methods ), 'exists method sort_files' ); + $r = new ReflectionMethod('archive', 'sort_files'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'a'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'b'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers archive::download_file * @todo Implement testdownload_file(). */ - public function testdownload_file() - { - if (class_exists('archive')) { - $methods = get_class_methods( 'archive'); - $this->assertTrue( in_array( 'download_file', $methods ), 'seems like this function is outside this class' ); - } + public function testdownload_file() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('download_file', $methods ), 'exists method download_file' ); + $r = new ReflectionMethod('archive', 'download_file'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classbzip_fileTest.php b/tests/automated/workflow/engine/classes/classbzip_fileTest.php index 43649da65..c62dceb6d 100644 --- a/tests/automated/workflow/engine/classes/classbzip_fileTest.php +++ b/tests/automated/workflow/engine/classes/classbzip_fileTest.php @@ -1,51 +1,94 @@ -object = new bzip_file(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 18); + } - class classbzip_fileTest extends PHPUnit_Framework_TestCase - { /** * @covers bzip_file::bzip_file * @todo Implement testbzip_file(). */ - public function testbzip_file() - { - if (class_exists('bzip_file')) { - $methods = get_class_methods( 'bzip_file'); - $this->assertTrue( in_array( 'bzip_file', $methods ), 'seems like this function is outside this class' ); - } + public function testbzip_file() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('bzip_file', $methods ), 'exists method bzip_file' ); + $r = new ReflectionMethod('bzip_file', 'bzip_file'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers bzip_file::create_bzip * @todo Implement testcreate_bzip(). */ - public function testcreate_bzip() - { - if (class_exists('bzip_file')) { - $methods = get_class_methods( 'bzip_file'); - $this->assertTrue( in_array( 'create_bzip', $methods ), 'seems like this function is outside this class' ); - } + public function testcreate_bzip() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('create_bzip', $methods ), 'exists method create_bzip' ); + $r = new ReflectionMethod('bzip_file', 'create_bzip'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers bzip_file::open_archive * @todo Implement testopen_archive(). */ - public function testopen_archive() - { - if (class_exists('bzip_file')) { - $methods = get_class_methods( 'bzip_file'); - $this->assertTrue( in_array( 'open_archive', $methods ), 'seems like this function is outside this class' ); - } + public function testopen_archive() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('open_archive', $methods ), 'exists method open_archive' ); + $r = new ReflectionMethod('bzip_file', 'open_archive'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classcalendarTest.php b/tests/automated/workflow/engine/classes/classcalendarTest.php index 2b72d6646..f4232c60d 100644 --- a/tests/automated/workflow/engine/classes/classcalendarTest.php +++ b/tests/automated/workflow/engine/classes/classcalendarTest.php @@ -1,63 +1,135 @@ -object = new calendar(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 56); + } - class classcalendarTest extends PHPUnit_Framework_TestCase - { /** * @covers calendar::calendar * @todo Implement testcalendar(). */ - public function testcalendar() - { - if (class_exists('calendar')) { - $methods = get_class_methods( 'calendar'); - $this->assertTrue( in_array( 'calendar', $methods ), 'seems like this function is outside this class' ); - } + public function testcalendar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calendar', $methods ), 'exists method calendar' ); + $r = new ReflectionMethod('calendar', 'calendar'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'proUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'tasUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers calendar::addCalendarLog * @todo Implement testaddCalendarLog(). */ - public function testaddCalendarLog() - { - if (class_exists('calendar')) { - $methods = get_class_methods( 'calendar'); - $this->assertTrue( in_array( 'addCalendarLog', $methods ), 'seems like this function is outside this class' ); - } + public function testaddCalendarLog() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addCalendarLog', $methods ), 'exists method addCalendarLog' ); + $r = new ReflectionMethod('calendar', 'addCalendarLog'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'msg'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers calendar::setupCalendar * @todo Implement testsetupCalendar(). */ - public function testsetupCalendar() - { - if (class_exists('calendar')) { - $methods = get_class_methods( 'calendar'); - $this->assertTrue( in_array( 'setupCalendar', $methods ), 'seems like this function is outside this class' ); - } + public function testsetupCalendar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setupCalendar', $methods ), 'exists method setupCalendar' ); + $r = new ReflectionMethod('calendar', 'setupCalendar'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'proUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'tasUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers calendar::getNextValidBusinessHoursRange * @todo Implement testgetNextValidBusinessHoursRange(). */ - public function testgetNextValidBusinessHoursRange() - { - if (class_exists('calendar')) { - $methods = get_class_methods( 'calendar'); - $this->assertTrue( in_array( 'getNextValidBusinessHoursRange', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNextValidBusinessHoursRange() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNextValidBusinessHoursRange', $methods ), 'exists method getNextValidBusinessHoursRange' ); + $r = new ReflectionMethod('calendar', 'getNextValidBusinessHoursRange'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'date'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'time'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classcaseSchedulerPluginTest.php b/tests/automated/workflow/engine/classes/classcaseSchedulerPluginTest.php index d4460ce20..59c32d026 100644 --- a/tests/automated/workflow/engine/classes/classcaseSchedulerPluginTest.php +++ b/tests/automated/workflow/engine/classes/classcaseSchedulerPluginTest.php @@ -1,27 +1,81 @@ -object = new caseSchedulerPlugin(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classcaseSchedulerPluginTest extends PHPUnit_Framework_TestCase - { /** * @covers caseSchedulerPlugin::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('caseSchedulerPlugin')) { - $methods = get_class_methods( 'caseSchedulerPlugin'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('caseSchedulerPlugin', '__construct'); + $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() == 'sActionId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sActionForm'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sActionSave'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sActionExecute'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'sActionGetFields'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classcssFileTest.php b/tests/automated/workflow/engine/classes/classcssFileTest.php index b9ee32553..8294e0dd9 100644 --- a/tests/automated/workflow/engine/classes/classcssFileTest.php +++ b/tests/automated/workflow/engine/classes/classcssFileTest.php @@ -1,27 +1,69 @@ -object = new cssFile(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classcssFileTest extends PHPUnit_Framework_TestCase - { /** * @covers cssFile::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('cssFile')) { - $methods = get_class_methods( 'cssFile'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('cssFile', '__construct'); + $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() == 'sCssFile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classdashboardPageTest.php b/tests/automated/workflow/engine/classes/classdashboardPageTest.php index 230ba2db7..de1572e05 100644 --- a/tests/automated/workflow/engine/classes/classdashboardPageTest.php +++ b/tests/automated/workflow/engine/classes/classdashboardPageTest.php @@ -1,27 +1,75 @@ -object = new dashboardPage(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classdashboardPageTest extends PHPUnit_Framework_TestCase - { /** * @covers dashboardPage::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('dashboardPage')) { - $methods = get_class_methods( 'dashboardPage'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('dashboardPage', '__construct'); + $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() == 'sPage'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sIcon'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classdashletOpenVSCompletedTest.php b/tests/automated/workflow/engine/classes/classdashletOpenVSCompletedTest.php index a8af9a944..a8f4eb308 100644 --- a/tests/automated/workflow/engine/classes/classdashletOpenVSCompletedTest.php +++ b/tests/automated/workflow/engine/classes/classdashletOpenVSCompletedTest.php @@ -1,63 +1,118 @@ -object = new dashletOpenVSCompleted(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 4); + } - class classdashletOpenVSCompletedTest extends PHPUnit_Framework_TestCase - { /** * @covers dashletOpenVSCompleted::getAdditionalFields * @todo Implement testgetAdditionalFields(). */ - public function testgetAdditionalFields() - { - if (class_exists('dashletOpenVSCompleted')) { - $methods = get_class_methods( 'dashletOpenVSCompleted'); - $this->assertTrue( in_array( 'getAdditionalFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAdditionalFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAdditionalFields', $methods ), 'exists method getAdditionalFields' ); + $r = new ReflectionMethod('dashletOpenVSCompleted', 'getAdditionalFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletOpenVSCompleted::getXTemplate * @todo Implement testgetXTemplate(). */ - public function testgetXTemplate() - { - if (class_exists('dashletOpenVSCompleted')) { - $methods = get_class_methods( 'dashletOpenVSCompleted'); - $this->assertTrue( in_array( 'getXTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetXTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXTemplate', $methods ), 'exists method getXTemplate' ); + $r = new ReflectionMethod('dashletOpenVSCompleted', 'getXTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletOpenVSCompleted::setup * @todo Implement testsetup(). */ - public function testsetup() - { - if (class_exists('dashletOpenVSCompleted')) { - $methods = get_class_methods( 'dashletOpenVSCompleted'); - $this->assertTrue( in_array( 'setup', $methods ), 'seems like this function is outside this class' ); - } + public function testsetup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setup', $methods ), 'exists method setup' ); + $r = new ReflectionMethod('dashletOpenVSCompleted', 'setup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'config'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletOpenVSCompleted::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('dashletOpenVSCompleted')) { - $methods = get_class_methods( 'dashletOpenVSCompleted'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('dashletOpenVSCompleted', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'width'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '300'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classdashletProcessMakerCommunityTest.php b/tests/automated/workflow/engine/classes/classdashletProcessMakerCommunityTest.php index eaf8217be..2179ef053 100644 --- a/tests/automated/workflow/engine/classes/classdashletProcessMakerCommunityTest.php +++ b/tests/automated/workflow/engine/classes/classdashletProcessMakerCommunityTest.php @@ -1,63 +1,118 @@ -object = new dashletProcessMakerCommunity(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 4); + } - class classdashletProcessMakerCommunityTest extends PHPUnit_Framework_TestCase - { /** * @covers dashletProcessMakerCommunity::getAdditionalFields * @todo Implement testgetAdditionalFields(). */ - public function testgetAdditionalFields() - { - if (class_exists('dashletProcessMakerCommunity')) { - $methods = get_class_methods( 'dashletProcessMakerCommunity'); - $this->assertTrue( in_array( 'getAdditionalFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAdditionalFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAdditionalFields', $methods ), 'exists method getAdditionalFields' ); + $r = new ReflectionMethod('dashletProcessMakerCommunity', 'getAdditionalFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletProcessMakerCommunity::getXTemplate * @todo Implement testgetXTemplate(). */ - public function testgetXTemplate() - { - if (class_exists('dashletProcessMakerCommunity')) { - $methods = get_class_methods( 'dashletProcessMakerCommunity'); - $this->assertTrue( in_array( 'getXTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetXTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXTemplate', $methods ), 'exists method getXTemplate' ); + $r = new ReflectionMethod('dashletProcessMakerCommunity', 'getXTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletProcessMakerCommunity::setup * @todo Implement testsetup(). */ - public function testsetup() - { - if (class_exists('dashletProcessMakerCommunity')) { - $methods = get_class_methods( 'dashletProcessMakerCommunity'); - $this->assertTrue( in_array( 'setup', $methods ), 'seems like this function is outside this class' ); - } + public function testsetup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setup', $methods ), 'exists method setup' ); + $r = new ReflectionMethod('dashletProcessMakerCommunity', 'setup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'config'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletProcessMakerCommunity::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('dashletProcessMakerCommunity')) { - $methods = get_class_methods( 'dashletProcessMakerCommunity'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('dashletProcessMakerCommunity', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'width'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '300'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classdashletProcessMakerEnterpriseTest.php b/tests/automated/workflow/engine/classes/classdashletProcessMakerEnterpriseTest.php index d6c656fba..be24a85f8 100644 --- a/tests/automated/workflow/engine/classes/classdashletProcessMakerEnterpriseTest.php +++ b/tests/automated/workflow/engine/classes/classdashletProcessMakerEnterpriseTest.php @@ -1,63 +1,118 @@ -object = new dashletProcessMakerEnterprise(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 4); + } - class classdashletProcessMakerEnterpriseTest extends PHPUnit_Framework_TestCase - { /** * @covers dashletProcessMakerEnterprise::getAdditionalFields * @todo Implement testgetAdditionalFields(). */ - public function testgetAdditionalFields() - { - if (class_exists('dashletProcessMakerEnterprise')) { - $methods = get_class_methods( 'dashletProcessMakerEnterprise'); - $this->assertTrue( in_array( 'getAdditionalFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAdditionalFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAdditionalFields', $methods ), 'exists method getAdditionalFields' ); + $r = new ReflectionMethod('dashletProcessMakerEnterprise', 'getAdditionalFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletProcessMakerEnterprise::getXTemplate * @todo Implement testgetXTemplate(). */ - public function testgetXTemplate() - { - if (class_exists('dashletProcessMakerEnterprise')) { - $methods = get_class_methods( 'dashletProcessMakerEnterprise'); - $this->assertTrue( in_array( 'getXTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetXTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXTemplate', $methods ), 'exists method getXTemplate' ); + $r = new ReflectionMethod('dashletProcessMakerEnterprise', 'getXTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletProcessMakerEnterprise::setup * @todo Implement testsetup(). */ - public function testsetup() - { - if (class_exists('dashletProcessMakerEnterprise')) { - $methods = get_class_methods( 'dashletProcessMakerEnterprise'); - $this->assertTrue( in_array( 'setup', $methods ), 'seems like this function is outside this class' ); - } + public function testsetup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setup', $methods ), 'exists method setup' ); + $r = new ReflectionMethod('dashletProcessMakerEnterprise', 'setup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'config'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletProcessMakerEnterprise::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('dashletProcessMakerEnterprise')) { - $methods = get_class_methods( 'dashletProcessMakerEnterprise'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('dashletProcessMakerEnterprise', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'width'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '300'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classdashletRssReaderTest.php b/tests/automated/workflow/engine/classes/classdashletRssReaderTest.php index 711d40c93..4c539e1ef 100644 --- a/tests/automated/workflow/engine/classes/classdashletRssReaderTest.php +++ b/tests/automated/workflow/engine/classes/classdashletRssReaderTest.php @@ -1,63 +1,118 @@ -object = new dashletRssReader(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 4); + } - class classdashletRssReaderTest extends PHPUnit_Framework_TestCase - { /** * @covers dashletRssReader::getAdditionalFields * @todo Implement testgetAdditionalFields(). */ - public function testgetAdditionalFields() - { - if (class_exists('dashletRssReader')) { - $methods = get_class_methods( 'dashletRssReader'); - $this->assertTrue( in_array( 'getAdditionalFields', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAdditionalFields() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAdditionalFields', $methods ), 'exists method getAdditionalFields' ); + $r = new ReflectionMethod('dashletRssReader', 'getAdditionalFields'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletRssReader::getXTemplate * @todo Implement testgetXTemplate(). */ - public function testgetXTemplate() - { - if (class_exists('dashletRssReader')) { - $methods = get_class_methods( 'dashletRssReader'); - $this->assertTrue( in_array( 'getXTemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testgetXTemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getXTemplate', $methods ), 'exists method getXTemplate' ); + $r = new ReflectionMethod('dashletRssReader', 'getXTemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'className'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletRssReader::setup * @todo Implement testsetup(). */ - public function testsetup() - { - if (class_exists('dashletRssReader')) { - $methods = get_class_methods( 'dashletRssReader'); - $this->assertTrue( in_array( 'setup', $methods ), 'seems like this function is outside this class' ); - } + public function testsetup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setup', $methods ), 'exists method setup' ); + $r = new ReflectionMethod('dashletRssReader', 'setup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'config'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dashletRssReader::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('dashletRssReader')) { - $methods = get_class_methods( 'dashletRssReader'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('dashletRssReader', 'render'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'width'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '300'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classdatesTest.php b/tests/automated/workflow/engine/classes/classdatesTest.php index 34ade5add..6bf1b060b 100644 --- a/tests/automated/workflow/engine/classes/classdatesTest.php +++ b/tests/automated/workflow/engine/classes/classdatesTest.php @@ -1,231 +1,289 @@ -object = new dates(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 10); + } - class classdatesTest extends PHPUnit_Framework_TestCase - { /** * @covers dates::calculateDate * @todo Implement testcalculateDate(). */ - public function testcalculateDate() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'calculateDate', $methods ), 'seems like this function is outside this class' ); - } + public function testcalculateDate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calculateDate', $methods ), 'exists method calculateDate' ); + $r = new ReflectionMethod('dates', 'calculateDate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sInitDate'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDuration'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTimeUnit'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'iTypeDay'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'UsrUid'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'ProUid'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'TasUid'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::calculateDate_noCalendar * @todo Implement testcalculateDate_noCalendar(). */ - public function testcalculateDate_noCalendar() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'calculateDate_noCalendar', $methods ), 'seems like this function is outside this class' ); - } + public function testcalculateDate_noCalendar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calculateDate_noCalendar', $methods ), 'exists method calculateDate_noCalendar' ); + $r = new ReflectionMethod('dates', 'calculateDate_noCalendar'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sInitDate'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDuration'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTimeUnit'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'iTypeDay'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'UsrUid'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'ProUid'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'TasUid'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::calculateDuration * @todo Implement testcalculateDuration(). */ - public function testcalculateDuration() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'calculateDuration', $methods ), 'seems like this function is outside this class' ); - } + public function testcalculateDuration() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('calculateDuration', $methods ), 'exists method calculateDuration' ); + $r = new ReflectionMethod('dates', 'calculateDuration'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sInitDate'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sEndDate'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'UsrUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'ProUid'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'TasUid'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::prepareInformation * @todo Implement testprepareInformation(). */ - public function testprepareInformation() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'prepareInformation', $methods ), 'seems like this function is outside this class' ); - } + public function testprepareInformation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('prepareInformation', $methods ), 'exists method prepareInformation' ); + $r = new ReflectionMethod('dates', 'prepareInformation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'UsrUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'ProUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'TasUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::setSkipEveryYear * @todo Implement testsetSkipEveryYear(). */ - public function testsetSkipEveryYear() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'setSkipEveryYear', $methods ), 'seems like this function is outside this class' ); - } + public function testsetSkipEveryYear() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setSkipEveryYear', $methods ), 'exists method setSkipEveryYear' ); + $r = new ReflectionMethod('dates', 'setSkipEveryYear'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'bSkipEveryYear'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::addHoliday * @todo Implement testaddHoliday(). */ - public function testaddHoliday() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'addHoliday', $methods ), 'seems like this function is outside this class' ); - } + public function testaddHoliday() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addHoliday', $methods ), 'exists method addHoliday' ); + $r = new ReflectionMethod('dates', 'addHoliday'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sDate'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::setHolidays * @todo Implement testsetHolidays(). */ - public function testsetHolidays() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'setHolidays', $methods ), 'seems like this function is outside this class' ); - } + public function testsetHolidays() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setHolidays', $methods ), 'exists method setHolidays' ); + $r = new ReflectionMethod('dates', 'setHolidays'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aDates'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::setWeekends * @todo Implement testsetWeekends(). */ - public function testsetWeekends() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'setWeekends', $methods ), 'seems like this function is outside this class' ); - } + public function testsetWeekends() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setWeekends', $methods ), 'exists method setWeekends' ); + $r = new ReflectionMethod('dates', 'setWeekends'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aWeekends'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::skipDayOfWeek * @todo Implement testskipDayOfWeek(). */ - public function testskipDayOfWeek() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'skipDayOfWeek', $methods ), 'seems like this function is outside this class' ); - } + public function testskipDayOfWeek() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('skipDayOfWeek', $methods ), 'exists method skipDayOfWeek' ); + $r = new ReflectionMethod('dates', 'skipDayOfWeek'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'iDayNumber'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dates::addNonWorkingRange * @todo Implement testaddNonWorkingRange(). */ - public function testaddNonWorkingRange() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'addNonWorkingRange', $methods ), 'seems like this function is outside this class' ); - } - } + public function testaddNonWorkingRange() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addNonWorkingRange', $methods ), 'exists method addNonWorkingRange' ); + $r = new ReflectionMethod('dates', 'addNonWorkingRange'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sDateA'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sDateB'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers dates::addDays - * @todo Implement testaddDays(). - */ - public function testaddDays() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'addDays', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dates::addHours - * @todo Implement testaddHours(). - */ - public function testaddHours() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'addHours', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dates::inRange - * @todo Implement testinRange(). - */ - public function testinRange() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'inRange', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dates::truncateTime - * @todo Implement testtruncateTime(). - */ - public function testtruncateTime() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'truncateTime', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dates::getTime - * @todo Implement testgetTime(). - */ - public function testgetTime() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'getTime', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dates::setTime - * @todo Implement testsetTime(). - */ - public function testsetTime() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'setTime', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dates::listForYear - * @todo Implement testlistForYear(). - */ - public function testlistForYear() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'listForYear', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dates::changeYear - * @todo Implement testchangeYear(). - */ - public function testchangeYear() - { - if (class_exists('dates')) { - $methods = get_class_methods( 'dates'); - $this->assertTrue( in_array( 'changeYear', $methods ), 'seems like this function is outside this class' ); - } } } diff --git a/tests/automated/workflow/engine/classes/classdbConnectionsTest.php b/tests/automated/workflow/engine/classes/classdbConnectionsTest.php deleted file mode 100644 index 43d1d7d86..000000000 --- a/tests/automated/workflow/engine/classes/classdbConnectionsTest.php +++ /dev/null @@ -1,171 +0,0 @@ -assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getAllConnections - * @todo Implement testgetAllConnections(). - */ - public function testgetAllConnections() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getAllConnections', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getConnections - * @todo Implement testgetConnections(). - */ - public function testgetConnections() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getConnections', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getConnectionsProUid - * @todo Implement testgetConnectionsProUid(). - */ - public function testgetConnectionsProUid() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getConnectionsProUid', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::loadAdditionalConnections - * @todo Implement testloadAdditionalConnections(). - */ - public function testloadAdditionalConnections() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'loadAdditionalConnections', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getDbServicesAvailables - * @todo Implement testgetDbServicesAvailables(). - */ - public function testgetDbServicesAvailables() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getDbServicesAvailables', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::showMsg - * @todo Implement testshowMsg(). - */ - public function testshowMsg() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'showMsg', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getEncondeList - * @todo Implement testgetEncondeList(). - */ - public function testgetEncondeList() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getEncondeList', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getErrno - * @todo Implement testgetErrno(). - */ - public function testgetErrno() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getErrno', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getErrmsg - * @todo Implement testgetErrmsg(). - */ - public function testgetErrmsg() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getErrmsg', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::ordx - * @todo Implement testordx(). - */ - public function testordx() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'ordx', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::encryptThepassw - * @todo Implement testencryptThepassw(). - */ - public function testencryptThepassw() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'encryptThepassw', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers dbConnections::getPassWithoutEncrypt - * @todo Implement testgetPassWithoutEncrypt(). - */ - public function testgetPassWithoutEncrypt() - { - if (class_exists('dbConnections')) { - $methods = get_class_methods( 'dbConnections'); - $this->assertTrue( in_array( 'getPassWithoutEncrypt', $methods ), 'seems like this function is outside this class' ); - } - } - - } diff --git a/tests/automated/workflow/engine/classes/classdynaformEditorAjaxTest.php b/tests/automated/workflow/engine/classes/classdynaformEditorAjaxTest.php index d468011ff..b0dea8b31 100644 --- a/tests/automated/workflow/engine/classes/classdynaformEditorAjaxTest.php +++ b/tests/automated/workflow/engine/classes/classdynaformEditorAjaxTest.php @@ -1,231 +1,392 @@ -object = new dynaformEditorAjax(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 28); + } - class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase - { /** * @covers dynaformEditorAjax::dynaformEditorAjax * @todo Implement testdynaformEditorAjax(). */ - public function testdynaformEditorAjax() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'dynaformEditorAjax', $methods ), 'seems like this function is outside this class' ); - } + public function testdynaformEditorAjax() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dynaformEditorAjax', $methods ), 'exists method dynaformEditorAjax' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'dynaformEditorAjax'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'post'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::_run * @todo Implement test_run(). */ - public function test_run() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( '_run', $methods ), 'seems like this function is outside this class' ); - } + public function test_run() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_run', $methods ), 'exists method _run' ); + $r = new ReflectionMethod('dynaformEditorAjax', '_run'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'post'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::render_preview * @todo Implement testrender_preview(). */ - public function testrender_preview() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'render_preview', $methods ), 'seems like this function is outside this class' ); - } + public function testrender_preview() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render_preview', $methods ), 'exists method render_preview' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'render_preview'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::render_htmledit * @todo Implement testrender_htmledit(). */ - public function testrender_htmledit() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'render_htmledit', $methods ), 'seems like this function is outside this class' ); - } + public function testrender_htmledit() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render_htmledit', $methods ), 'exists method render_htmledit' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'render_htmledit'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::get_htmlcode * @todo Implement testget_htmlcode(). */ - public function testget_htmlcode() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'get_htmlcode', $methods ), 'seems like this function is outside this class' ); - } + public function testget_htmlcode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_htmlcode', $methods ), 'exists method get_htmlcode' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'get_htmlcode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::restore_html * @todo Implement testrestore_html(). */ - public function testrestore_html() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'restore_html', $methods ), 'seems like this function is outside this class' ); - } + public function testrestore_html() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('restore_html', $methods ), 'exists method restore_html' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'restore_html'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::set_htmlcode * @todo Implement testset_htmlcode(). */ - public function testset_htmlcode() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'set_htmlcode', $methods ), 'seems like this function is outside this class' ); - } + public function testset_htmlcode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set_htmlcode', $methods ), 'exists method set_htmlcode' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'set_htmlcode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'htmlcode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::get_xmlcode * @todo Implement testget_xmlcode(). */ - public function testget_xmlcode() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'get_xmlcode', $methods ), 'seems like this function is outside this class' ); - } + public function testget_xmlcode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_xmlcode', $methods ), 'exists method get_xmlcode' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'get_xmlcode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::set_xmlcode * @todo Implement testset_xmlcode(). */ - public function testset_xmlcode() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'set_xmlcode', $methods ), 'seems like this function is outside this class' ); - } + public function testset_xmlcode() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set_xmlcode', $methods ), 'exists method set_xmlcode' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'set_xmlcode'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'xmlcode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::get_javascripts * @todo Implement testget_javascripts(). */ - public function testget_javascripts() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'get_javascripts', $methods ), 'seems like this function is outside this class' ); - } + public function testget_javascripts() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_javascripts', $methods ), 'exists method get_javascripts' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'get_javascripts'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fieldName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::set_javascript * @todo Implement testset_javascript(). */ - public function testset_javascript() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'set_javascript', $methods ), 'seems like this function is outside this class' ); - } + public function testset_javascript() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set_javascript', $methods ), 'exists method set_javascript' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'set_javascript'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'fieldName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sCode'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'meta'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::get_properties * @todo Implement testget_properties(). */ - public function testget_properties() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'get_properties', $methods ), 'seems like this function is outside this class' ); - } + public function testget_properties() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_properties', $methods ), 'exists method get_properties' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'get_properties'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'DYN_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::set_properties * @todo Implement testset_properties(). */ - public function testset_properties() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'set_properties', $methods ), 'seems like this function is outside this class' ); - } + public function testset_properties() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set_properties', $methods ), 'exists method set_properties' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'set_properties'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'DYN_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'getFields'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::get_enabletemplate * @todo Implement testget_enabletemplate(). */ - public function testget_enabletemplate() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'get_enabletemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testget_enabletemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('get_enabletemplate', $methods ), 'exists method get_enabletemplate' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'get_enabletemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::set_enabletemplate * @todo Implement testset_enabletemplate(). */ - public function testset_enabletemplate() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'set_enabletemplate', $methods ), 'seems like this function is outside this class' ); - } + public function testset_enabletemplate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('set_enabletemplate', $methods ), 'exists method set_enabletemplate' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'set_enabletemplate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'value'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::save * @todo Implement testsave(). */ - public function testsave() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); - } + public function testsave() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('save', $methods ), 'exists method save' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'save'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'DYN_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::close * @todo Implement testclose(). */ - public function testclose() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' ); - } + public function testclose() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('close', $methods ), 'exists method close' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'close'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditorAjax::is_modified * @todo Implement testis_modified(). */ - public function testis_modified() - { - if (class_exists('dynaformEditorAjax')) { - $methods = get_class_methods( 'dynaformEditorAjax'); - $this->assertTrue( in_array( 'is_modified', $methods ), 'seems like this function is outside this class' ); - } + public function testis_modified() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('is_modified', $methods ), 'exists method is_modified' ); + $r = new ReflectionMethod('dynaformEditorAjax', 'is_modified'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'A'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'DYN_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classdynaformEditorTest.php b/tests/automated/workflow/engine/classes/classdynaformEditorTest.php index 8273be37d..fd90ecddb 100644 --- a/tests/automated/workflow/engine/classes/classdynaformEditorTest.php +++ b/tests/automated/workflow/engine/classes/classdynaformEditorTest.php @@ -1,111 +1,182 @@ -object = new dynaformEditor(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 10); + } - class classdynaformEditorTest extends PHPUnit_Framework_TestCase - { /** * @covers dynaformEditor::dynaformEditor * @todo Implement testdynaformEditor(). */ - public function testdynaformEditor() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( 'dynaformEditor', $methods ), 'seems like this function is outside this class' ); - } + public function testdynaformEditor() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dynaformEditor', $methods ), 'exists method dynaformEditor' ); + $r = new ReflectionMethod('dynaformEditor', 'dynaformEditor'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'get'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditor::_createDefaultXmlForm * @todo Implement test_createDefaultXmlForm(). */ - public function test_createDefaultXmlForm() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( '_createDefaultXmlForm', $methods ), 'seems like this function is outside this class' ); - } + public function test_createDefaultXmlForm() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_createDefaultXmlForm', $methods ), 'exists method _createDefaultXmlForm' ); + $r = new ReflectionMethod('dynaformEditor', '_createDefaultXmlForm'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fileName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditor::_render * @todo Implement test_render(). */ - public function test_render() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( '_render', $methods ), 'seems like this function is outside this class' ); - } + public function test_render() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_render', $methods ), 'exists method _render' ); + $r = new ReflectionMethod('dynaformEditor', '_render'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditor::_getFilename * @todo Implement test_getFilename(). */ - public function test_getFilename() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( '_getFilename', $methods ), 'seems like this function is outside this class' ); - } + public function test_getFilename() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_getFilename', $methods ), 'exists method _getFilename' ); + $r = new ReflectionMethod('dynaformEditor', '_getFilename'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditor::_setUseTemporalCopy * @todo Implement test_setUseTemporalCopy(). */ - public function test_setUseTemporalCopy() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( '_setUseTemporalCopy', $methods ), 'seems like this function is outside this class' ); - } + public function test_setUseTemporalCopy() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_setUseTemporalCopy', $methods ), 'exists method _setUseTemporalCopy' ); + $r = new ReflectionMethod('dynaformEditor', '_setUseTemporalCopy'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'onOff'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditor::_setTmpData * @todo Implement test_setTmpData(). */ - public function test_setTmpData() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( '_setTmpData', $methods ), 'seems like this function is outside this class' ); - } + public function test_setTmpData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_setTmpData', $methods ), 'exists method _setTmpData' ); + $r = new ReflectionMethod('dynaformEditor', '_setTmpData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'data'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditor::_getTmpData * @todo Implement test_getTmpData(). */ - public function test_getTmpData() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( '_getTmpData', $methods ), 'seems like this function is outside this class' ); - } + public function test_getTmpData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_getTmpData', $methods ), 'exists method _getTmpData' ); + $r = new ReflectionMethod('dynaformEditor', '_getTmpData'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers dynaformEditor::_copyFile * @todo Implement test_copyFile(). */ - public function test_copyFile() - { - if (class_exists('dynaformEditor')) { - $methods = get_class_methods( 'dynaformEditor'); - $this->assertTrue( in_array( '_copyFile', $methods ), 'seems like this function is outside this class' ); - } + public function test_copyFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('_copyFile', $methods ), 'exists method _copyFile' ); + $r = new ReflectionMethod('dynaformEditor', '_copyFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'from'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'to'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classfolderDataTest.php b/tests/automated/workflow/engine/classes/classfolderDataTest.php index f6f64abb0..a48b188d6 100644 --- a/tests/automated/workflow/engine/classes/classfolderDataTest.php +++ b/tests/automated/workflow/engine/classes/classfolderDataTest.php @@ -1,27 +1,86 @@ -object = new folderData(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classfolderDataTest extends PHPUnit_Framework_TestCase - { /** * @covers folderData::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('folderData')) { - $methods = get_class_methods( 'folderData'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('folderData', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sProcessTitle'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sApplicationUid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sApplicationTitle'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sUserUid'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'sUserLogin'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'sUserFullName'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classfolderDetailTest.php b/tests/automated/workflow/engine/classes/classfolderDetailTest.php index a7ebf9034..6909f63a6 100644 --- a/tests/automated/workflow/engine/classes/classfolderDetailTest.php +++ b/tests/automated/workflow/engine/classes/classfolderDetailTest.php @@ -1,27 +1,72 @@ -object = new folderDetail(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classfolderDetailTest extends PHPUnit_Framework_TestCase - { /** * @covers folderDetail::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('folderDetail')) { - $methods = get_class_methods( 'folderDetail'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('folderDetail', '__construct'); + $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() == 'sFolderId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFolderName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classgzip_fileTest.php b/tests/automated/workflow/engine/classes/classgzip_fileTest.php index 41c3be46b..5e325d70f 100644 --- a/tests/automated/workflow/engine/classes/classgzip_fileTest.php +++ b/tests/automated/workflow/engine/classes/classgzip_fileTest.php @@ -1,51 +1,94 @@ -object = new gzip_file(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 18); + } - class classgzip_fileTest extends PHPUnit_Framework_TestCase - { /** * @covers gzip_file::gzip_file * @todo Implement testgzip_file(). */ - public function testgzip_file() - { - if (class_exists('gzip_file')) { - $methods = get_class_methods( 'gzip_file'); - $this->assertTrue( in_array( 'gzip_file', $methods ), 'seems like this function is outside this class' ); - } + public function testgzip_file() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('gzip_file', $methods ), 'exists method gzip_file' ); + $r = new ReflectionMethod('gzip_file', 'gzip_file'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers gzip_file::create_gzip * @todo Implement testcreate_gzip(). */ - public function testcreate_gzip() - { - if (class_exists('gzip_file')) { - $methods = get_class_methods( 'gzip_file'); - $this->assertTrue( in_array( 'create_gzip', $methods ), 'seems like this function is outside this class' ); - } + public function testcreate_gzip() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('create_gzip', $methods ), 'exists method create_gzip' ); + $r = new ReflectionMethod('gzip_file', 'create_gzip'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers gzip_file::open_archive * @todo Implement testopen_archive(). */ - public function testopen_archive() - { - if (class_exists('gzip_file')) { - $methods = get_class_methods( 'gzip_file'); - $this->assertTrue( in_array( 'open_archive', $methods ), 'seems like this function is outside this class' ); - } + public function testopen_archive() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('open_archive', $methods ), 'exists method open_archive' ); + $r = new ReflectionMethod('gzip_file', 'open_archive'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classloginInfoTest.php b/tests/automated/workflow/engine/classes/classloginInfoTest.php index dcd77a81e..01ffa4619 100644 --- a/tests/automated/workflow/engine/classes/classloginInfoTest.php +++ b/tests/automated/workflow/engine/classes/classloginInfoTest.php @@ -1,27 +1,72 @@ -object = new loginInfo(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classloginInfoTest extends PHPUnit_Framework_TestCase - { /** * @covers loginInfo::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('loginInfo')) { - $methods = get_class_methods( 'loginInfo'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('loginInfo', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'lName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'lPassword'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'lSession'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classmenuDetailTest.php b/tests/automated/workflow/engine/classes/classmenuDetailTest.php index 364d64dc5..6d169a746 100644 --- a/tests/automated/workflow/engine/classes/classmenuDetailTest.php +++ b/tests/automated/workflow/engine/classes/classmenuDetailTest.php @@ -1,27 +1,72 @@ -object = new menuDetail(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classmenuDetailTest extends PHPUnit_Framework_TestCase - { /** * @covers menuDetail::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('menuDetail')) { - $methods = get_class_methods( 'menuDetail'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('menuDetail', '__construct'); + $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() == 'sMenuId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFilename'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classpluginDetailTest.php b/tests/automated/workflow/engine/classes/classpluginDetailTest.php index a39e05440..51cfebf5f 100644 --- a/tests/automated/workflow/engine/classes/classpluginDetailTest.php +++ b/tests/automated/workflow/engine/classes/classpluginDetailTest.php @@ -1,27 +1,92 @@ -object = new pluginDetail(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classpluginDetailTest extends PHPUnit_Framework_TestCase - { /** * @covers pluginDetail::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('pluginDetail')) { - $methods = get_class_methods( 'pluginDetail'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('pluginDetail', '__construct'); + $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() == 'sClassName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFilename'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sFriendlyName'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'sPluginFolder'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'sDescription'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'sSetupPage'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->assertTrue( $params[7]->getName() == 'iVersion'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classpmGaugeTest.php b/tests/automated/workflow/engine/classes/classpmGaugeTest.php index ebfa47beb..902da44a6 100644 --- a/tests/automated/workflow/engine/classes/classpmGaugeTest.php +++ b/tests/automated/workflow/engine/classes/classpmGaugeTest.php @@ -1,39 +1,89 @@ -object = new pmGauge(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 2); + } - class classpmGaugeTest extends PHPUnit_Framework_TestCase - { /** * @covers pmGauge::render * @todo Implement testrender(). */ - public function testrender() - { - if (class_exists('pmGauge')) { - $methods = get_class_methods( 'pmGauge'); - $this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); - } + public function testrender() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('render', $methods ), 'exists method render' ); + $r = new ReflectionMethod('pmGauge', 'render'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers pmGauge::renderGauge * @todo Implement testrenderGauge(). */ - public function testrenderGauge() - { - if (class_exists('pmGauge')) { - $methods = get_class_methods( 'pmGauge'); - $this->assertTrue( in_array( 'renderGauge', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderGauge() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderGauge', $methods ), 'exists method renderGauge' ); + $r = new ReflectionMethod('pmGauge', 'renderGauge'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'im'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'cX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'cY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'diameter'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classpmPhingTest.php b/tests/automated/workflow/engine/classes/classpmPhingTest.php index 63df07306..df63b5181 100644 --- a/tests/automated/workflow/engine/classes/classpmPhingTest.php +++ b/tests/automated/workflow/engine/classes/classpmPhingTest.php @@ -1,27 +1,63 @@ -object = new pmPhing(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 35); + } - class classpmPhingTest extends PHPUnit_Framework_TestCase - { /** * @covers pmPhing::getPhingVersion * @todo Implement testgetPhingVersion(). */ - public function testgetPhingVersion() - { - if (class_exists('pmPhing')) { - $methods = get_class_methods( 'pmPhing'); - $this->assertTrue( in_array( 'getPhingVersion', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPhingVersion() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPhingVersion', $methods ), 'exists method getPhingVersion' ); + $r = new ReflectionMethod('pmPhing', 'getPhingVersion'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classpopupMenuTest.php b/tests/automated/workflow/engine/classes/classpopupMenuTest.php index 2665446a2..cab0fa0fb 100644 --- a/tests/automated/workflow/engine/classes/classpopupMenuTest.php +++ b/tests/automated/workflow/engine/classes/classpopupMenuTest.php @@ -1,27 +1,69 @@ -object = new popupMenu(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 14); + } - class classpopupMenuTest extends PHPUnit_Framework_TestCase - { /** * @covers popupMenu::renderPopup * @todo Implement testrenderPopup(). */ - public function testrenderPopup() - { - if (class_exists('popupMenu')) { - $methods = get_class_methods( 'popupMenu'); - $this->assertTrue( in_array( 'renderPopup', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderPopup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderPopup', $methods ), 'exists method renderPopup' ); + $r = new ReflectionMethod('popupMenu', 'renderPopup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'tableId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'tableFields'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classprocessMapTest.php b/tests/automated/workflow/engine/classes/classprocessMapTest.php index f42444a02..8d3f87456 100644 --- a/tests/automated/workflow/engine/classes/classprocessMapTest.php +++ b/tests/automated/workflow/engine/classes/classprocessMapTest.php @@ -1,1803 +1,3123 @@ -object = new processMap(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 149); + } - class classprocessMapTest extends PHPUnit_Framework_TestCase - { /** * @covers processMap::load * @todo Implement testload(). */ - public function testload() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); - } + public function testload() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('load', $methods ), 'exists method load' ); + $r = new ReflectionMethod('processMap', 'load'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'bView'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'iDelegation'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->assertTrue( $params[4]->getName() == 'sTask'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->assertTrue( $params[5]->getName() == 'bCT'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::createProcess * @todo Implement testcreateProcess(). */ - public function testcreateProcess() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'createProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createProcess', $methods ), 'exists method createProcess' ); + $r = new ReflectionMethod('processMap', 'createProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::updateProcess * @todo Implement testupdateProcess(). */ - public function testupdateProcess() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'updateProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateProcess', $methods ), 'exists method updateProcess' ); + $r = new ReflectionMethod('processMap', 'updateProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::editProcess * @todo Implement testeditProcess(). */ - public function testeditProcess() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'editProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testeditProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('editProcess', $methods ), 'exists method editProcess' ); + $r = new ReflectionMethod('processMap', 'editProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteProcess * @todo Implement testdeleteProcess(). */ - public function testdeleteProcess() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteProcess', $methods ), 'exists method deleteProcess' ); + $r = new ReflectionMethod('processMap', 'deleteProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveTitlePosition * @todo Implement testsaveTitlePosition(). */ - public function testsaveTitlePosition() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveTitlePosition', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveTitlePosition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveTitlePosition', $methods ), 'exists method saveTitlePosition' ); + $r = new ReflectionMethod('processMap', 'saveTitlePosition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::steps * @todo Implement teststeps(). */ - public function teststeps() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'steps', $methods ), 'seems like this function is outside this class' ); - } + public function teststeps() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('steps', $methods ), 'exists method steps' ); + $r = new ReflectionMethod('processMap', 'steps'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getStepsCriteria * @todo Implement testgetStepsCriteria(). */ - public function testgetStepsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getStepsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStepsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStepsCriteria', $methods ), 'exists method getStepsCriteria' ); + $r = new ReflectionMethod('processMap', 'getStepsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getStepTriggersCriteria * @todo Implement testgetStepTriggersCriteria(). */ - public function testgetStepTriggersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getStepTriggersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetStepTriggersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getStepTriggersCriteria', $methods ), 'exists method getStepTriggersCriteria' ); + $r = new ReflectionMethod('processMap', 'getStepTriggersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sStepUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAvailableBBCriteria * @todo Implement testgetAvailableBBCriteria(). */ - public function testgetAvailableBBCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAvailableBBCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableBBCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableBBCriteria', $methods ), 'exists method getAvailableBBCriteria' ); + $r = new ReflectionMethod('processMap', 'getAvailableBBCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::users * @todo Implement testusers(). */ - public function testusers() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'users', $methods ), 'seems like this function is outside this class' ); - } + public function testusers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('users', $methods ), 'exists method users' ); + $r = new ReflectionMethod('processMap', 'users'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::users_adhoc * @todo Implement testusers_adhoc(). */ - public function testusers_adhoc() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'users_adhoc', $methods ), 'seems like this function is outside this class' ); - } + public function testusers_adhoc() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('users_adhoc', $methods ), 'exists method users_adhoc' ); + $r = new ReflectionMethod('processMap', 'users_adhoc'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getTaskUsersCriteria * @todo Implement testgetTaskUsersCriteria(). */ - public function testgetTaskUsersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getTaskUsersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTaskUsersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTaskUsersCriteria', $methods ), 'exists method getTaskUsersCriteria' ); + $r = new ReflectionMethod('processMap', 'getTaskUsersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAvailableUsersCriteria * @todo Implement testgetAvailableUsersCriteria(). */ - public function testgetAvailableUsersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAvailableUsersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableUsersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableUsersCriteria', $methods ), 'exists method getAvailableUsersCriteria' ); + $r = new ReflectionMethod('processMap', 'getAvailableUsersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::stepsConditions * @todo Implement teststepsConditions(). */ - public function teststepsConditions() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'stepsConditions', $methods ), 'seems like this function is outside this class' ); - } + public function teststepsConditions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('stepsConditions', $methods ), 'exists method stepsConditions' ); + $r = new ReflectionMethod('processMap', 'stepsConditions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::stepsTriggers * @todo Implement teststepsTriggers(). */ - public function teststepsTriggers() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'stepsTriggers', $methods ), 'seems like this function is outside this class' ); - } + public function teststepsTriggers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('stepsTriggers', $methods ), 'exists method stepsTriggers' ); + $r = new ReflectionMethod('processMap', 'stepsTriggers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::addTask * @todo Implement testaddTask(). */ - public function testaddTask() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'addTask', $methods ), 'seems like this function is outside this class' ); - } + public function testaddTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addTask', $methods ), 'exists method addTask' ); + $r = new ReflectionMethod('processMap', 'addTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->assertTrue( $params[3]->getName() == 'iWidth'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '165'); + $this->assertTrue( $params[4]->getName() == 'iHeight'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == '40'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::editTaskProperties * @todo Implement testeditTaskProperties(). */ - public function testeditTaskProperties() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'editTaskProperties', $methods ), 'seems like this function is outside this class' ); - } + public function testeditTaskProperties() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('editTaskProperties', $methods ), 'exists method editTaskProperties' ); + $r = new ReflectionMethod('processMap', 'editTaskProperties'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iForm'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->assertTrue( $params[2]->getName() == 'iIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveTaskPosition * @todo Implement testsaveTaskPosition(). */ - public function testsaveTaskPosition() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveTaskPosition', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveTaskPosition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveTaskPosition', $methods ), 'exists method saveTaskPosition' ); + $r = new ReflectionMethod('processMap', 'saveTaskPosition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteTask * @todo Implement testdeleteTask(). */ - public function testdeleteTask() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteTask', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteTask', $methods ), 'exists method deleteTask' ); + $r = new ReflectionMethod('processMap', 'deleteTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteGateway * @todo Implement testdeleteGateway(). */ - public function testdeleteGateway() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteGateway', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteGateway() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteGateway', $methods ), 'exists method deleteGateway' ); + $r = new ReflectionMethod('processMap', 'deleteGateway'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sGatewayUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::addGateway * @todo Implement testaddGateway(). */ - public function testaddGateway() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'addGateway', $methods ), 'seems like this function is outside this class' ); - } + public function testaddGateway() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addGateway', $methods ), 'exists method addGateway' ); + $r = new ReflectionMethod('processMap', 'addGateway'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::addGuide * @todo Implement testaddGuide(). */ - public function testaddGuide() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'addGuide', $methods ), 'seems like this function is outside this class' ); - } + public function testaddGuide() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addGuide', $methods ), 'exists method addGuide' ); + $r = new ReflectionMethod('processMap', 'addGuide'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iPosition'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'sDirection'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'vertical'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveGuidePosition * @todo Implement testsaveGuidePosition(). */ - public function testsaveGuidePosition() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveGuidePosition', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveGuidePosition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveGuidePosition', $methods ), 'exists method saveGuidePosition' ); + $r = new ReflectionMethod('processMap', 'saveGuidePosition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSEUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iPosition'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'sDirection'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == 'vertical'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteGuide * @todo Implement testdeleteGuide(). */ - public function testdeleteGuide() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteGuide', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteGuide() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteGuide', $methods ), 'exists method deleteGuide' ); + $r = new ReflectionMethod('processMap', 'deleteGuide'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSEUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteGuides * @todo Implement testdeleteGuides(). */ - public function testdeleteGuides() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteGuides', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteGuides() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteGuides', $methods ), 'exists method deleteGuides' ); + $r = new ReflectionMethod('processMap', 'deleteGuides'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::addText * @todo Implement testaddText(). */ - public function testaddText() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'addText', $methods ), 'seems like this function is outside this class' ); - } + public function testaddText() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addText', $methods ), 'exists method addText' ); + $r = new ReflectionMethod('processMap', 'addText'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sLabel'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'iX'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->assertTrue( $params[3]->getName() == 'iY'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '0'); + $this->assertTrue( $params[4]->getName() == 'sNext_uid'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::updateText * @todo Implement testupdateText(). */ - public function testupdateText() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'updateText', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateText() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateText', $methods ), 'exists method updateText' ); + $r = new ReflectionMethod('processMap', 'updateText'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSEUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sLabel'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sNext_uid'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveTextPosition * @todo Implement testsaveTextPosition(). */ - public function testsaveTextPosition() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveTextPosition', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveTextPosition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveTextPosition', $methods ), 'exists method saveTextPosition' ); + $r = new ReflectionMethod('processMap', 'saveTextPosition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSEUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteText * @todo Implement testdeleteText(). */ - public function testdeleteText() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteText', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteText() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteText', $methods ), 'exists method deleteText' ); + $r = new ReflectionMethod('processMap', 'deleteText'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSEUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveGatewayPosition * @todo Implement testsaveGatewayPosition(). */ - public function testsaveGatewayPosition() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveGatewayPosition', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveGatewayPosition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveGatewayPosition', $methods ), 'exists method saveGatewayPosition' ); + $r = new ReflectionMethod('processMap', 'saveGatewayPosition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sGatewayUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::dynaformsList * @todo Implement testdynaformsList(). */ - public function testdynaformsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'dynaformsList', $methods ), 'seems like this function is outside this class' ); - } + public function testdynaformsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dynaformsList', $methods ), 'exists method dynaformsList' ); + $r = new ReflectionMethod('processMap', 'dynaformsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getDynaformsCriteria * @todo Implement testgetDynaformsCriteria(). */ - public function testgetDynaformsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getDynaformsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDynaformsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDynaformsCriteria', $methods ), 'exists method getDynaformsCriteria' ); + $r = new ReflectionMethod('processMap', 'getDynaformsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getDynaformsList * @todo Implement testgetDynaformsList(). */ - public function testgetDynaformsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getDynaformsList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDynaformsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDynaformsList', $methods ), 'exists method getDynaformsList' ); + $r = new ReflectionMethod('processMap', 'getDynaformsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::outputdocsList * @todo Implement testoutputdocsList(). */ - public function testoutputdocsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'outputdocsList', $methods ), 'seems like this function is outside this class' ); - } + public function testoutputdocsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('outputdocsList', $methods ), 'exists method outputdocsList' ); + $r = new ReflectionMethod('processMap', 'outputdocsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getOutputDocumentsCriteria * @todo Implement testgetOutputDocumentsCriteria(). */ - public function testgetOutputDocumentsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getOutputDocumentsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetOutputDocumentsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getOutputDocumentsCriteria', $methods ), 'exists method getOutputDocumentsCriteria' ); + $r = new ReflectionMethod('processMap', 'getOutputDocumentsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::inputdocsList * @todo Implement testinputdocsList(). */ - public function testinputdocsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'inputdocsList', $methods ), 'seems like this function is outside this class' ); - } + public function testinputdocsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('inputdocsList', $methods ), 'exists method inputdocsList' ); + $r = new ReflectionMethod('processMap', 'inputdocsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getInputDocumentsCriteria * @todo Implement testgetInputDocumentsCriteria(). */ - public function testgetInputDocumentsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getInputDocumentsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetInputDocumentsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getInputDocumentsCriteria', $methods ), 'exists method getInputDocumentsCriteria' ); + $r = new ReflectionMethod('processMap', 'getInputDocumentsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::triggersList * @todo Implement testtriggersList(). */ - public function testtriggersList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'triggersList', $methods ), 'seems like this function is outside this class' ); - } + public function testtriggersList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('triggersList', $methods ), 'exists method triggersList' ); + $r = new ReflectionMethod('processMap', 'triggersList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getTriggersCriteria * @todo Implement testgetTriggersCriteria(). */ - public function testgetTriggersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getTriggersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTriggersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTriggersCriteria', $methods ), 'exists method getTriggersCriteria' ); + $r = new ReflectionMethod('processMap', 'getTriggersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getTriggers * @todo Implement testgetTriggers(). */ - public function testgetTriggers() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getTriggers', $methods ), 'seems like this function is outside this class' ); - } + public function testgetTriggers() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getTriggers', $methods ), 'exists method getTriggers' ); + $r = new ReflectionMethod('processMap', 'getTriggers'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::caseSchedulerList * @todo Implement testcaseSchedulerList(). */ - public function testcaseSchedulerList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'caseSchedulerList', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseSchedulerList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseSchedulerList', $methods ), 'exists method caseSchedulerList' ); + $r = new ReflectionMethod('processMap', 'caseSchedulerList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::logCaseSchedulerList * @todo Implement testlogCaseSchedulerList(). */ - public function testlogCaseSchedulerList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'logCaseSchedulerList', $methods ), 'seems like this function is outside this class' ); - } + public function testlogCaseSchedulerList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('logCaseSchedulerList', $methods ), 'exists method logCaseSchedulerList' ); + $r = new ReflectionMethod('processMap', 'logCaseSchedulerList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::messagesList * @todo Implement testmessagesList(). */ - public function testmessagesList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'messagesList', $methods ), 'seems like this function is outside this class' ); - } + public function testmessagesList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('messagesList', $methods ), 'exists method messagesList' ); + $r = new ReflectionMethod('processMap', 'messagesList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::reportTablesList * @todo Implement testreportTablesList(). */ - public function testreportTablesList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'reportTablesList', $methods ), 'seems like this function is outside this class' ); - } + public function testreportTablesList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reportTablesList', $methods ), 'exists method reportTablesList' ); + $r = new ReflectionMethod('processMap', 'reportTablesList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getReportTablesCriteria * @todo Implement testgetReportTablesCriteria(). */ - public function testgetReportTablesCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getReportTablesCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetReportTablesCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getReportTablesCriteria', $methods ), 'exists method getReportTablesCriteria' ); + $r = new ReflectionMethod('processMap', 'getReportTablesCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::currentPattern * @todo Implement testcurrentPattern(). */ - public function testcurrentPattern() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'currentPattern', $methods ), 'seems like this function is outside this class' ); - } + public function testcurrentPattern() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('currentPattern', $methods ), 'exists method currentPattern' ); + $r = new ReflectionMethod('processMap', 'currentPattern'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::newPattern * @todo Implement testnewPattern(). */ - public function testnewPattern() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'newPattern', $methods ), 'seems like this function is outside this class' ); - } + public function testnewPattern() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newPattern', $methods ), 'exists method newPattern' ); + $r = new ReflectionMethod('processMap', 'newPattern'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sNextTask'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getNumberOfRoutes * @todo Implement testgetNumberOfRoutes(). */ - public function testgetNumberOfRoutes() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getNumberOfRoutes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNumberOfRoutes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNumberOfRoutes', $methods ), 'exists method getNumberOfRoutes' ); + $r = new ReflectionMethod('processMap', 'getNumberOfRoutes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sNextTask'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveNewPattern * @todo Implement testsaveNewPattern(). */ - public function testsaveNewPattern() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveNewPattern', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveNewPattern() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveNewPattern', $methods ), 'exists method saveNewPattern' ); + $r = new ReflectionMethod('processMap', 'saveNewPattern'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sNextTask'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'sDelete'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveNewGateway * @todo Implement testsaveNewGateway(). */ - public function testsaveNewGateway() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveNewGateway', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveNewGateway() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveNewGateway', $methods ), 'exists method saveNewGateway' ); + $r = new ReflectionMethod('processMap', 'saveNewGateway'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sNextTask'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteDerivation * @todo Implement testdeleteDerivation(). */ - public function testdeleteDerivation() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteDerivation', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteDerivation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteDerivation', $methods ), 'exists method deleteDerivation' ); + $r = new ReflectionMethod('processMap', 'deleteDerivation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getConditionProcessList * @todo Implement testgetConditionProcessList(). */ - public function testgetConditionProcessList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getConditionProcessList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetConditionProcessList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getConditionProcessList', $methods ), 'exists method getConditionProcessList' ); + $r = new ReflectionMethod('processMap', 'getConditionProcessList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::supervisorDynaforms * @todo Implement testsupervisorDynaforms(). */ - public function testsupervisorDynaforms() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'supervisorDynaforms', $methods ), 'seems like this function is outside this class' ); - } + public function testsupervisorDynaforms() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('supervisorDynaforms', $methods ), 'exists method supervisorDynaforms' ); + $r = new ReflectionMethod('processMap', 'supervisorDynaforms'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::supervisorInputs * @todo Implement testsupervisorInputs(). */ - public function testsupervisorInputs() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'supervisorInputs', $methods ), 'seems like this function is outside this class' ); - } + public function testsupervisorInputs() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('supervisorInputs', $methods ), 'exists method supervisorInputs' ); + $r = new ReflectionMethod('processMap', 'supervisorInputs'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::webEntry * @todo Implement testwebEntry(). */ - public function testwebEntry() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'webEntry', $methods ), 'seems like this function is outside this class' ); - } + public function testwebEntry() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('webEntry', $methods ), 'exists method webEntry' ); + $r = new ReflectionMethod('processMap', 'webEntry'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::webEntry_new * @todo Implement testwebEntry_new(). */ - public function testwebEntry_new() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'webEntry_new', $methods ), 'seems like this function is outside this class' ); - } + public function testwebEntry_new() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('webEntry_new', $methods ), 'exists method webEntry_new' ); + $r = new ReflectionMethod('processMap', 'webEntry_new'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getSupervisorDynaformsCriteria * @todo Implement testgetSupervisorDynaformsCriteria(). */ - public function testgetSupervisorDynaformsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getSupervisorDynaformsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSupervisorDynaformsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSupervisorDynaformsCriteria', $methods ), 'exists method getSupervisorDynaformsCriteria' ); + $r = new ReflectionMethod('processMap', 'getSupervisorDynaformsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getSupervisorInputsCriteria * @todo Implement testgetSupervisorInputsCriteria(). */ - public function testgetSupervisorInputsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getSupervisorInputsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSupervisorInputsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSupervisorInputsCriteria', $methods ), 'exists method getSupervisorInputsCriteria' ); + $r = new ReflectionMethod('processMap', 'getSupervisorInputsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::availableSupervisorDynaforms * @todo Implement testavailableSupervisorDynaforms(). */ - public function testavailableSupervisorDynaforms() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'availableSupervisorDynaforms', $methods ), 'seems like this function is outside this class' ); - } + public function testavailableSupervisorDynaforms() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('availableSupervisorDynaforms', $methods ), 'exists method availableSupervisorDynaforms' ); + $r = new ReflectionMethod('processMap', 'availableSupervisorDynaforms'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::availableSupervisorInputs * @todo Implement testavailableSupervisorInputs(). */ - public function testavailableSupervisorInputs() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'availableSupervisorInputs', $methods ), 'seems like this function is outside this class' ); - } + public function testavailableSupervisorInputs() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('availableSupervisorInputs', $methods ), 'exists method availableSupervisorInputs' ); + $r = new ReflectionMethod('processMap', 'availableSupervisorInputs'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAvailableSupervisorDynaformsCriteria * @todo Implement testgetAvailableSupervisorDynaformsCriteria(). */ - public function testgetAvailableSupervisorDynaformsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAvailableSupervisorDynaformsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableSupervisorDynaformsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableSupervisorDynaformsCriteria', $methods ), 'exists method getAvailableSupervisorDynaformsCriteria' ); + $r = new ReflectionMethod('processMap', 'getAvailableSupervisorDynaformsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAvailableSupervisorInputsCriteria * @todo Implement testgetAvailableSupervisorInputsCriteria(). */ - public function testgetAvailableSupervisorInputsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAvailableSupervisorInputsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableSupervisorInputsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableSupervisorInputsCriteria', $methods ), 'exists method getAvailableSupervisorInputsCriteria' ); + $r = new ReflectionMethod('processMap', 'getAvailableSupervisorInputsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::assignSupervisorStep * @todo Implement testassignSupervisorStep(). */ - public function testassignSupervisorStep() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'assignSupervisorStep', $methods ), 'seems like this function is outside this class' ); - } + public function testassignSupervisorStep() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignSupervisorStep', $methods ), 'exists method assignSupervisorStep' ); + $r = new ReflectionMethod('processMap', 'assignSupervisorStep'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sObjType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sObjUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::removeSupervisorStep * @todo Implement testremoveSupervisorStep(). */ - public function testremoveSupervisorStep() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'removeSupervisorStep', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveSupervisorStep() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeSupervisorStep', $methods ), 'exists method removeSupervisorStep' ); + $r = new ReflectionMethod('processMap', 'removeSupervisorStep'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sStepUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sProcessUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sObjType'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sObjUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'iPosition'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::listProcessesUser * @todo Implement testlistProcessesUser(). */ - public function testlistProcessesUser() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'listProcessesUser', $methods ), 'seems like this function is outside this class' ); - } + public function testlistProcessesUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('listProcessesUser', $methods ), 'exists method listProcessesUser' ); + $r = new ReflectionMethod('processMap', 'listProcessesUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::listNoProcessesUser * @todo Implement testlistNoProcessesUser(). */ - public function testlistNoProcessesUser() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'listNoProcessesUser', $methods ), 'seems like this function is outside this class' ); - } + public function testlistNoProcessesUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('listNoProcessesUser', $methods ), 'exists method listNoProcessesUser' ); + $r = new ReflectionMethod('processMap', 'listNoProcessesUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::assignProcessUser * @todo Implement testassignProcessUser(). */ - public function testassignProcessUser() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'assignProcessUser', $methods ), 'seems like this function is outside this class' ); - } + public function testassignProcessUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignProcessUser', $methods ), 'exists method assignProcessUser' ); + $r = new ReflectionMethod('processMap', 'assignProcessUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUsrUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::removeProcessUser * @todo Implement testremoveProcessUser(). */ - public function testremoveProcessUser() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'removeProcessUser', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveProcessUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeProcessUser', $methods ), 'exists method removeProcessUser' ); + $r = new ReflectionMethod('processMap', 'removeProcessUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sPUUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getObjectsPermissionsCriteria * @todo Implement testgetObjectsPermissionsCriteria(). */ - public function testgetObjectsPermissionsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getObjectsPermissionsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetObjectsPermissionsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getObjectsPermissionsCriteria', $methods ), 'exists method getObjectsPermissionsCriteria' ); + $r = new ReflectionMethod('processMap', 'getObjectsPermissionsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllObjectPermissionCount * @todo Implement testgetAllObjectPermissionCount(). */ - public function testgetAllObjectPermissionCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllObjectPermissionCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllObjectPermissionCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllObjectPermissionCount', $methods ), 'exists method getAllObjectPermissionCount' ); + $r = new ReflectionMethod('processMap', 'getAllObjectPermissionCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtObjectsPermissions * @todo Implement testgetExtObjectsPermissions(). */ - public function testgetExtObjectsPermissions() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtObjectsPermissions', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtObjectsPermissions() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtObjectsPermissions', $methods ), 'exists method getExtObjectsPermissions' ); + $r = new ReflectionMethod('processMap', 'getExtObjectsPermissions'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::objectsPermissionsList * @todo Implement testobjectsPermissionsList(). */ - public function testobjectsPermissionsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'objectsPermissionsList', $methods ), 'seems like this function is outside this class' ); - } + public function testobjectsPermissionsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('objectsPermissionsList', $methods ), 'exists method objectsPermissionsList' ); + $r = new ReflectionMethod('processMap', 'objectsPermissionsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::newObjectPermission * @todo Implement testnewObjectPermission(). */ - public function testnewObjectPermission() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'newObjectPermission', $methods ), 'seems like this function is outside this class' ); - } + public function testnewObjectPermission() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newObjectPermission', $methods ), 'exists method newObjectPermission' ); + $r = new ReflectionMethod('processMap', 'newObjectPermission'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::editObjectPermission * @todo Implement testeditObjectPermission(). */ - public function testeditObjectPermission() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'editObjectPermission', $methods ), 'seems like this function is outside this class' ); - } + public function testeditObjectPermission() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('editObjectPermission', $methods ), 'exists method editObjectPermission' ); + $r = new ReflectionMethod('processMap', 'editObjectPermission'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sOP_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sProcessUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::caseTracker * @todo Implement testcaseTracker(). */ - public function testcaseTracker() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'caseTracker', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseTracker() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseTracker', $methods ), 'exists method caseTracker' ); + $r = new ReflectionMethod('processMap', 'caseTracker'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::caseTrackerObjects * @todo Implement testcaseTrackerObjects(). */ - public function testcaseTrackerObjects() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'caseTrackerObjects', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseTrackerObjects() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseTrackerObjects', $methods ), 'exists method caseTrackerObjects' ); + $r = new ReflectionMethod('processMap', 'caseTrackerObjects'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getCaseTrackerObjectsCriteria * @todo Implement testgetCaseTrackerObjectsCriteria(). */ - public function testgetCaseTrackerObjectsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getCaseTrackerObjectsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseTrackerObjectsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseTrackerObjectsCriteria', $methods ), 'exists method getCaseTrackerObjectsCriteria' ); + $r = new ReflectionMethod('processMap', 'getCaseTrackerObjectsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::availableCaseTrackerObjects * @todo Implement testavailableCaseTrackerObjects(). */ - public function testavailableCaseTrackerObjects() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'availableCaseTrackerObjects', $methods ), 'seems like this function is outside this class' ); - } + public function testavailableCaseTrackerObjects() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('availableCaseTrackerObjects', $methods ), 'exists method availableCaseTrackerObjects' ); + $r = new ReflectionMethod('processMap', 'availableCaseTrackerObjects'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAvailableCaseTrackerObjectsCriteria * @todo Implement testgetAvailableCaseTrackerObjectsCriteria(). */ - public function testgetAvailableCaseTrackerObjectsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAvailableCaseTrackerObjectsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableCaseTrackerObjectsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableCaseTrackerObjectsCriteria', $methods ), 'exists method getAvailableCaseTrackerObjectsCriteria' ); + $r = new ReflectionMethod('processMap', 'getAvailableCaseTrackerObjectsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::assignCaseTrackerObject * @todo Implement testassignCaseTrackerObject(). */ - public function testassignCaseTrackerObject() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'assignCaseTrackerObject', $methods ), 'seems like this function is outside this class' ); - } + public function testassignCaseTrackerObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignCaseTrackerObject', $methods ), 'exists method assignCaseTrackerObject' ); + $r = new ReflectionMethod('processMap', 'assignCaseTrackerObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sObjType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sObjUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::removeCaseTrackerObject * @todo Implement testremoveCaseTrackerObject(). */ - public function testremoveCaseTrackerObject() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'removeCaseTrackerObject', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveCaseTrackerObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeCaseTrackerObject', $methods ), 'exists method removeCaseTrackerObject' ); + $r = new ReflectionMethod('processMap', 'removeCaseTrackerObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCTOUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sProcessUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iPosition'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::upCaseTrackerObject * @todo Implement testupCaseTrackerObject(). */ - public function testupCaseTrackerObject() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'upCaseTrackerObject', $methods ), 'seems like this function is outside this class' ); - } + public function testupCaseTrackerObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upCaseTrackerObject', $methods ), 'exists method upCaseTrackerObject' ); + $r = new ReflectionMethod('processMap', 'upCaseTrackerObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCTOUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sProcessUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iPosition'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::downCaseTrackerObject * @todo Implement testdownCaseTrackerObject(). */ - public function testdownCaseTrackerObject() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'downCaseTrackerObject', $methods ), 'seems like this function is outside this class' ); - } + public function testdownCaseTrackerObject() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('downCaseTrackerObject', $methods ), 'exists method downCaseTrackerObject' ); + $r = new ReflectionMethod('processMap', 'downCaseTrackerObject'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sCTOUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sProcessUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'iPosition'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::processFilesManager * @todo Implement testprocessFilesManager(). */ - public function testprocessFilesManager() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'processFilesManager', $methods ), 'seems like this function is outside this class' ); - } + public function testprocessFilesManager() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('processFilesManager', $methods ), 'exists method processFilesManager' ); + $r = new ReflectionMethod('processMap', 'processFilesManager'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::exploreDirectory * @todo Implement testexploreDirectory(). */ - public function testexploreDirectory() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'exploreDirectory', $methods ), 'seems like this function is outside this class' ); - } + public function testexploreDirectory() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('exploreDirectory', $methods ), 'exists method exploreDirectory' ); + $r = new ReflectionMethod('processMap', 'exploreDirectory'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sMainDirectory'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sCurrentDirectory'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteFile * @todo Implement testdeleteFile(). */ - public function testdeleteFile() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteFile', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteFile', $methods ), 'exists method deleteFile' ); + $r = new ReflectionMethod('processMap', 'deleteFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sMainDirectory'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sCurrentDirectory'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sFile'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteDirectory * @todo Implement testdeleteDirectory(). */ - public function testdeleteDirectory() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteDirectory', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteDirectory() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteDirectory', $methods ), 'exists method deleteDirectory' ); + $r = new ReflectionMethod('processMap', 'deleteDirectory'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sMainDirectory'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sCurrentDirectory'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sDirToDelete'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::downloadFile * @todo Implement testdownloadFile(). */ - public function testdownloadFile() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'downloadFile', $methods ), 'seems like this function is outside this class' ); - } + public function testdownloadFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('downloadFile', $methods ), 'exists method downloadFile' ); + $r = new ReflectionMethod('processMap', 'downloadFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sMainDirectory'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sCurrentDirectory'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sFile'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::addSubProcess * @todo Implement testaddSubProcess(). */ - public function testaddSubProcess() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'addSubProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testaddSubProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('addSubProcess', $methods ), 'exists method addSubProcess' ); + $r = new ReflectionMethod('processMap', 'addSubProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '0'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '0'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::deleteSubProcess * @todo Implement testdeleteSubProcess(). */ - public function testdeleteSubProcess() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'deleteSubProcess', $methods ), 'seems like this function is outside this class' ); - } + public function testdeleteSubProcess() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('deleteSubProcess', $methods ), 'exists method deleteSubProcess' ); + $r = new ReflectionMethod('processMap', 'deleteSubProcess'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::subProcess_Properties * @todo Implement testsubProcess_Properties(). */ - public function testsubProcess_Properties() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'subProcess_Properties', $methods ), 'seems like this function is outside this class' ); - } + public function testsubProcess_Properties() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('subProcess_Properties', $methods ), 'exists method subProcess_Properties' ); + $r = new ReflectionMethod('processMap', 'subProcess_Properties'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::subProcess_TaskIni * @todo Implement testsubProcess_TaskIni(). */ - public function testsubProcess_TaskIni() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'subProcess_TaskIni', $methods ), 'seems like this function is outside this class' ); - } + public function testsubProcess_TaskIni() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('subProcess_TaskIni', $methods ), 'exists method subProcess_TaskIni' ); + $r = new ReflectionMethod('processMap', 'subProcess_TaskIni'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::eventsList * @todo Implement testeventsList(). */ - public function testeventsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'eventsList', $methods ), 'seems like this function is outside this class' ); - } + public function testeventsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('eventsList', $methods ), 'exists method eventsList' ); + $r = new ReflectionMethod('processMap', 'eventsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'type'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getEventsCriteria * @todo Implement testgetEventsCriteria(). */ - public function testgetEventsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getEventsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetEventsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getEventsCriteria', $methods ), 'exists method getEventsCriteria' ); + $r = new ReflectionMethod('processMap', 'getEventsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'EVN_ACTION'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::editProcessNew * @todo Implement testeditProcessNew(). */ - public function testeditProcessNew() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'editProcessNew', $methods ), 'seems like this function is outside this class' ); - } + public function testeditProcessNew() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('editProcessNew', $methods ), 'exists method editProcessNew' ); + $r = new ReflectionMethod('processMap', 'editProcessNew'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::loadProcessCategory * @todo Implement testloadProcessCategory(). */ - public function testloadProcessCategory() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'loadProcessCategory', $methods ), 'seems like this function is outside this class' ); - } + public function testloadProcessCategory() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('loadProcessCategory', $methods ), 'exists method loadProcessCategory' ); + $r = new ReflectionMethod('processMap', 'loadProcessCategory'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveTaskCordinates * @todo Implement testsaveTaskCordinates(). */ - public function testsaveTaskCordinates() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveTaskCordinates', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveTaskCordinates() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveTaskCordinates', $methods ), 'exists method saveTaskCordinates' ); + $r = new ReflectionMethod('processMap', 'saveTaskCordinates'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '110'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '60'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveAnnotationCordinates * @todo Implement testsaveAnnotationCordinates(). */ - public function testsaveAnnotationCordinates() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveAnnotationCordinates', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveAnnotationCordinates() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveAnnotationCordinates', $methods ), 'exists method saveAnnotationCordinates' ); + $r = new ReflectionMethod('processMap', 'saveAnnotationCordinates'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSwimLaneUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '110'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '60'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveEventPosition * @todo Implement testsaveEventPosition(). */ - public function testsaveEventPosition() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveEventPosition', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveEventPosition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveEventPosition', $methods ), 'exists method saveEventPosition' ); + $r = new ReflectionMethod('processMap', 'saveEventPosition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sEventUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iX'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '110'); + $this->assertTrue( $params[2]->getName() == 'iY'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == '60'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllProcesses * @todo Implement testgetAllProcesses(). */ - public function testgetAllProcesses() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllProcesses', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllProcesses() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllProcesses', $methods ), 'exists method getAllProcesses' ); + $r = new ReflectionMethod('processMap', 'getAllProcesses'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getDynaformList * @todo Implement testgetDynaformList(). */ - public function testgetDynaformList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getDynaformList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDynaformList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDynaformList', $methods ), 'exists method getDynaformList' ); + $r = new ReflectionMethod('processMap', 'getDynaformList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::listNewWebEntry * @todo Implement testlistNewWebEntry(). */ - public function testlistNewWebEntry() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'listNewWebEntry', $methods ), 'seems like this function is outside this class' ); - } + public function testlistNewWebEntry() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('listNewWebEntry', $methods ), 'exists method listNewWebEntry' ); + $r = new ReflectionMethod('processMap', 'listNewWebEntry'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sEventUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::usersExtList * @todo Implement testusersExtList(). */ - public function testusersExtList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'usersExtList', $methods ), 'seems like this function is outside this class' ); - } + public function testusersExtList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('usersExtList', $methods ), 'exists method usersExtList' ); + $r = new ReflectionMethod('processMap', 'usersExtList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sTaskUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::caseNewSchedulerList * @todo Implement testcaseNewSchedulerList(). */ - public function testcaseNewSchedulerList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'caseNewSchedulerList', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseNewSchedulerList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseNewSchedulerList', $methods ), 'exists method caseNewSchedulerList' ); + $r = new ReflectionMethod('processMap', 'caseNewSchedulerList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sSchUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllTaskUserCount * @todo Implement testgetAllTaskUserCount(). */ - public function testgetAllTaskUserCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllTaskUserCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllTaskUserCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllTaskUserCount', $methods ), 'exists method getAllTaskUserCount' ); + $r = new ReflectionMethod('processMap', 'getAllTaskUserCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtTaskUsersCriteria * @todo Implement testgetExtTaskUsersCriteria(). */ - public function testgetExtTaskUsersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtTaskUsersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtTaskUsersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtTaskUsersCriteria', $methods ), 'exists method getExtTaskUsersCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtTaskUsersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTaskUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'iType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAvailableExtUsersCriteria * @todo Implement testgetAvailableExtUsersCriteria(). */ - public function testgetAvailableExtUsersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAvailableExtUsersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableExtUsersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableExtUsersCriteria', $methods ), 'exists method getAvailableExtUsersCriteria' ); + $r = new ReflectionMethod('processMap', 'getAvailableExtUsersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtAdditionalTablesList * @todo Implement testgetExtAdditionalTablesList(). */ - public function testgetExtAdditionalTablesList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtAdditionalTablesList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtAdditionalTablesList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtAdditionalTablesList', $methods ), 'exists method getExtAdditionalTablesList' ); + $r = new ReflectionMethod('processMap', 'getExtAdditionalTablesList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTab_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtAvailableBBCriteria * @todo Implement testgetExtAvailableBBCriteria(). */ - public function testgetExtAvailableBBCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtAvailableBBCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtAvailableBBCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtAvailableBBCriteria', $methods ), 'exists method getExtAvailableBBCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtAvailableBBCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllStepCount * @todo Implement testgetAllStepCount(). */ - public function testgetAllStepCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllStepCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllStepCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllStepCount', $methods ), 'exists method getAllStepCount' ); + $r = new ReflectionMethod('processMap', 'getAllStepCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtStepsCriteria * @todo Implement testgetExtStepsCriteria(). */ - public function testgetExtStepsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtStepsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtStepsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtStepsCriteria', $methods ), 'exists method getExtStepsCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtStepsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTaskUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllStepTriggerCount * @todo Implement testgetAllStepTriggerCount(). */ - public function testgetAllStepTriggerCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllStepTriggerCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllStepTriggerCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllStepTriggerCount', $methods ), 'exists method getAllStepTriggerCount' ); + $r = new ReflectionMethod('processMap', 'getAllStepTriggerCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtStepTriggersCriteria * @todo Implement testgetExtStepTriggersCriteria(). */ - public function testgetExtStepTriggersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtStepTriggersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtStepTriggersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtStepTriggersCriteria', $methods ), 'exists method getExtStepTriggersCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtStepTriggersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sStepUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sTaskUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'sType'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtAvailableStepTriggersCriteria * @todo Implement testgetExtAvailableStepTriggersCriteria(). */ - public function testgetExtAvailableStepTriggersCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtAvailableStepTriggersCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtAvailableStepTriggersCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtAvailableStepTriggersCriteria', $methods ), 'exists method getExtAvailableStepTriggersCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtAvailableStepTriggersCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sStepUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sTaskUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllDynaformCount * @todo Implement testgetAllDynaformCount(). */ - public function testgetAllDynaformCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllDynaformCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllDynaformCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllDynaformCount', $methods ), 'exists method getAllDynaformCount' ); + $r = new ReflectionMethod('processMap', 'getAllDynaformCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtDynaformsList * @todo Implement testgetExtDynaformsList(). */ - public function testgetExtDynaformsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtDynaformsList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtDynaformsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtDynaformsList', $methods ), 'exists method getExtDynaformsList' ); + $r = new ReflectionMethod('processMap', 'getExtDynaformsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllInputDocumentCount * @todo Implement testgetAllInputDocumentCount(). */ - public function testgetAllInputDocumentCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllInputDocumentCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllInputDocumentCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllInputDocumentCount', $methods ), 'exists method getAllInputDocumentCount' ); + $r = new ReflectionMethod('processMap', 'getAllInputDocumentCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtInputDocumentsCriteria * @todo Implement testgetExtInputDocumentsCriteria(). */ - public function testgetExtInputDocumentsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtInputDocumentsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtInputDocumentsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtInputDocumentsCriteria', $methods ), 'exists method getExtInputDocumentsCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtInputDocumentsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllOutputDocumentCount * @todo Implement testgetAllOutputDocumentCount(). */ - public function testgetAllOutputDocumentCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllOutputDocumentCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllOutputDocumentCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllOutputDocumentCount', $methods ), 'exists method getAllOutputDocumentCount' ); + $r = new ReflectionMethod('processMap', 'getAllOutputDocumentCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtOutputDocumentsCriteria * @todo Implement testgetExtOutputDocumentsCriteria(). */ - public function testgetExtOutputDocumentsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtOutputDocumentsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtOutputDocumentsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtOutputDocumentsCriteria', $methods ), 'exists method getExtOutputDocumentsCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtOutputDocumentsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::subProcessExtProperties * @todo Implement testsubProcessExtProperties(). */ - public function testsubProcessExtProperties() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'subProcessExtProperties', $methods ), 'seems like this function is outside this class' ); - } + public function testsubProcessExtProperties() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('subProcessExtProperties', $methods ), 'exists method subProcessExtProperties' ); + $r = new ReflectionMethod('processMap', 'subProcessExtProperties'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'sTaskUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'sIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllProcessSupervisorsCount * @todo Implement testgetAllProcessSupervisorsCount(). */ - public function testgetAllProcessSupervisorsCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllProcessSupervisorsCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllProcessSupervisorsCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllProcessSupervisorsCount', $methods ), 'exists method getAllProcessSupervisorsCount' ); + $r = new ReflectionMethod('processMap', 'getAllProcessSupervisorsCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::listExtProcessesSupervisors * @todo Implement testlistExtProcessesSupervisors(). */ - public function testlistExtProcessesSupervisors() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'listExtProcessesSupervisors', $methods ), 'seems like this function is outside this class' ); - } + public function testlistExtProcessesSupervisors() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('listExtProcessesSupervisors', $methods ), 'exists method listExtProcessesSupervisors' ); + $r = new ReflectionMethod('processMap', 'listExtProcessesSupervisors'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::listExtNoProcessesUser * @todo Implement testlistExtNoProcessesUser(). */ - public function testlistExtNoProcessesUser() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'listExtNoProcessesUser', $methods ), 'seems like this function is outside this class' ); - } + public function testlistExtNoProcessesUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('listExtNoProcessesUser', $methods ), 'exists method listExtNoProcessesUser' ); + $r = new ReflectionMethod('processMap', 'listExtNoProcessesUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllSupervisorDynaformsCount * @todo Implement testgetAllSupervisorDynaformsCount(). */ - public function testgetAllSupervisorDynaformsCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllSupervisorDynaformsCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllSupervisorDynaformsCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllSupervisorDynaformsCount', $methods ), 'exists method getAllSupervisorDynaformsCount' ); + $r = new ReflectionMethod('processMap', 'getAllSupervisorDynaformsCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtSupervisorDynaformsList * @todo Implement testgetExtSupervisorDynaformsList(). */ - public function testgetExtSupervisorDynaformsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtSupervisorDynaformsList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtSupervisorDynaformsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtSupervisorDynaformsList', $methods ), 'exists method getExtSupervisorDynaformsList' ); + $r = new ReflectionMethod('processMap', 'getExtSupervisorDynaformsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtAvailableSupervisorDynaformsList * @todo Implement testgetExtAvailableSupervisorDynaformsList(). */ - public function testgetExtAvailableSupervisorDynaformsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtAvailableSupervisorDynaformsList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtAvailableSupervisorDynaformsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtAvailableSupervisorDynaformsList', $methods ), 'exists method getExtAvailableSupervisorDynaformsList' ); + $r = new ReflectionMethod('processMap', 'getExtAvailableSupervisorDynaformsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllSupervisorInputsCount * @todo Implement testgetAllSupervisorInputsCount(). */ - public function testgetAllSupervisorInputsCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllSupervisorInputsCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllSupervisorInputsCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllSupervisorInputsCount', $methods ), 'exists method getAllSupervisorInputsCount' ); + $r = new ReflectionMethod('processMap', 'getAllSupervisorInputsCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtSupervisorInputsList * @todo Implement testgetExtSupervisorInputsList(). */ - public function testgetExtSupervisorInputsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtSupervisorInputsList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtSupervisorInputsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtSupervisorInputsList', $methods ), 'exists method getExtSupervisorInputsList' ); + $r = new ReflectionMethod('processMap', 'getExtSupervisorInputsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtAvailableSupervisorInputsList * @todo Implement testgetExtAvailableSupervisorInputsList(). */ - public function testgetExtAvailableSupervisorInputsList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtAvailableSupervisorInputsList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtAvailableSupervisorInputsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtAvailableSupervisorInputsList', $methods ), 'exists method getExtAvailableSupervisorInputsList' ); + $r = new ReflectionMethod('processMap', 'getExtAvailableSupervisorInputsList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllDbSourceCount * @todo Implement testgetAllDbSourceCount(). */ - public function testgetAllDbSourceCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllDbSourceCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllDbSourceCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllDbSourceCount', $methods ), 'exists method getAllDbSourceCount' ); + $r = new ReflectionMethod('processMap', 'getAllDbSourceCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtCriteriaDBSList * @todo Implement testgetExtCriteriaDBSList(). */ - public function testgetExtCriteriaDBSList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtCriteriaDBSList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtCriteriaDBSList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtCriteriaDBSList', $methods ), 'exists method getExtCriteriaDBSList' ); + $r = new ReflectionMethod('processMap', 'getExtCriteriaDBSList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::newExtObjectPermission * @todo Implement testnewExtObjectPermission(). */ - public function testnewExtObjectPermission() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'newExtObjectPermission', $methods ), 'seems like this function is outside this class' ); - } + public function testnewExtObjectPermission() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newExtObjectPermission', $methods ), 'exists method newExtObjectPermission' ); + $r = new ReflectionMethod('processMap', 'newExtObjectPermission'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sAction'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::ExtcaseTracker * @todo Implement testExtcaseTracker(). */ - public function testExtcaseTracker() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'ExtcaseTracker', $methods ), 'seems like this function is outside this class' ); - } + public function testExtcaseTracker() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('ExtcaseTracker', $methods ), 'exists method ExtcaseTracker' ); + $r = new ReflectionMethod('processMap', 'ExtcaseTracker'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllCaseTrackerObjectCount * @todo Implement testgetAllCaseTrackerObjectCount(). */ - public function testgetAllCaseTrackerObjectCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllCaseTrackerObjectCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllCaseTrackerObjectCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllCaseTrackerObjectCount', $methods ), 'exists method getAllCaseTrackerObjectCount' ); + $r = new ReflectionMethod('processMap', 'getAllCaseTrackerObjectCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtCaseTrackerObjectsCriteria * @todo Implement testgetExtCaseTrackerObjectsCriteria(). */ - public function testgetExtCaseTrackerObjectsCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtCaseTrackerObjectsCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtCaseTrackerObjectsCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtCaseTrackerObjectsCriteria', $methods ), 'exists method getExtCaseTrackerObjectsCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtCaseTrackerObjectsCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAvailableExtCaseTrackerObjects * @todo Implement testgetAvailableExtCaseTrackerObjects(). */ - public function testgetAvailableExtCaseTrackerObjects() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAvailableExtCaseTrackerObjects', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAvailableExtCaseTrackerObjects() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAvailableExtCaseTrackerObjects', $methods ), 'exists method getAvailableExtCaseTrackerObjects' ); + $r = new ReflectionMethod('processMap', 'getAvailableExtCaseTrackerObjects'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllReportTableCount * @todo Implement testgetAllReportTableCount(). */ - public function testgetAllReportTableCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllReportTableCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllReportTableCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllReportTableCount', $methods ), 'exists method getAllReportTableCount' ); + $r = new ReflectionMethod('processMap', 'getAllReportTableCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtReportTables * @todo Implement testgetExtReportTables(). */ - public function testgetExtReportTables() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtReportTables', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtReportTables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtReportTables', $methods ), 'exists method getExtReportTables' ); + $r = new ReflectionMethod('processMap', 'getExtReportTables'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtAvailableUsersList * @todo Implement testgetExtAvailableUsersList(). */ - public function testgetExtAvailableUsersList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtAvailableUsersList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtAvailableUsersList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtAvailableUsersList', $methods ), 'exists method getExtAvailableUsersList' ); + $r = new ReflectionMethod('processMap', 'getExtAvailableUsersList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sTaskUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->assertTrue( $params[1]->getName() == 'iType'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '2'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtTaskUsersAdHocCriteria * @todo Implement testgetExtTaskUsersAdHocCriteria(). */ - public function testgetExtTaskUsersAdHocCriteria() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtTaskUsersAdHocCriteria', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtTaskUsersAdHocCriteria() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtTaskUsersAdHocCriteria', $methods ), 'exists method getExtTaskUsersAdHocCriteria' ); + $r = new ReflectionMethod('processMap', 'getExtTaskUsersAdHocCriteria'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTaskUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'iType'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::editExtObjectPermission * @todo Implement testeditExtObjectPermission(). */ - public function testeditExtObjectPermission() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'editExtObjectPermission', $methods ), 'seems like this function is outside this class' ); - } + public function testeditExtObjectPermission() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('editExtObjectPermission', $methods ), 'exists method editExtObjectPermission' ); + $r = new ReflectionMethod('processMap', 'editExtObjectPermission'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sOP_UID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtusersadhoc * @todo Implement testgetExtusersadhoc(). */ - public function testgetExtusersadhoc() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtusersadhoc', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtusersadhoc() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtusersadhoc', $methods ), 'exists method getExtusersadhoc' ); + $r = new ReflectionMethod('processMap', 'getExtusersadhoc'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'sTaskUID'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveExtddEvents * @todo Implement testsaveExtddEvents(). */ - public function testsaveExtddEvents() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveExtddEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveExtddEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveExtddEvents', $methods ), 'exists method saveExtddEvents' ); + $r = new ReflectionMethod('processMap', 'saveExtddEvents'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::saveExtEvents * @todo Implement testsaveExtEvents(). */ - public function testsaveExtEvents() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'saveExtEvents', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveExtEvents() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveExtEvents', $methods ), 'exists method saveExtEvents' ); + $r = new ReflectionMethod('processMap', 'saveExtEvents'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'oData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllTriggersCount * @todo Implement testgetAllTriggersCount(). */ - public function testgetAllTriggersCount() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllTriggersCount', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllTriggersCount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllTriggersCount', $methods ), 'exists method getAllTriggersCount' ); + $r = new ReflectionMethod('processMap', 'getAllTriggersCount'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getExtTriggersList * @todo Implement testgetExtTriggersList(). */ - public function testgetExtTriggersList() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getExtTriggersList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetExtTriggersList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getExtTriggersList', $methods ), 'exists method getExtTriggersList' ); + $r = new ReflectionMethod('processMap', 'getExtTriggersList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'start'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'limit'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sProcessUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers processMap::getAllInputDocsByTask * @todo Implement testgetAllInputDocsByTask(). */ - public function testgetAllInputDocsByTask() - { - if (class_exists('processMap')) { - $methods = get_class_methods( 'processMap'); - $this->assertTrue( in_array( 'getAllInputDocsByTask', $methods ), 'seems like this function is outside this class' ); - } + public function testgetAllInputDocsByTask() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getAllInputDocsByTask', $methods ), 'exists method getAllInputDocsByTask' ); + $r = new ReflectionMethod('processMap', 'getAllInputDocsByTask'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sPRO_UID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classpropelTableTest.php b/tests/automated/workflow/engine/classes/classpropelTableTest.php index db14a4752..1bf6cc050 100644 --- a/tests/automated/workflow/engine/classes/classpropelTableTest.php +++ b/tests/automated/workflow/engine/classes/classpropelTableTest.php @@ -1,111 +1,192 @@ -object = new propelTable(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 8); + } - class classpropelTableTest extends PHPUnit_Framework_TestCase - { /** * @covers propelTable::prepareQuery * @todo Implement testprepareQuery(). */ - public function testprepareQuery() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'prepareQuery', $methods ), 'seems like this function is outside this class' ); - } + public function testprepareQuery() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers propelTable::setupFromXmlform * @todo Implement testsetupFromXmlform(). */ - public function testsetupFromXmlform() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'setupFromXmlform', $methods ), 'seems like this function is outside this class' ); - } + public function testsetupFromXmlform() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers propelTable::count * @todo Implement testcount(). */ - public function testcount() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'count', $methods ), 'seems like this function is outside this class' ); - } + public function testcount() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('count', $methods ), 'exists method count' ); + $r = new ReflectionMethod('propelTable', 'count'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers propelTable::renderTitle * @todo Implement testrenderTitle(). */ - public function testrenderTitle() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'renderTitle', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTitle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('renderTitle', $methods ), 'exists method renderTitle' ); + $r = new ReflectionMethod('propelTable', 'renderTitle'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers propelTable::renderField * @todo Implement testrenderField(). */ - public function testrenderField() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'renderField', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderField() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers propelTable::defaultStyle * @todo Implement testdefaultStyle(). */ - public function testdefaultStyle() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'defaultStyle', $methods ), 'seems like this function is outside this class' ); - } + public function testdefaultStyle() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('defaultStyle', $methods ), 'exists method defaultStyle' ); + $r = new ReflectionMethod('propelTable', 'defaultStyle'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers propelTable::renderTable * @todo Implement testrenderTable(). */ - public function testrenderTable() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); - } + public function testrenderTable() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers propelTable::printForm * @todo Implement testprintForm(). */ - public function testprintForm() - { - if (class_exists('propelTable')) { - $methods = get_class_methods( 'propelTable'); - $this->assertTrue( in_array( 'printForm', $methods ), 'seems like this function is outside this class' ); - } + public function testprintForm() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classredirectDetailTest.php b/tests/automated/workflow/engine/classes/classredirectDetailTest.php index dde0e0da7..77dee5548 100644 --- a/tests/automated/workflow/engine/classes/classredirectDetailTest.php +++ b/tests/automated/workflow/engine/classes/classredirectDetailTest.php @@ -1,27 +1,72 @@ -object = new redirectDetail(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classredirectDetailTest extends PHPUnit_Framework_TestCase - { /** * @covers redirectDetail::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('redirectDetail')) { - $methods = get_class_methods( 'redirectDetail'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('redirectDetail', '__construct'); + $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() == 'sRoleCode'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sPathMethod'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classreplacementLogoTest.php b/tests/automated/workflow/engine/classes/classreplacementLogoTest.php index f113a4281..1f4201a27 100644 --- a/tests/automated/workflow/engine/classes/classreplacementLogoTest.php +++ b/tests/automated/workflow/engine/classes/classreplacementLogoTest.php @@ -1,51 +1,112 @@ -object = new replacementLogo(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 3); + } - class classreplacementLogoTest extends PHPUnit_Framework_TestCase - { /** * @covers replacementLogo::replacementLogo * @todo Implement testreplacementLogo(). */ - public function testreplacementLogo() - { - if (class_exists('replacementLogo')) { - $methods = get_class_methods( 'replacementLogo'); - $this->assertTrue( in_array( 'replacementLogo', $methods ), 'seems like this function is outside this class' ); - } + public function testreplacementLogo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('replacementLogo', $methods ), 'exists method replacementLogo' ); + $r = new ReflectionMethod('replacementLogo', 'replacementLogo'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers replacementLogo::upLoadFile * @todo Implement testupLoadFile(). */ - public function testupLoadFile() - { - if (class_exists('replacementLogo')) { - $methods = get_class_methods( 'replacementLogo'); - $this->assertTrue( in_array( 'upLoadFile', $methods ), 'seems like this function is outside this class' ); - } + public function testupLoadFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upLoadFile', $methods ), 'exists method upLoadFile' ); + $r = new ReflectionMethod('replacementLogo', 'upLoadFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dirUpload'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'namefile'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'typefile'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'errorfile'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'tpnfile'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'formf'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers replacementLogo::getNameLogo * @todo Implement testgetNameLogo(). */ - public function testgetNameLogo() - { - if (class_exists('replacementLogo')) { - $methods = get_class_methods( 'replacementLogo'); - $this->assertTrue( in_array( 'getNameLogo', $methods ), 'seems like this function is outside this class' ); - } + public function testgetNameLogo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getNameLogo', $methods ), 'exists method getNameLogo' ); + $r = new ReflectionMethod('replacementLogo', 'getNameLogo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'usrUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classserverConfTest.php b/tests/automated/workflow/engine/classes/classserverConfTest.php index 9681e237e..124ff2484 100644 --- a/tests/automated/workflow/engine/classes/classserverConfTest.php +++ b/tests/automated/workflow/engine/classes/classserverConfTest.php @@ -1,291 +1,428 @@ -object = new serverConf(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 23); + } - class classserverConfTest extends PHPUnit_Framework_TestCase - { /** * @covers serverConf::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('serverConf', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getSingleton * @todo Implement testgetSingleton(). */ - public function testgetSingleton() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSingleton() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' ); + $r = new ReflectionMethod('serverConf', 'getSingleton'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::serializeInstance * @todo Implement testserializeInstance(). */ - public function testserializeInstance() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'serializeInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testserializeInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('serializeInstance', $methods ), 'exists method serializeInstance' ); + $r = new ReflectionMethod('serverConf', 'serializeInstance'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::unSerializeInstance * @todo Implement testunSerializeInstance(). */ - public function testunSerializeInstance() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'unSerializeInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testunSerializeInstance() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::saveSingleton * @todo Implement testsaveSingleton(). */ - public function testsaveSingleton() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'saveSingleton', $methods ), 'seems like this function is outside this class' ); - } + public function testsaveSingleton() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('saveSingleton', $methods ), 'exists method saveSingleton' ); + $r = new ReflectionMethod('serverConf', 'saveSingleton'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::setProperty * @todo Implement testsetProperty(). */ - public function testsetProperty() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'setProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testsetProperty() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::unsetProperty * @todo Implement testunsetProperty(). */ - public function testunsetProperty() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'unsetProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testunsetProperty() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getProperty * @todo Implement testgetProperty(). */ - public function testgetProperty() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testgetProperty() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::sucessfulLogin * @todo Implement testsucessfulLogin(). */ - public function testsucessfulLogin() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'sucessfulLogin', $methods ), 'seems like this function is outside this class' ); - } + public function testsucessfulLogin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sucessfulLogin', $methods ), 'exists method sucessfulLogin' ); + $r = new ReflectionMethod('serverConf', 'sucessfulLogin'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::setWsInfo * @todo Implement testsetWsInfo(). */ - public function testsetWsInfo() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'setWsInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testsetWsInfo() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::changeStatusWS * @todo Implement testchangeStatusWS(). */ - public function testchangeStatusWS() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'changeStatusWS', $methods ), 'seems like this function is outside this class' ); - } + public function testchangeStatusWS() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::isWSDisabled * @todo Implement testisWSDisabled(). */ - public function testisWSDisabled() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'isWSDisabled', $methods ), 'seems like this function is outside this class' ); - } + public function testisWSDisabled() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::checkIfHostNameHasChanged * @todo Implement testcheckIfHostNameHasChanged(). */ - public function testcheckIfHostNameHasChanged() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'checkIfHostNameHasChanged', $methods ), 'seems like this function is outside this class' ); - } + public function testcheckIfHostNameHasChanged() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('checkIfHostNameHasChanged', $methods ), 'exists method checkIfHostNameHasChanged' ); + $r = new ReflectionMethod('serverConf', 'checkIfHostNameHasChanged'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getWSList * @todo Implement testgetWSList(). */ - public function testgetWSList() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getWSList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetWSList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getWSList', $methods ), 'exists method getWSList' ); + $r = new ReflectionMethod('serverConf', 'getWSList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getWorkspaceInfo * @todo Implement testgetWorkspaceInfo(). */ - public function testgetWorkspaceInfo() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getWorkspaceInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testgetWorkspaceInfo() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getPluginsList * @todo Implement testgetPluginsList(). */ - public function testgetPluginsList() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getPluginsList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPluginsList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPluginsList', $methods ), 'exists method getPluginsList' ); + $r = new ReflectionMethod('serverConf', 'getPluginsList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::addPlugin * @todo Implement testaddPlugin(). */ - public function testaddPlugin() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'addPlugin', $methods ), 'seems like this function is outside this class' ); - } + public function testaddPlugin() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getDBVersion * @todo Implement testgetDBVersion(). */ - public function testgetDBVersion() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getDBVersion', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDBVersion() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDBVersion', $methods ), 'exists method getDBVersion' ); + $r = new ReflectionMethod('serverConf', 'getDBVersion'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::resetLogins * @todo Implement testresetLogins(). */ - public function testresetLogins() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'resetLogins', $methods ), 'seems like this function is outside this class' ); - } + public function testresetLogins() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('resetLogins', $methods ), 'exists method resetLogins' ); + $r = new ReflectionMethod('serverConf', 'resetLogins'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getLanDirection * @todo Implement testgetLanDirection(). */ - public function testgetLanDirection() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getLanDirection', $methods ), 'seems like this function is outside this class' ); - } + public function testgetLanDirection() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getLanDirection', $methods ), 'exists method getLanDirection' ); + $r = new ReflectionMethod('serverConf', 'getLanDirection'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::setHeartbeatProperty * @todo Implement testsetHeartbeatProperty(). */ - public function testsetHeartbeatProperty() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'setHeartbeatProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testsetHeartbeatProperty() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::unsetHeartbeatProperty * @todo Implement testunsetHeartbeatProperty(). */ - public function testunsetHeartbeatProperty() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'unsetHeartbeatProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testunsetHeartbeatProperty() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers serverConf::getHeartbeatProperty * @todo Implement testgetHeartbeatProperty(). */ - public function testgetHeartbeatProperty() - { - if (class_exists('serverConf')) { - $methods = get_class_methods( 'serverConf'); - $this->assertTrue( in_array( 'getHeartbeatProperty', $methods ), 'seems like this function is outside this class' ); - } + public function testgetHeartbeatProperty() + { + $methods = get_class_methods($this->object); + $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->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classspoolRunTest.php b/tests/automated/workflow/engine/classes/classspoolRunTest.php index da2a736ce..f1e1f59bb 100644 --- a/tests/automated/workflow/engine/classes/classspoolRunTest.php +++ b/tests/automated/workflow/engine/classes/classspoolRunTest.php @@ -1,171 +1,219 @@ -object = new spoolRun(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 9); + } - class classspoolRunTest extends PHPUnit_Framework_TestCase - { /** * @covers spoolRun::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('spoolRun', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers spoolRun::getSpoolFilesList * @todo Implement testgetSpoolFilesList(). */ - public function testgetSpoolFilesList() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'getSpoolFilesList', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSpoolFilesList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSpoolFilesList', $methods ), 'exists method getSpoolFilesList' ); + $r = new ReflectionMethod('spoolRun', 'getSpoolFilesList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers spoolRun::create * @todo Implement testcreate(). */ - public function testcreate() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'create', $methods ), 'seems like this function is outside this class' ); - } + public function testcreate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('create', $methods ), 'exists method create' ); + $r = new ReflectionMethod('spoolRun', 'create'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aData'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers spoolRun::setConfig * @todo Implement testsetConfig(). */ - public function testsetConfig() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'setConfig', $methods ), 'seems like this function is outside this class' ); - } + public function testsetConfig() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setConfig', $methods ), 'exists method setConfig' ); + $r = new ReflectionMethod('spoolRun', 'setConfig'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'aConfig'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers spoolRun::setData * @todo Implement testsetData(). */ - public function testsetData() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'setData', $methods ), 'seems like this function is outside this class' ); - } + public function testsetData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('setData', $methods ), 'exists method setData' ); + $r = new ReflectionMethod('spoolRun', 'setData'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sAppMsgUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sSubject'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFrom'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sTo'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sBody'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'sDate'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == ''); + $this->assertTrue( $params[6]->getName() == 'sCC'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->assertTrue( $params[7]->getName() == 'sBCC'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == ''); + $this->assertTrue( $params[8]->getName() == 'sTemplate'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == ''); + $this->assertTrue( $params[9]->getName() == 'aAttachment'); + $this->assertTrue( $params[9]->isArray() == false); + $this->assertTrue( $params[9]->isOptional () == true); + $this->assertTrue( $params[9]->getDefaultValue() == 'Array'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers spoolRun::sendMail * @todo Implement testsendMail(). */ - public function testsendMail() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'sendMail', $methods ), 'seems like this function is outside this class' ); - } - } + public function testsendMail() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendMail', $methods ), 'exists method sendMail' ); + $r = new ReflectionMethod('spoolRun', 'sendMail'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers spoolRun::updateSpoolStatus - * @todo Implement testupdateSpoolStatus(). - */ - public function testupdateSpoolStatus() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'updateSpoolStatus', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers spoolRun::handleFrom - * @todo Implement testhandleFrom(). - */ - public function testhandleFrom() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'handleFrom', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers spoolRun::handleEnvelopeTo - * @todo Implement testhandleEnvelopeTo(). - */ - public function testhandleEnvelopeTo() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'handleEnvelopeTo', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers spoolRun::handleMail - * @todo Implement testhandleMail(). - */ - public function testhandleMail() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'handleMail', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers spoolRun::resendEmails * @todo Implement testresendEmails(). */ - public function testresendEmails() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'resendEmails', $methods ), 'seems like this function is outside this class' ); - } + public function testresendEmails() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('resendEmails', $methods ), 'exists method resendEmails' ); + $r = new ReflectionMethod('spoolRun', 'resendEmails'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers spoolRun::getWarnings * @todo Implement testgetWarnings(). */ - public function testgetWarnings() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'getWarnings', $methods ), 'seems like this function is outside this class' ); - } + public function testgetWarnings() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getWarnings', $methods ), 'exists method getWarnings' ); + $r = new ReflectionMethod('spoolRun', 'getWarnings'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers spoolRun::db_insert * @todo Implement testdb_insert(). */ - public function testdb_insert() - { - if (class_exists('spoolRun')) { - $methods = get_class_methods( 'spoolRun'); - $this->assertTrue( in_array( 'db_insert', $methods ), 'seems like this function is outside this class' ); - } + public function testdb_insert() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('db_insert', $methods ), 'exists method db_insert' ); + $r = new ReflectionMethod('spoolRun', 'db_insert'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'db_spool'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classstepDetailTest.php b/tests/automated/workflow/engine/classes/classstepDetailTest.php index 74b5d2fac..6479875c8 100644 --- a/tests/automated/workflow/engine/classes/classstepDetailTest.php +++ b/tests/automated/workflow/engine/classes/classstepDetailTest.php @@ -1,27 +1,78 @@ -object = new stepDetail(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classstepDetailTest extends PHPUnit_Framework_TestCase - { /** * @covers stepDetail::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('stepDetail')) { - $methods = get_class_methods( 'stepDetail'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('stepDetail', '__construct'); + $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() == 'sStepId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sStepName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sStepTitle'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sSetupStepPage'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classtar_fileTest.php b/tests/automated/workflow/engine/classes/classtar_fileTest.php index 4c92f1af3..f46cb36b3 100644 --- a/tests/automated/workflow/engine/classes/classtar_fileTest.php +++ b/tests/automated/workflow/engine/classes/classtar_fileTest.php @@ -1,63 +1,108 @@ -object = new tar_file(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 16); + } - class classtar_fileTest extends PHPUnit_Framework_TestCase - { /** * @covers tar_file::tar_file * @todo Implement testtar_file(). */ - public function testtar_file() - { - if (class_exists('tar_file')) { - $methods = get_class_methods( 'tar_file'); - $this->assertTrue( in_array( 'tar_file', $methods ), 'seems like this function is outside this class' ); - } + public function testtar_file() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('tar_file', $methods ), 'exists method tar_file' ); + $r = new ReflectionMethod('tar_file', 'tar_file'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers tar_file::create_tar * @todo Implement testcreate_tar(). */ - public function testcreate_tar() - { - if (class_exists('tar_file')) { - $methods = get_class_methods( 'tar_file'); - $this->assertTrue( in_array( 'create_tar', $methods ), 'seems like this function is outside this class' ); - } + public function testcreate_tar() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('create_tar', $methods ), 'exists method create_tar' ); + $r = new ReflectionMethod('tar_file', 'create_tar'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers tar_file::extract_files * @todo Implement testextract_files(). */ - public function testextract_files() - { - if (class_exists('tar_file')) { - $methods = get_class_methods( 'tar_file'); - $this->assertTrue( in_array( 'extract_files', $methods ), 'seems like this function is outside this class' ); - } + public function testextract_files() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('extract_files', $methods ), 'exists method extract_files' ); + $r = new ReflectionMethod('tar_file', 'extract_files'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers tar_file::open_archive * @todo Implement testopen_archive(). */ - public function testopen_archive() - { - if (class_exists('tar_file')) { - $methods = get_class_methods( 'tar_file'); - $this->assertTrue( in_array( 'open_archive', $methods ), 'seems like this function is outside this class' ); - } + public function testopen_archive() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('open_archive', $methods ), 'exists method open_archive' ); + $r = new ReflectionMethod('tar_file', 'open_archive'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classtaskExtendedPropertyTest.php b/tests/automated/workflow/engine/classes/classtaskExtendedPropertyTest.php index 859aa426f..62c196333 100644 --- a/tests/automated/workflow/engine/classes/classtaskExtendedPropertyTest.php +++ b/tests/automated/workflow/engine/classes/classtaskExtendedPropertyTest.php @@ -1,27 +1,75 @@ -object = new taskExtendedProperty(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classtaskExtendedPropertyTest extends PHPUnit_Framework_TestCase - { /** * @covers taskExtendedProperty::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('taskExtendedProperty')) { - $methods = get_class_methods( 'taskExtendedProperty'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('taskExtendedProperty', '__construct'); + $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() == 'sPage'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sIcon'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classtoolbarDetailTest.php b/tests/automated/workflow/engine/classes/classtoolbarDetailTest.php index 595f4fa85..ddfd0699d 100644 --- a/tests/automated/workflow/engine/classes/classtoolbarDetailTest.php +++ b/tests/automated/workflow/engine/classes/classtoolbarDetailTest.php @@ -1,27 +1,72 @@ -object = new toolbarDetail(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classtoolbarDetailTest extends PHPUnit_Framework_TestCase - { /** * @covers toolbarDetail::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('toolbarDetail')) { - $methods = get_class_methods( 'toolbarDetail'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('toolbarDetail', '__construct'); + $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() == 'sToolbarId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFilename'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classtriggerDetailTest.php b/tests/automated/workflow/engine/classes/classtriggerDetailTest.php index 43acb6d4e..80291fb2c 100644 --- a/tests/automated/workflow/engine/classes/classtriggerDetailTest.php +++ b/tests/automated/workflow/engine/classes/classtriggerDetailTest.php @@ -1,27 +1,72 @@ -object = new triggerDetail(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classtriggerDetailTest extends PHPUnit_Framework_TestCase - { /** * @covers triggerDetail::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('triggerDetail')) { - $methods = get_class_methods( 'triggerDetail'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('triggerDetail', '__construct'); + $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() == 'sTriggerId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTriggerName'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classtriggerLibraryTest.php b/tests/automated/workflow/engine/classes/classtriggerLibraryTest.php index 45ea5aea7..55f7fc1c0 100644 --- a/tests/automated/workflow/engine/classes/classtriggerLibraryTest.php +++ b/tests/automated/workflow/engine/classes/classtriggerLibraryTest.php @@ -1,123 +1,190 @@ -object = new triggerLibrary(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 9); + } - class classtriggerLibraryTest extends PHPUnit_Framework_TestCase - { /** * @covers triggerLibrary::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('triggerLibrary', '__construct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::getSingleton * @todo Implement testgetSingleton(). */ - public function testgetSingleton() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSingleton() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' ); + $r = new ReflectionMethod('triggerLibrary', 'getSingleton'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::serializeInstance * @todo Implement testserializeInstance(). */ - public function testserializeInstance() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( 'serializeInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testserializeInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('serializeInstance', $methods ), 'exists method serializeInstance' ); + $r = new ReflectionMethod('triggerLibrary', 'serializeInstance'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::unSerializeInstance * @todo Implement testunSerializeInstance(). */ - public function testunSerializeInstance() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( 'unSerializeInstance', $methods ), 'seems like this function is outside this class' ); - } + public function testunSerializeInstance() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unSerializeInstance', $methods ), 'exists method unSerializeInstance' ); + $r = new ReflectionMethod('triggerLibrary', 'unSerializeInstance'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'serialized'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::registerFunctionsFileToLibrary * @todo Implement testregisterFunctionsFileToLibrary(). */ - public function testregisterFunctionsFileToLibrary() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( 'registerFunctionsFileToLibrary', $methods ), 'seems like this function is outside this class' ); - } + public function testregisterFunctionsFileToLibrary() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('registerFunctionsFileToLibrary', $methods ), 'exists method registerFunctionsFileToLibrary' ); + $r = new ReflectionMethod('triggerLibrary', 'registerFunctionsFileToLibrary'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filePath'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'libraryName'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::getMethodsFromLibraryFile * @todo Implement testgetMethodsFromLibraryFile(). */ - public function testgetMethodsFromLibraryFile() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( 'getMethodsFromLibraryFile', $methods ), 'seems like this function is outside this class' ); - } + public function testgetMethodsFromLibraryFile() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getMethodsFromLibraryFile', $methods ), 'exists method getMethodsFromLibraryFile' ); + $r = new ReflectionMethod('triggerLibrary', 'getMethodsFromLibraryFile'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'file'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::getRegisteredClasses * @todo Implement testgetRegisteredClasses(). */ - public function testgetRegisteredClasses() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( 'getRegisteredClasses', $methods ), 'seems like this function is outside this class' ); - } + public function testgetRegisteredClasses() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getRegisteredClasses', $methods ), 'exists method getRegisteredClasses' ); + $r = new ReflectionMethod('triggerLibrary', 'getRegisteredClasses'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::getLibraryDefinition * @todo Implement testgetLibraryDefinition(). */ - public function testgetLibraryDefinition() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( 'getLibraryDefinition', $methods ), 'seems like this function is outside this class' ); - } + public function testgetLibraryDefinition() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getLibraryDefinition', $methods ), 'exists method getLibraryDefinition' ); + $r = new ReflectionMethod('triggerLibrary', 'getLibraryDefinition'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'libraryClassName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers triggerLibrary::__destruct * @todo Implement test__destruct(). */ - public function test__destruct() - { - if (class_exists('triggerLibrary')) { - $methods = get_class_methods( 'triggerLibrary'); - $this->assertTrue( in_array( '__destruct', $methods ), 'seems like this function is outside this class' ); - } + public function test__destruct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__destruct', $methods ), 'exists method __destruct' ); + $r = new ReflectionMethod('triggerLibrary', '__destruct'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classuploadDocumentDataTest.php b/tests/automated/workflow/engine/classes/classuploadDocumentDataTest.php index 0166f9967..3865e0086 100644 --- a/tests/automated/workflow/engine/classes/classuploadDocumentDataTest.php +++ b/tests/automated/workflow/engine/classes/classuploadDocumentDataTest.php @@ -1,27 +1,82 @@ -object = new uploadDocumentData(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classuploadDocumentDataTest extends PHPUnit_Framework_TestCase - { /** * @covers uploadDocumentData::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('uploadDocumentData')) { - $methods = get_class_methods( 'uploadDocumentData'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('uploadDocumentData', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUserUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sFilename'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sFileTitle'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sDocumentUid'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'iVersion'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == true); + $this->assertTrue( $params[5]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classworkspaceToolsTest.php b/tests/automated/workflow/engine/classes/classworkspaceToolsTest.php index 0994c12ae..f0e5e32df 100644 --- a/tests/automated/workflow/engine/classes/classworkspaceToolsTest.php +++ b/tests/automated/workflow/engine/classes/classworkspaceToolsTest.php @@ -1,423 +1,527 @@ -object = new workspaceTools(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 27); + } - class classworkspaceToolsTest extends PHPUnit_Framework_TestCase - { /** * @covers workspaceTools::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('workspaceTools', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'workspaceName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::workspaceExists * @todo Implement testworkspaceExists(). */ - public function testworkspaceExists() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'workspaceExists', $methods ), 'seems like this function is outside this class' ); - } + public function testworkspaceExists() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('workspaceExists', $methods ), 'exists method workspaceExists' ); + $r = new ReflectionMethod('workspaceTools', 'workspaceExists'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::upgrade * @todo Implement testupgrade(). */ - public function testupgrade() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'upgrade', $methods ), 'seems like this function is outside this class' ); - } + public function testupgrade() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgrade', $methods ), 'exists method upgrade' ); + $r = new ReflectionMethod('workspaceTools', 'upgrade'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'first'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::getDBInfo * @todo Implement testgetDBInfo(). */ - public function testgetDBInfo() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'getDBInfo', $methods ), 'seems like this function is outside this class' ); - } - } + public function testgetDBInfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDBInfo', $methods ), 'exists method getDBInfo' ); + $r = new ReflectionMethod('workspaceTools', 'getDBInfo'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers workspaceTools::resetDBInfoCallback - * @todo Implement testresetDBInfoCallback(). - */ - public function testresetDBInfoCallback() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'resetDBInfoCallback', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers workspaceTools::resetDBInfo * @todo Implement testresetDBInfo(). */ - public function testresetDBInfo() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'resetDBInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testresetDBInfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('resetDBInfo', $methods ), 'exists method resetDBInfo' ); + $r = new ReflectionMethod('workspaceTools', 'resetDBInfo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'newHost'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'resetDBNames'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::getDBCredentials * @todo Implement testgetDBCredentials(). */ - public function testgetDBCredentials() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'getDBCredentials', $methods ), 'seems like this function is outside this class' ); - } + public function testgetDBCredentials() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getDBCredentials', $methods ), 'exists method getDBCredentials' ); + $r = new ReflectionMethod('workspaceTools', 'getDBCredentials'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'dbName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::initPropel * @todo Implement testinitPropel(). */ - public function testinitPropel() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'initPropel', $methods ), 'seems like this function is outside this class' ); - } - } + public function testinitPropel() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('initPropel', $methods ), 'exists method initPropel' ); + $r = new ReflectionMethod('workspaceTools', 'initPropel'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'root'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers workspaceTools::closePropel - * @todo Implement testclosePropel(). - */ - public function testclosePropel() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'closePropel', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers workspaceTools::upgradeTranslation * @todo Implement testupgradeTranslation(). */ - public function testupgradeTranslation() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'upgradeTranslation', $methods ), 'seems like this function is outside this class' ); - } - } + public function testupgradeTranslation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradeTranslation', $methods ), 'exists method upgradeTranslation' ); + $r = new ReflectionMethod('workspaceTools', 'upgradeTranslation'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'first'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers workspaceTools::getDatabase - * @todo Implement testgetDatabase(). - */ - public function testgetDatabase() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'getDatabase', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers workspaceTools::closeDatabase - * @todo Implement testcloseDatabase(). - */ - public function testcloseDatabase() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'closeDatabase', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers workspaceTools::close * @todo Implement testclose(). */ - public function testclose() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' ); - } + public function testclose() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('close', $methods ), 'exists method close' ); + $r = new ReflectionMethod('workspaceTools', 'close'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::getSchema * @todo Implement testgetSchema(). */ - public function testgetSchema() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'getSchema', $methods ), 'seems like this function is outside this class' ); - } + public function testgetSchema() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getSchema', $methods ), 'exists method getSchema' ); + $r = new ReflectionMethod('workspaceTools', 'getSchema'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::upgradeCacheView * @todo Implement testupgradeCacheView(). */ - public function testupgradeCacheView() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'upgradeCacheView', $methods ), 'seems like this function is outside this class' ); - } + public function testupgradeCacheView() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradeCacheView', $methods ), 'exists method upgradeCacheView' ); + $r = new ReflectionMethod('workspaceTools', 'upgradeCacheView'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fill'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::upgradePluginsDatabase * @todo Implement testupgradePluginsDatabase(). */ - public function testupgradePluginsDatabase() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'upgradePluginsDatabase', $methods ), 'seems like this function is outside this class' ); - } + public function testupgradePluginsDatabase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradePluginsDatabase', $methods ), 'exists method upgradePluginsDatabase' ); + $r = new ReflectionMethod('workspaceTools', 'upgradePluginsDatabase'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::upgradeDatabase * @todo Implement testupgradeDatabase(). */ - public function testupgradeDatabase() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'upgradeDatabase', $methods ), 'seems like this function is outside this class' ); - } + public function testupgradeDatabase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradeDatabase', $methods ), 'exists method upgradeDatabase' ); + $r = new ReflectionMethod('workspaceTools', 'upgradeDatabase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'checkOnly'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::upgradeSchema * @todo Implement testupgradeSchema(). */ - public function testupgradeSchema() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'upgradeSchema', $methods ), 'seems like this function is outside this class' ); - } + public function testupgradeSchema() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradeSchema', $methods ), 'exists method upgradeSchema' ); + $r = new ReflectionMethod('workspaceTools', 'upgradeSchema'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'schema'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'checkOnly'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::upgradeData * @todo Implement testupgradeData(). */ - public function testupgradeData() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'upgradeData', $methods ), 'seems like this function is outside this class' ); - } + public function testupgradeData() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('upgradeData', $methods ), 'exists method upgradeData' ); + $r = new ReflectionMethod('workspaceTools', 'upgradeData'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::updateThisRegistry * @todo Implement testupdateThisRegistry(). */ - public function testupdateThisRegistry() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'updateThisRegistry', $methods ), 'seems like this function is outside this class' ); - } + public function testupdateThisRegistry() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('updateThisRegistry', $methods ), 'exists method updateThisRegistry' ); + $r = new ReflectionMethod('workspaceTools', 'updateThisRegistry'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'data'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::getMetadata * @todo Implement testgetMetadata(). */ - public function testgetMetadata() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'getMetadata', $methods ), 'seems like this function is outside this class' ); - } + public function testgetMetadata() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getMetadata', $methods ), 'exists method getMetadata' ); + $r = new ReflectionMethod('workspaceTools', 'getMetadata'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::printSysInfo * @todo Implement testprintSysInfo(). */ - public function testprintSysInfo() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'printSysInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testprintSysInfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printSysInfo', $methods ), 'exists method printSysInfo' ); + $r = new ReflectionMethod('workspaceTools', 'printSysInfo'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::printInfo * @todo Implement testprintInfo(). */ - public function testprintInfo() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'printInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testprintInfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printInfo', $methods ), 'exists method printInfo' ); + $r = new ReflectionMethod('workspaceTools', 'printInfo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'fields'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::printMetadata * @todo Implement testprintMetadata(). */ - public function testprintMetadata() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'printMetadata', $methods ), 'seems like this function is outside this class' ); - } + public function testprintMetadata() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('printMetadata', $methods ), 'exists method printMetadata' ); + $r = new ReflectionMethod('workspaceTools', 'printMetadata'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'printSysInfo'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::exportDatabase * @todo Implement testexportDatabase(). */ - public function testexportDatabase() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'exportDatabase', $methods ), 'seems like this function is outside this class' ); - } - } + public function testexportDatabase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('exportDatabase', $methods ), 'exists method exportDatabase' ); + $r = new ReflectionMethod('workspaceTools', 'exportDatabase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'path'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers workspaceTools::addToBackup - * @todo Implement testaddToBackup(). - */ - public function testaddToBackup() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'addToBackup', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers workspaceTools::createBackup * @todo Implement testcreateBackup(). */ - public function testcreateBackup() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'createBackup', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateBackup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createBackup', $methods ), 'exists method createBackup' ); + $r = new ReflectionMethod('workspaceTools', 'createBackup'); + $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() == 'compress'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::backup * @todo Implement testbackup(). */ - public function testbackup() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'backup', $methods ), 'seems like this function is outside this class' ); - } - } + public function testbackup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('backup', $methods ), 'exists method backup' ); + $r = new ReflectionMethod('workspaceTools', 'backup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'backupFile'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'compress'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); - /** - * @covers workspaceTools::createDBUser - * @todo Implement testcreateDBUser(). - */ - public function testcreateDBUser() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'createDBUser', $methods ), 'seems like this function is outside this class' ); - } - } - - /** - * @covers workspaceTools::executeSQLScript - * @todo Implement testexecuteSQLScript(). - */ - public function testexecuteSQLScript() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'executeSQLScript', $methods ), 'seems like this function is outside this class' ); - } } /** * @covers workspaceTools::restoreLegacy * @todo Implement testrestoreLegacy(). */ - public function testrestoreLegacy() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'restoreLegacy', $methods ), 'seems like this function is outside this class' ); - } + public function testrestoreLegacy() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('restoreLegacy', $methods ), 'exists method restoreLegacy' ); + $r = new ReflectionMethod('workspaceTools', 'restoreLegacy'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'directory'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::getBackupInfo * @todo Implement testgetBackupInfo(). */ - public function testgetBackupInfo() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'getBackupInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testgetBackupInfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getBackupInfo', $methods ), 'exists method getBackupInfo' ); + $r = new ReflectionMethod('workspaceTools', 'getBackupInfo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'filename'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::dirPerms * @todo Implement testdirPerms(). */ - public function testdirPerms() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'dirPerms', $methods ), 'seems like this function is outside this class' ); - } + public function testdirPerms() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('dirPerms', $methods ), 'exists method dirPerms' ); + $r = new ReflectionMethod('workspaceTools', 'dirPerms'); + $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() == 'owner'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'group'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'perms'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers workspaceTools::restore * @todo Implement testrestore(). */ - public function testrestore() - { - if (class_exists('workspaceTools')) { - $methods = get_class_methods( 'workspaceTools'); - $this->assertTrue( in_array( 'restore', $methods ), 'seems like this function is outside this class' ); - } + public function testrestore() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('restore', $methods ), 'exists method restore' ); + $r = new ReflectionMethod('workspaceTools', 'restore'); + $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() == 'srcWorkspace'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'dstWorkspace'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'overwrite'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == '1'); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classwsBaseTest.php b/tests/automated/workflow/engine/classes/classwsBaseTest.php index 0b292d18c..0e18aa04d 100644 --- a/tests/automated/workflow/engine/classes/classwsBaseTest.php +++ b/tests/automated/workflow/engine/classes/classwsBaseTest.php @@ -1,435 +1,772 @@ -object = new wsBase(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 35); + } - class classwsBaseTest extends PHPUnit_Framework_TestCase - { /** * @covers wsBase::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('wsBase', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'params'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == true); + $this->assertTrue( $params[0]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::login * @todo Implement testlogin(). */ - public function testlogin() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'login', $methods ), 'seems like this function is outside this class' ); - } + public function testlogin() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('login', $methods ), 'exists method login' ); + $r = new ReflectionMethod('wsBase', 'login'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'password'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::processList * @todo Implement testprocessList(). */ - public function testprocessList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'processList', $methods ), 'seems like this function is outside this class' ); - } + public function testprocessList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('processList', $methods ), 'exists method processList' ); + $r = new ReflectionMethod('wsBase', 'processList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::roleList * @todo Implement testroleList(). */ - public function testroleList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'roleList', $methods ), 'seems like this function is outside this class' ); - } + public function testroleList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('roleList', $methods ), 'exists method roleList' ); + $r = new ReflectionMethod('wsBase', 'roleList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::groupList * @todo Implement testgroupList(). */ - public function testgroupList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'groupList', $methods ), 'seems like this function is outside this class' ); - } + public function testgroupList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('groupList', $methods ), 'exists method groupList' ); + $r = new ReflectionMethod('wsBase', 'groupList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::departmentList * @todo Implement testdepartmentList(). */ - public function testdepartmentList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'departmentList', $methods ), 'seems like this function is outside this class' ); - } + public function testdepartmentList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('departmentList', $methods ), 'exists method departmentList' ); + $r = new ReflectionMethod('wsBase', 'departmentList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::caseList * @todo Implement testcaseList(). */ - public function testcaseList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'caseList', $methods ), 'seems like this function is outside this class' ); - } + public function testcaseList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('caseList', $methods ), 'exists method caseList' ); + $r = new ReflectionMethod('wsBase', 'caseList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::unassignedCaseList * @todo Implement testunassignedCaseList(). */ - public function testunassignedCaseList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'unassignedCaseList', $methods ), 'seems like this function is outside this class' ); - } + public function testunassignedCaseList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('unassignedCaseList', $methods ), 'exists method unassignedCaseList' ); + $r = new ReflectionMethod('wsBase', 'unassignedCaseList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::userList * @todo Implement testuserList(). */ - public function testuserList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'userList', $methods ), 'seems like this function is outside this class' ); - } + public function testuserList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('userList', $methods ), 'exists method userList' ); + $r = new ReflectionMethod('wsBase', 'userList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::triggerList * @todo Implement testtriggerList(). */ - public function testtriggerList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'triggerList', $methods ), 'seems like this function is outside this class' ); - } + public function testtriggerList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('triggerList', $methods ), 'exists method triggerList' ); + $r = new ReflectionMethod('wsBase', 'triggerList'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::inputDocumentList * @todo Implement testinputDocumentList(). */ - public function testinputDocumentList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'inputDocumentList', $methods ), 'seems like this function is outside this class' ); - } + public function testinputDocumentList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('inputDocumentList', $methods ), 'exists method inputDocumentList' ); + $r = new ReflectionMethod('wsBase', 'inputDocumentList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUserUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::inputDocumentProcessList * @todo Implement testinputDocumentProcessList(). */ - public function testinputDocumentProcessList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'inputDocumentProcessList', $methods ), 'seems like this function is outside this class' ); - } + public function testinputDocumentProcessList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('inputDocumentProcessList', $methods ), 'exists method inputDocumentProcessList' ); + $r = new ReflectionMethod('wsBase', 'inputDocumentProcessList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sProcessUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::outputDocumentList * @todo Implement testoutputDocumentList(). */ - public function testoutputDocumentList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'outputDocumentList', $methods ), 'seems like this function is outside this class' ); - } + public function testoutputDocumentList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('outputDocumentList', $methods ), 'exists method outputDocumentList' ); + $r = new ReflectionMethod('wsBase', 'outputDocumentList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sUserUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::removeDocument * @todo Implement testremoveDocument(). */ - public function testremoveDocument() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'removeDocument', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveDocument() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeDocument', $methods ), 'exists method removeDocument' ); + $r = new ReflectionMethod('wsBase', 'removeDocument'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'appDocUid'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::taskList * @todo Implement testtaskList(). */ - public function testtaskList() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'taskList', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskList() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskList', $methods ), 'exists method taskList' ); + $r = new ReflectionMethod('wsBase', 'taskList'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::sendMessage * @todo Implement testsendMessage(). */ - public function testsendMessage() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'sendMessage', $methods ), 'seems like this function is outside this class' ); - } + public function testsendMessage() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendMessage', $methods ), 'exists method sendMessage' ); + $r = new ReflectionMethod('wsBase', 'sendMessage'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'caseId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'sFrom'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'sTo'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'sCc'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'sBcc'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'sSubject'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->assertTrue( $params[6]->getName() == 'sTemplate'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == false); + $this->assertTrue( $params[7]->getName() == 'appFields'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == ''); + $this->assertTrue( $params[8]->getName() == 'aAttachment'); + $this->assertTrue( $params[8]->isArray() == false); + $this->assertTrue( $params[8]->isOptional () == true); + $this->assertTrue( $params[8]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::getCaseInfo * @todo Implement testgetCaseInfo(). */ - public function testgetCaseInfo() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'getCaseInfo', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseInfo() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseInfo', $methods ), 'exists method getCaseInfo' ); + $r = new ReflectionMethod('wsBase', 'getCaseInfo'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'caseId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'iDelIndex'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::createUser * @todo Implement testcreateUser(). */ - public function testcreateUser() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'createUser', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateUser() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createUser', $methods ), 'exists method createUser' ); + $r = new ReflectionMethod('wsBase', 'createUser'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'firstname'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'lastname'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'email'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'role'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->assertTrue( $params[5]->getName() == 'password'); + $this->assertTrue( $params[5]->isArray() == false); + $this->assertTrue( $params[5]->isOptional () == false); + $this->assertTrue( $params[6]->getName() == 'dueDate'); + $this->assertTrue( $params[6]->isArray() == false); + $this->assertTrue( $params[6]->isOptional () == true); + $this->assertTrue( $params[6]->getDefaultValue() == ''); + $this->assertTrue( $params[7]->getName() == 'status'); + $this->assertTrue( $params[7]->isArray() == false); + $this->assertTrue( $params[7]->isOptional () == true); + $this->assertTrue( $params[7]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::createGroup * @todo Implement testcreateGroup(). */ - public function testcreateGroup() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'createGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createGroup', $methods ), 'exists method createGroup' ); + $r = new ReflectionMethod('wsBase', 'createGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'groupName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::createDepartment * @todo Implement testcreateDepartment(). */ - public function testcreateDepartment() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'createDepartment', $methods ), 'seems like this function is outside this class' ); - } + public function testcreateDepartment() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('createDepartment', $methods ), 'exists method createDepartment' ); + $r = new ReflectionMethod('wsBase', 'createDepartment'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'departmentName'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'parentUID'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::removeUserFromGroup * @todo Implement testremoveUserFromGroup(). */ - public function testremoveUserFromGroup() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'removeUserFromGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testremoveUserFromGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('removeUserFromGroup', $methods ), 'exists method removeUserFromGroup' ); + $r = new ReflectionMethod('wsBase', 'removeUserFromGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'groupId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::assignUserToGroup * @todo Implement testassignUserToGroup(). */ - public function testassignUserToGroup() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'assignUserToGroup', $methods ), 'seems like this function is outside this class' ); - } + public function testassignUserToGroup() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignUserToGroup', $methods ), 'exists method assignUserToGroup' ); + $r = new ReflectionMethod('wsBase', 'assignUserToGroup'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'groupId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::assignUserToDepartment * @todo Implement testassignUserToDepartment(). */ - public function testassignUserToDepartment() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'assignUserToDepartment', $methods ), 'seems like this function is outside this class' ); - } + public function testassignUserToDepartment() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('assignUserToDepartment', $methods ), 'exists method assignUserToDepartment' ); + $r = new ReflectionMethod('wsBase', 'assignUserToDepartment'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'depId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'manager'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::sendVariables * @todo Implement testsendVariables(). */ - public function testsendVariables() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'sendVariables', $methods ), 'seems like this function is outside this class' ); - } + public function testsendVariables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('sendVariables', $methods ), 'exists method sendVariables' ); + $r = new ReflectionMethod('wsBase', 'sendVariables'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'caseId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'variables'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::getVariables * @todo Implement testgetVariables(). */ - public function testgetVariables() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'getVariables', $methods ), 'seems like this function is outside this class' ); - } + public function testgetVariables() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getVariables', $methods ), 'exists method getVariables' ); + $r = new ReflectionMethod('wsBase', 'getVariables'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'caseId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'variables'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::newCase * @todo Implement testnewCase(). */ - public function testnewCase() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'newCase', $methods ), 'seems like this function is outside this class' ); - } + public function testnewCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newCase', $methods ), 'exists method newCase' ); + $r = new ReflectionMethod('wsBase', 'newCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'processId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'userId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'taskId'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'variables'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::newCaseImpersonate * @todo Implement testnewCaseImpersonate(). */ - public function testnewCaseImpersonate() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'newCaseImpersonate', $methods ), 'seems like this function is outside this class' ); - } + public function testnewCaseImpersonate() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('newCaseImpersonate', $methods ), 'exists method newCaseImpersonate' ); + $r = new ReflectionMethod('wsBase', 'newCaseImpersonate'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'processId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'userId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'variables'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::derivateCase * @todo Implement testderivateCase(). */ - public function testderivateCase() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'derivateCase', $methods ), 'seems like this function is outside this class' ); - } + public function testderivateCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('derivateCase', $methods ), 'exists method derivateCase' ); + $r = new ReflectionMethod('wsBase', 'derivateCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'caseId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'delIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'bExecuteTriggersBeforeAssignment'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::executeTrigger * @todo Implement testexecuteTrigger(). */ - public function testexecuteTrigger() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'executeTrigger', $methods ), 'seems like this function is outside this class' ); - } + public function testexecuteTrigger() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('executeTrigger', $methods ), 'exists method executeTrigger' ); + $r = new ReflectionMethod('wsBase', 'executeTrigger'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'caseId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'triggerIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'delIndex'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::taskCase * @todo Implement testtaskCase(). */ - public function testtaskCase() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'taskCase', $methods ), 'seems like this function is outside this class' ); - } + public function testtaskCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('taskCase', $methods ), 'exists method taskCase' ); + $r = new ReflectionMethod('wsBase', 'taskCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'caseId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::processListVerified * @todo Implement testprocessListVerified(). */ - public function testprocessListVerified() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'processListVerified', $methods ), 'seems like this function is outside this class' ); - } + public function testprocessListVerified() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('processListVerified', $methods ), 'exists method processListVerified' ); + $r = new ReflectionMethod('wsBase', 'processListVerified'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'userId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::reassignCase * @todo Implement testreassignCase(). */ - public function testreassignCase() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'reassignCase', $methods ), 'seems like this function is outside this class' ); - } + public function testreassignCase() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('reassignCase', $methods ), 'exists method reassignCase' ); + $r = new ReflectionMethod('wsBase', 'reassignCase'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'sessionId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'caseId'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'delIndex'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->assertTrue( $params[3]->getName() == 'userIdSource'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == false); + $this->assertTrue( $params[4]->getName() == 'userIdTarget'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::systemInformation * @todo Implement testsystemInformation(). */ - public function testsystemInformation() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'systemInformation', $methods ), 'seems like this function is outside this class' ); - } + public function testsystemInformation() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('systemInformation', $methods ), 'exists method systemInformation' ); + $r = new ReflectionMethod('wsBase', 'systemInformation'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::importProcessFromLibrary * @todo Implement testimportProcessFromLibrary(). */ - public function testimportProcessFromLibrary() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'importProcessFromLibrary', $methods ), 'seems like this function is outside this class' ); - } + public function testimportProcessFromLibrary() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('importProcessFromLibrary', $methods ), 'exists method importProcessFromLibrary' ); + $r = new ReflectionMethod('wsBase', 'importProcessFromLibrary'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'processId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'version'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->assertTrue( $params[2]->getName() == 'importOption'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == true); + $this->assertTrue( $params[2]->getDefaultValue() == ''); + $this->assertTrue( $params[3]->getName() == 'usernameLibrary'); + $this->assertTrue( $params[3]->isArray() == false); + $this->assertTrue( $params[3]->isOptional () == true); + $this->assertTrue( $params[3]->getDefaultValue() == ''); + $this->assertTrue( $params[4]->getName() == 'passwordLibrary'); + $this->assertTrue( $params[4]->isArray() == false); + $this->assertTrue( $params[4]->isOptional () == true); + $this->assertTrue( $params[4]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsBase::getCaseNotes * @todo Implement testgetCaseNotes(). */ - public function testgetCaseNotes() - { - if (class_exists('wsBase')) { - $methods = get_class_methods( 'wsBase'); - $this->assertTrue( in_array( 'getCaseNotes', $methods ), 'seems like this function is outside this class' ); - } + public function testgetCaseNotes() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getCaseNotes', $methods ), 'exists method getCaseNotes' ); + $r = new ReflectionMethod('wsBase', 'getCaseNotes'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'applicationID'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'userUid'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == true); + $this->assertTrue( $params[1]->getDefaultValue() == ''); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classwsCreateDepartmentResponseTest.php b/tests/automated/workflow/engine/classes/classwsCreateDepartmentResponseTest.php index a2ea4b751..fc67f69fb 100644 --- a/tests/automated/workflow/engine/classes/classwsCreateDepartmentResponseTest.php +++ b/tests/automated/workflow/engine/classes/classwsCreateDepartmentResponseTest.php @@ -1,27 +1,72 @@ -object = new wsCreateDepartmentResponse(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase - { /** * @covers wsCreateDepartmentResponse::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('wsCreateDepartmentResponse')) { - $methods = get_class_methods( 'wsCreateDepartmentResponse'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('wsCreateDepartmentResponse', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'message'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'departmentUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classwsCreateGroupResponseTest.php b/tests/automated/workflow/engine/classes/classwsCreateGroupResponseTest.php index c281f5b47..b46afe6cf 100644 --- a/tests/automated/workflow/engine/classes/classwsCreateGroupResponseTest.php +++ b/tests/automated/workflow/engine/classes/classwsCreateGroupResponseTest.php @@ -1,27 +1,72 @@ -object = new wsCreateGroupResponse(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classwsCreateGroupResponseTest extends PHPUnit_Framework_TestCase - { /** * @covers wsCreateGroupResponse::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('wsCreateGroupResponse')) { - $methods = get_class_methods( 'wsCreateGroupResponse'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('wsCreateGroupResponse', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'message'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'groupUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classwsCreateUserResponseTest.php b/tests/automated/workflow/engine/classes/classwsCreateUserResponseTest.php index ff649fd5e..df7ddc073 100644 --- a/tests/automated/workflow/engine/classes/classwsCreateUserResponseTest.php +++ b/tests/automated/workflow/engine/classes/classwsCreateUserResponseTest.php @@ -1,27 +1,72 @@ -object = new wsCreateUserResponse(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classwsCreateUserResponseTest extends PHPUnit_Framework_TestCase - { /** * @covers wsCreateUserResponse::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('wsCreateUserResponse')) { - $methods = get_class_methods( 'wsCreateUserResponse'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('wsCreateUserResponse', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'message'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'userUID'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classwsGetCaseNotesResponseTest.php b/tests/automated/workflow/engine/classes/classwsGetCaseNotesResponseTest.php index 92ee2fc77..f31659bfd 100644 --- a/tests/automated/workflow/engine/classes/classwsGetCaseNotesResponseTest.php +++ b/tests/automated/workflow/engine/classes/classwsGetCaseNotesResponseTest.php @@ -1,27 +1,72 @@ -object = new wsGetCaseNotesResponse(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classwsGetCaseNotesResponseTest extends PHPUnit_Framework_TestCase - { /** * @covers wsGetCaseNotesResponse::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('wsGetCaseNotesResponse')) { - $methods = get_class_methods( 'wsGetCaseNotesResponse'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('wsGetCaseNotesResponse', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'message'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'notes'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classwsGetVariableResponseTest.php b/tests/automated/workflow/engine/classes/classwsGetVariableResponseTest.php index 37a4d2f69..3fe252aad 100644 --- a/tests/automated/workflow/engine/classes/classwsGetVariableResponseTest.php +++ b/tests/automated/workflow/engine/classes/classwsGetVariableResponseTest.php @@ -1,27 +1,72 @@ -object = new wsGetVariableResponse(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 1); + } - class classwsGetVariableResponseTest extends PHPUnit_Framework_TestCase - { /** * @covers wsGetVariableResponse::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('wsGetVariableResponse')) { - $methods = get_class_methods( 'wsGetVariableResponse'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('wsGetVariableResponse', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'message'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->assertTrue( $params[2]->getName() == 'variables'); + $this->assertTrue( $params[2]->isArray() == false); + $this->assertTrue( $params[2]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classwsResponseTest.php b/tests/automated/workflow/engine/classes/classwsResponseTest.php index 3e897559e..ba224f060 100644 --- a/tests/automated/workflow/engine/classes/classwsResponseTest.php +++ b/tests/automated/workflow/engine/classes/classwsResponseTest.php @@ -1,51 +1,100 @@ -object = new wsResponse(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 3); + } - class classwsResponseTest extends PHPUnit_Framework_TestCase - { /** * @covers wsResponse::__construct * @todo Implement test__construct(). */ - public function test__construct() - { - if (class_exists('wsResponse')) { - $methods = get_class_methods( 'wsResponse'); - $this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); - } + public function test__construct() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' ); + $r = new ReflectionMethod('wsResponse', '__construct'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'status'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->assertTrue( $params[1]->getName() == 'message'); + $this->assertTrue( $params[1]->isArray() == false); + $this->assertTrue( $params[1]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsResponse::getPayloadString * @todo Implement testgetPayloadString(). */ - public function testgetPayloadString() - { - if (class_exists('wsResponse')) { - $methods = get_class_methods( 'wsResponse'); - $this->assertTrue( in_array( 'getPayloadString', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPayloadString() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPayloadString', $methods ), 'exists method getPayloadString' ); + $r = new ReflectionMethod('wsResponse', 'getPayloadString'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'operation'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers wsResponse::getPayloadArray * @todo Implement testgetPayloadArray(). */ - public function testgetPayloadArray() - { - if (class_exists('wsResponse')) { - $methods = get_class_methods( 'wsResponse'); - $this->assertTrue( in_array( 'getPayloadArray', $methods ), 'seems like this function is outside this class' ); - } + public function testgetPayloadArray() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getPayloadArray', $methods ), 'exists method getPayloadArray' ); + $r = new ReflectionMethod('wsResponse', 'getPayloadArray'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } } diff --git a/tests/automated/workflow/engine/classes/classzip_fileTest.php b/tests/automated/workflow/engine/classes/classzip_fileTest.php index 092789750..158b05465 100644 --- a/tests/automated/workflow/engine/classes/classzip_fileTest.php +++ b/tests/automated/workflow/engine/classes/classzip_fileTest.php @@ -1,39 +1,80 @@ -object = new zip_file(); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * This is the default method to test, if the class still having + * the same number of methods. + */ + public function testNumberOfMethodsInThisClass() + { + $this->assertTrue( count($methods) == 14); + } - class classzip_fileTest extends PHPUnit_Framework_TestCase - { /** * @covers zip_file::zip_file * @todo Implement testzip_file(). */ - public function testzip_file() - { - if (class_exists('zip_file')) { - $methods = get_class_methods( 'zip_file'); - $this->assertTrue( in_array( 'zip_file', $methods ), 'seems like this function is outside this class' ); - } + public function testzip_file() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('zip_file', $methods ), 'exists method zip_file' ); + $r = new ReflectionMethod('zip_file', 'zip_file'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'name'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + $this->markTestIncomplete('This test has not been implemented yet.'); + } /** * @covers zip_file::create_zip * @todo Implement testcreate_zip(). */ - public function testcreate_zip() - { - if (class_exists('zip_file')) { - $methods = get_class_methods( 'zip_file'); - $this->assertTrue( in_array( 'create_zip', $methods ), 'seems like this function is outside this class' ); - } + public function testcreate_zip() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('create_zip', $methods ), 'exists method create_zip' ); + $r = new ReflectionMethod('zip_file', 'create_zip'); + $params = $r->getParameters(); + $this->markTestIncomplete('This test has not been implemented yet.'); + } }