php units for all classes

This commit is contained in:
Fernando Ontiveros
2012-07-12 20:40:06 -04:00
parent 6326cfdf53
commit dd88abc53b
178 changed files with 28951 additions and 14669 deletions

View File

@@ -1,241 +1,384 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.controller.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.controller.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:29.
*/ */
class classControllerTest extends PHPUnit_Framework_TestCase
{
/**
* @var Controller
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Controller::__set
* @todo Implement test__set(). * @todo Implement test__set().
*/ */
public function test__set() public function test__set()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('__set', $methods ), 'exists method __set' );
$this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::__get
* @todo Implement test__get(). * @todo Implement test__get().
*/ */
public function test__get() public function test__get()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('__get', $methods ), 'exists method __get' );
$this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::__isset
* @todo Implement test__isset(). * @todo Implement test__isset().
*/ */
public function test__isset() public function test__isset()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' );
$this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::__unset
* @todo Implement test__unset(). * @todo Implement test__unset().
*/ */
public function test__unset() public function test__unset()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' );
$this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::setResponseType
* @todo Implement testsetResponseType(). * @todo Implement testsetResponseType().
*/ */
public function testsetResponseType() public function testsetResponseType()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('setResponseType', $methods ), 'exists method setResponseType' );
$this->assertTrue( in_array( 'setResponseType', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::call
* @todo Implement testcall(). * @todo Implement testcall().
*/ */
public function testcall() public function testcall()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('call', $methods ), 'exists method call' );
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::setHttpRequestData
* @todo Implement testsetHttpRequestData(). * @todo Implement testsetHttpRequestData().
*/ */
public function testsetHttpRequestData() public function testsetHttpRequestData()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' );
$this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::setDebug
* @todo Implement testsetDebug(). * @todo Implement testsetDebug().
*/ */
public function testsetDebug() public function testsetDebug()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('setDebug', $methods ), 'exists method setDebug' );
$this->assertTrue( in_array( 'setDebug', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::getDebug
* @todo Implement testgetDebug(). * @todo Implement testgetDebug().
*/ */
public function testgetDebug() public function testgetDebug()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('getDebug', $methods ), 'exists method getDebug' );
$this->assertTrue( in_array( 'getDebug', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Controller', 'getDebug');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Controller::includeExtJSLib * @covers Controller::includeExtJSLib
* @todo Implement testincludeExtJSLib(). * @todo Implement testincludeExtJSLib().
*/ */
public function testincludeExtJSLib() public function testincludeExtJSLib()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('includeExtJSLib', $methods ), 'exists method includeExtJSLib' );
$this->assertTrue( in_array( 'includeExtJSLib', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::includeExtJS
* @todo Implement testincludeExtJS(). * @todo Implement testincludeExtJS().
*/ */
public function testincludeExtJS() public function testincludeExtJS()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('includeExtJS', $methods ), 'exists method includeExtJS' );
$this->assertTrue( in_array( 'includeExtJS', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::setView
* @todo Implement testsetView(). * @todo Implement testsetView().
*/ */
public function testsetView() public function testsetView()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('setView', $methods ), 'exists method setView' );
$this->assertTrue( in_array( 'setView', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::setJSVar
* @todo Implement testsetJSVar(). * @todo Implement testsetJSVar().
*/ */
public function testsetJSVar() public function testsetJSVar()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('setJSVar', $methods ), 'exists method setJSVar' );
$this->assertTrue( in_array( 'setJSVar', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::setVar
* @todo Implement testsetVar(). * @todo Implement testsetVar().
*/ */
public function testsetVar() public function testsetVar()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('setVar', $methods ), 'exists method setVar' );
$this->assertTrue( in_array( 'setVar', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::getHeadPublisher
* @todo Implement testgetHeadPublisher(). * @todo Implement testgetHeadPublisher().
*/ */
public function testgetHeadPublisher() public function testgetHeadPublisher()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('getHeadPublisher', $methods ), 'exists method getHeadPublisher' );
$this->assertTrue( in_array( 'getHeadPublisher', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Controller', 'getHeadPublisher');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Controller::setLayout * @covers Controller::setLayout
* @todo Implement testsetLayout(). * @todo Implement testsetLayout().
*/ */
public function testsetLayout() public function testsetLayout()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('setLayout', $methods ), 'exists method setLayout' );
$this->assertTrue( in_array( 'setLayout', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::header
* @todo Implement testheader(). * @todo Implement testheader().
*/ */
public function testheader() public function testheader()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('header', $methods ), 'exists method header' );
$this->assertTrue( in_array( 'header', $methods ), 'seems like this function is outside this class' ); $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 * @covers Controller::redirect
* @todo Implement testredirect(). * @todo Implement testredirect().
*/ */
public function testredirect() public function testredirect()
{ {
if (class_exists('Controller')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Controller'); $this->assertTrue( in_array('redirect', $methods ), 'exists method redirect' );
$this->assertTrue( in_array( 'redirect', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,109 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56.
*/
class classDBConnectionTest extends PHPUnit_Framework_TestCase
{
/**
* @covers DBConnection::DBConnection
* @todo Implement testDBConnection().
*/
public function testDBConnection()
{
if (class_exists('DBConnection')) {
$methods = get_class_methods( 'DBConnection');
$this->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' );
}
}
}

View File

@@ -1,85 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbrecordset.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
*/
class classDBRecordSetTest extends PHPUnit_Framework_TestCase
{
/**
* @covers DBRecordSet::DBRecordSet
* @todo Implement testDBRecordSet().
*/
public function testDBRecordSet()
{
if (class_exists('DBRecordSet')) {
$methods = get_class_methods( 'DBRecordSet');
$this->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' );
}
}
}

View File

@@ -1,73 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbsession.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classDBSessionTest extends PHPUnit_Framework_TestCase
{
/**
* @covers DBSession::DBSession
* @todo Implement testDBSession().
*/
public function testDBSession()
{
if (class_exists('DBSession')) {
$methods = get_class_methods( 'DBSession');
$this->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' );
}
}
}

View File

@@ -1,145 +1,232 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbtable.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbtable.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classDBTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var DBTable
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers DBTable::dBTable
* @todo Implement testdBTable(). * @todo Implement testdBTable().
*/ */
public function testdBTable() public function testdBTable()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('dBTable', $methods ), 'exists method dBTable' );
$this->assertTrue( in_array( 'dBTable', $methods ), 'seems like this function is outside this class' ); $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 * @covers DBTable::setTo
* @todo Implement testsetTo(). * @todo Implement testsetTo().
*/ */
public function testsetTo() public function testsetTo()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('setTo', $methods ), 'exists method setTo' );
$this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' ); $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 * @covers DBTable::loadEmpty
* @todo Implement testloadEmpty(). * @todo Implement testloadEmpty().
*/ */
public function testloadEmpty() public function testloadEmpty()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('loadEmpty', $methods ), 'exists method loadEmpty' );
$this->assertTrue( in_array( 'loadEmpty', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DBTable', 'loadEmpty');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DBTable::loadWhere * @covers DBTable::loadWhere
* @todo Implement testloadWhere(). * @todo Implement testloadWhere().
*/ */
public function testloadWhere() public function testloadWhere()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('loadWhere', $methods ), 'exists method loadWhere' );
$this->assertTrue( in_array( 'loadWhere', $methods ), 'seems like this function is outside this class' ); $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 * @covers DBTable::load
* @todo Implement testload(). * @todo Implement testload().
*/ */
public function testload() public function testload()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('load', $methods ), 'exists method load' );
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DBTable', 'load');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DBTable::nextvalPGSql * @covers DBTable::nextvalPGSql
* @todo Implement testnextvalPGSql(). * @todo Implement testnextvalPGSql().
*/ */
public function testnextvalPGSql() public function testnextvalPGSql()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('nextvalPGSql', $methods ), 'exists method nextvalPGSql' );
$this->assertTrue( in_array( 'nextvalPGSql', $methods ), 'seems like this function is outside this class' ); $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 * @covers DBTable::insert
* @todo Implement testinsert(). * @todo Implement testinsert().
*/ */
public function testinsert() public function testinsert()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('insert', $methods ), 'exists method insert' );
$this->assertTrue( in_array( 'insert', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DBTable', 'insert');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DBTable::update * @covers DBTable::update
* @todo Implement testupdate(). * @todo Implement testupdate().
*/ */
public function testupdate() public function testupdate()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('update', $methods ), 'exists method update' );
$this->assertTrue( in_array( 'update', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DBTable', 'update');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DBTable::save * @covers DBTable::save
* @todo Implement testsave(). * @todo Implement testsave().
*/ */
public function testsave() public function testsave()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('save', $methods ), 'exists method save' );
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DBTable', 'save');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DBTable::delete * @covers DBTable::delete
* @todo Implement testdelete(). * @todo Implement testdelete().
*/ */
public function testdelete() public function testdelete()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
$this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DBTable', 'delete');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DBTable::next * @covers DBTable::next
* @todo Implement testnext(). * @todo Implement testnext().
*/ */
public function testnext() public function testnext()
{ {
if (class_exists('DBTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DBTable'); $this->assertTrue( in_array('next', $methods ), 'exists method next' );
$this->assertTrue( in_array( 'next', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DBTable', 'next');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,337 +1,503 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbMaintenance.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbMaintenance.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classDataBaseMaintenanceTest extends PHPUnit_Framework_TestCase
{
/**
* @var DataBaseMaintenance
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers DataBaseMaintenance::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::setUser
* @todo Implement testsetUser(). * @todo Implement testsetUser().
*/ */
public function testsetUser() public function testsetUser()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('setUser', $methods ), 'exists method setUser' );
$this->assertTrue( in_array( 'setUser', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::setPasswd
* @todo Implement testsetPasswd(). * @todo Implement testsetPasswd().
*/ */
public function testsetPasswd() public function testsetPasswd()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('setPasswd', $methods ), 'exists method setPasswd' );
$this->assertTrue( in_array( 'setPasswd', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::setHost
* @todo Implement testsetHost(). * @todo Implement testsetHost().
*/ */
public function testsetHost() public function testsetHost()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('setHost', $methods ), 'exists method setHost' );
$this->assertTrue( in_array( 'setHost', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::setTempDir
* @todo Implement testsetTempDir(). * @todo Implement testsetTempDir().
*/ */
public function testsetTempDir() public function testsetTempDir()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('setTempDir', $methods ), 'exists method setTempDir' );
$this->assertTrue( in_array( 'setTempDir', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::getTempDir
* @todo Implement testgetTempDir(). * @todo Implement testgetTempDir().
*/ */
public function testgetTempDir() public function testgetTempDir()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('getTempDir', $methods ), 'exists method getTempDir' );
$this->assertTrue( in_array( 'getTempDir', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'getTempDir');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::status * @covers DataBaseMaintenance::status
* @todo Implement teststatus(). * @todo Implement teststatus().
*/ */
public function teststatus() public function teststatus()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('status', $methods ), 'exists method status' );
$this->assertTrue( in_array( 'status', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'status');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::connect * @covers DataBaseMaintenance::connect
* @todo Implement testconnect(). * @todo Implement testconnect().
*/ */
public function testconnect() public function testconnect()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('connect', $methods ), 'exists method connect' );
$this->assertTrue( in_array( 'connect', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::setDbName
* @todo Implement testsetDbName(). * @todo Implement testsetDbName().
*/ */
public function testsetDbName() public function testsetDbName()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('setDbName', $methods ), 'exists method setDbName' );
$this->assertTrue( in_array( 'setDbName', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::selectDataBase
* @todo Implement testselectDataBase(). * @todo Implement testselectDataBase().
*/ */
public function testselectDataBase() public function testselectDataBase()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('selectDataBase', $methods ), 'exists method selectDataBase' );
$this->assertTrue( in_array( 'selectDataBase', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::query
* @todo Implement testquery(). * @todo Implement testquery().
*/ */
public function testquery() public function testquery()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('query', $methods ), 'exists method query' );
$this->assertTrue( in_array( 'query', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::error
* @todo Implement testerror(). * @todo Implement testerror().
*/ */
public function testerror() public function testerror()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('error', $methods ), 'exists method error' );
$this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'error');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::getTablesList * @covers DataBaseMaintenance::getTablesList
* @todo Implement testgetTablesList(). * @todo Implement testgetTablesList().
*/ */
public function testgetTablesList() public function testgetTablesList()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('getTablesList', $methods ), 'exists method getTablesList' );
$this->assertTrue( in_array( 'getTablesList', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'getTablesList');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::dumpData * @covers DataBaseMaintenance::dumpData
* @todo Implement testdumpData(). * @todo Implement testdumpData().
*/ */
public function testdumpData() public function testdumpData()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('dumpData', $methods ), 'exists method dumpData' );
$this->assertTrue( in_array( 'dumpData', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::restoreData
* @todo Implement testrestoreData(). * @todo Implement testrestoreData().
*/ */
public function testrestoreData() public function testrestoreData()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('restoreData', $methods ), 'exists method restoreData' );
$this->assertTrue( in_array( 'restoreData', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::backupData
* @todo Implement testbackupData(). * @todo Implement testbackupData().
*/ */
public function testbackupData() public function testbackupData()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('backupData', $methods ), 'exists method backupData' );
$this->assertTrue( in_array( 'backupData', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'backupData');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::backupSqlData * @covers DataBaseMaintenance::backupSqlData
* @todo Implement testbackupSqlData(). * @todo Implement testbackupSqlData().
*/ */
public function testbackupSqlData() public function testbackupSqlData()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('backupSqlData', $methods ), 'exists method backupSqlData' );
$this->assertTrue( in_array( 'backupSqlData', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'backupSqlData');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::restoreAllData * @covers DataBaseMaintenance::restoreAllData
* @todo Implement testrestoreAllData(). * @todo Implement testrestoreAllData().
*/ */
public function testrestoreAllData() public function testrestoreAllData()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('restoreAllData', $methods ), 'exists method restoreAllData' );
$this->assertTrue( in_array( 'restoreAllData', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::createDb
* @todo Implement testcreateDb(). * @todo Implement testcreateDb().
*/ */
public function testcreateDb() public function testcreateDb()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('createDb', $methods ), 'exists method createDb' );
$this->assertTrue( in_array( 'createDb', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::restoreFromSql2
* @todo Implement testrestoreFromSql2(). * @todo Implement testrestoreFromSql2().
*/ */
public function testrestoreFromSql2() public function testrestoreFromSql2()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('restoreFromSql2', $methods ), 'exists method restoreFromSql2' );
$this->assertTrue( in_array( 'restoreFromSql2', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::lockTables
* @todo Implement testlockTables(). * @todo Implement testlockTables().
*/ */
public function testlockTables() public function testlockTables()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('lockTables', $methods ), 'exists method lockTables' );
$this->assertTrue( in_array( 'lockTables', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'lockTables');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::unlockTables * @covers DataBaseMaintenance::unlockTables
* @todo Implement testunlockTables(). * @todo Implement testunlockTables().
*/ */
public function testunlockTables() public function testunlockTables()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('unlockTables', $methods ), 'exists method unlockTables' );
$this->assertTrue( in_array( 'unlockTables', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DataBaseMaintenance', 'unlockTables');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers DataBaseMaintenance::dumpSqlInserts * @covers DataBaseMaintenance::dumpSqlInserts
* @todo Implement testdumpSqlInserts(). * @todo Implement testdumpSqlInserts().
*/ */
public function testdumpSqlInserts() public function testdumpSqlInserts()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('dumpSqlInserts', $methods ), 'exists method dumpSqlInserts' );
$this->assertTrue( in_array( 'dumpSqlInserts', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::backupDataBase
* @todo Implement testbackupDataBase(). * @todo Implement testbackupDataBase().
*/ */
public function testbackupDataBase() public function testbackupDataBase()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('backupDataBase', $methods ), 'exists method backupDataBase' );
$this->assertTrue( in_array( 'backupDataBase', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::restoreFromSql
* @todo Implement testrestoreFromSql(). * @todo Implement testrestoreFromSql().
*/ */
public function testrestoreFromSql() public function testrestoreFromSql()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('restoreFromSql', $methods ), 'exists method restoreFromSql' );
$this->assertTrue( in_array( 'restoreFromSql', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::getSchemaFromTable
* @todo Implement testgetSchemaFromTable(). * @todo Implement testgetSchemaFromTable().
*/ */
public function testgetSchemaFromTable() public function testgetSchemaFromTable()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('getSchemaFromTable', $methods ), 'exists method getSchemaFromTable' );
$this->assertTrue( in_array( 'getSchemaFromTable', $methods ), 'seems like this function is outside this class' ); $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 * @covers DataBaseMaintenance::removeCommentsIntoString
* @todo Implement testremoveCommentsIntoString(). * @todo Implement testremoveCommentsIntoString().
*/ */
public function testremoveCommentsIntoString() public function testremoveCommentsIntoString()
{ {
if (class_exists('DataBaseMaintenance')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DataBaseMaintenance'); $this->assertTrue( in_array('removeCommentsIntoString', $methods ), 'exists method removeCommentsIntoString' );
$this->assertTrue( in_array( 'removeCommentsIntoString', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,145 +1,262 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var Form
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Form::setDefaultValues
* @todo Implement testsetDefaultValues(). * @todo Implement testsetDefaultValues().
*/ */
public function testsetDefaultValues() public function testsetDefaultValues()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('setDefaultValues', $methods ), 'exists method setDefaultValues' );
$this->assertTrue( in_array( 'setDefaultValues', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Form', 'setDefaultValues');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Form::Form * @covers Form::Form
* @todo Implement testForm(). * @todo Implement testForm().
*/ */
public function testForm() public function testForm()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('Form', $methods ), 'exists method Form' );
$this->assertTrue( in_array( 'Form', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::printTemplate
* @todo Implement testprintTemplate(). * @todo Implement testprintTemplate().
*/ */
public function testprintTemplate() public function testprintTemplate()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' );
$this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::setValues
* @todo Implement testsetValues(). * @todo Implement testsetValues().
*/ */
public function testsetValues() public function testsetValues()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' );
$this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::getFields
* @todo Implement testgetFields(). * @todo Implement testgetFields().
*/ */
public function testgetFields() public function testgetFields()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::validatePost
* @todo Implement testvalidatePost(). * @todo Implement testvalidatePost().
*/ */
public function testvalidatePost() public function testvalidatePost()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('validatePost', $methods ), 'exists method validatePost' );
$this->assertTrue( in_array( 'validatePost', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Form', 'validatePost');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Form::validateArray * @covers Form::validateArray
* @todo Implement testvalidateArray(). * @todo Implement testvalidateArray().
*/ */
public function testvalidateArray() public function testvalidateArray()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('validateArray', $methods ), 'exists method validateArray' );
$this->assertTrue( in_array( 'validateArray', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::getVars
* @todo Implement testgetVars(). * @todo Implement testgetVars().
*/ */
public function testgetVars() public function testgetVars()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' );
$this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::validateRequiredFields
* @todo Implement testvalidateRequiredFields(). * @todo Implement testvalidateRequiredFields().
*/ */
public function testvalidateRequiredFields() public function testvalidateRequiredFields()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('validateRequiredFields', $methods ), 'exists method validateRequiredFields' );
$this->assertTrue( in_array( 'validateRequiredFields', $methods ), 'seems like this function is outside this class' ); $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 * @covers Form::validateFields
* @todo Implement testvalidateFields(). * @todo Implement testvalidateFields().
*/ */
public function testvalidateFields() public function testvalidateFields()
{ {
if (class_exists('Form')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Form'); $this->assertTrue( in_array('validateFields', $methods ), 'exists method validateFields' );
$this->assertTrue( in_array( 'validateFields', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,37 +1,96 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.error.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.error.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classG_ErrorTest extends PHPUnit_Framework_TestCase
{
/**
* @var G_Error
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers G_Error::G_Error
* @todo Implement testG_Error(). * @todo Implement testG_Error().
*/ */
public function testG_Error() public function testG_Error()
{ {
if (class_exists('G_Error')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'G_Error'); $this->assertTrue( in_array('G_Error', $methods ), 'exists method G_Error' );
$this->assertTrue( in_array( 'G_Error', $methods ), 'seems like this function is outside this class' ); $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 * @covers G_Error::errorMessage
* @todo Implement testerrorMessage(). * @todo Implement testerrorMessage().
*/ */
public function testerrorMessage() public function testerrorMessage()
{ {
if (class_exists('G_Error')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'G_Error'); $this->assertTrue( in_array('errorMessage', $methods ), 'exists method errorMessage' );
$this->assertTrue( in_array( 'errorMessage', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,109 +1,174 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.helper.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.helper.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classHelperTest extends PHPUnit_Framework_TestCase
{
/**
* @var Helper
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Helper::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Helper', '__construct');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Helper::addFile * @covers Helper::addFile
* @todo Implement testaddFile(). * @todo Implement testaddFile().
*/ */
public function testaddFile() public function testaddFile()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('addFile', $methods ), 'exists method addFile' );
$this->assertTrue( in_array( 'addFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers Helper::addContent
* @todo Implement testaddContent(). * @todo Implement testaddContent().
*/ */
public function testaddContent() public function testaddContent()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('addContent', $methods ), 'exists method addContent' );
$this->assertTrue( in_array( 'addContent', $methods ), 'seems like this function is outside this class' ); $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 * @covers Helper::setContentType
* @todo Implement testsetContentType(). * @todo Implement testsetContentType().
*/ */
public function testsetContentType() public function testsetContentType()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' );
$this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' ); $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 * @covers Helper::init
* @todo Implement testinit(). * @todo Implement testinit().
*/ */
public function testinit() public function testinit()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('init', $methods ), 'exists method init' );
$this->assertTrue( in_array( 'init', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Helper', 'init');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Helper::minify * @covers Helper::minify
* @todo Implement testminify(). * @todo Implement testminify().
*/ */
public function testminify() public function testminify()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('minify', $methods ), 'exists method minify' );
$this->assertTrue( in_array( 'minify', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Helper', 'minify');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Helper::flush * @covers Helper::flush
* @todo Implement testflush(). * @todo Implement testflush().
*/ */
public function testflush() public function testflush()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('flush', $methods ), 'exists method flush' );
$this->assertTrue( in_array( 'flush', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Helper', 'flush');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Helper::serve * @covers Helper::serve
* @todo Implement testserve(). * @todo Implement testserve().
*/ */
public function testserve() public function testserve()
{ {
if (class_exists('Helper')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Helper'); $this->assertTrue( in_array('serve', $methods ), 'exists method serve' );
$this->assertTrue( in_array( 'serve', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,109 +1,188 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.httpProxyController.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.httpProxyController.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classHttpProxyControllerTest extends PHPUnit_Framework_TestCase
{
/**
* @var HttpProxyController
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers HttpProxyController::__set
* @todo Implement test__set(). * @todo Implement test__set().
*/ */
public function test__set() public function test__set()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('__set', $methods ), 'exists method __set' );
$this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' ); $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 * @covers HttpProxyController::__get
* @todo Implement test__get(). * @todo Implement test__get().
*/ */
public function test__get() public function test__get()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('__get', $methods ), 'exists method __get' );
$this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' ); $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 * @covers HttpProxyController::__isset
* @todo Implement test__isset(). * @todo Implement test__isset().
*/ */
public function test__isset() public function test__isset()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' );
$this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' ); $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 * @covers HttpProxyController::__unset
* @todo Implement test__unset(). * @todo Implement test__unset().
*/ */
public function test__unset() public function test__unset()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' );
$this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' ); $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 * @covers HttpProxyController::call
* @todo Implement testcall(). * @todo Implement testcall().
*/ */
public function testcall() public function testcall()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('call', $methods ), 'exists method call' );
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' ); $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 * @covers HttpProxyController::setHttpRequestData
* @todo Implement testsetHttpRequestData(). * @todo Implement testsetHttpRequestData().
*/ */
public function testsetHttpRequestData() public function testsetHttpRequestData()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' );
$this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' ); $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 * @covers HttpProxyController::setJsonResponse
* @todo Implement testsetJsonResponse(). * @todo Implement testsetJsonResponse().
*/ */
public function testsetJsonResponse() public function testsetJsonResponse()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('setJsonResponse', $methods ), 'exists method setJsonResponse' );
$this->assertTrue( in_array( 'setJsonResponse', $methods ), 'seems like this function is outside this class' ); $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 * @covers HttpProxyController::setSendResponse
* @todo Implement testsetSendResponse(). * @todo Implement testsetSendResponse().
*/ */
public function testsetSendResponse() public function testsetSendResponse()
{ {
if (class_exists('HttpProxyController')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'HttpProxyController'); $this->assertTrue( in_array('setSendResponse', $methods ), 'exists method setSendResponse' );
$this->assertTrue( in_array( 'setSendResponse', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,145 +1,292 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.menu.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.menu.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classMenuTest extends PHPUnit_Framework_TestCase
{
/**
* @var Menu
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Menu::SetClass
* @todo Implement testSetClass(). * @todo Implement testSetClass().
*/ */
public function testSetClass() public function testSetClass()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('SetClass', $methods ), 'exists method SetClass' );
$this->assertTrue( in_array( 'SetClass', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::Load
* @todo Implement testLoad(). * @todo Implement testLoad().
*/ */
public function testLoad() public function testLoad()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('Load', $methods ), 'exists method Load' );
$this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::OptionCount
* @todo Implement testOptionCount(). * @todo Implement testOptionCount().
*/ */
public function testOptionCount() public function testOptionCount()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('OptionCount', $methods ), 'exists method OptionCount' );
$this->assertTrue( in_array( 'OptionCount', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Menu', 'OptionCount');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Menu::AddOption * @covers Menu::AddOption
* @todo Implement testAddOption(). * @todo Implement testAddOption().
*/ */
public function testAddOption() public function testAddOption()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('AddOption', $methods ), 'exists method AddOption' );
$this->assertTrue( in_array( 'AddOption', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::AddIdOption
* @todo Implement testAddIdOption(). * @todo Implement testAddIdOption().
*/ */
public function testAddIdOption() public function testAddIdOption()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('AddIdOption', $methods ), 'exists method AddIdOption' );
$this->assertTrue( in_array( 'AddIdOption', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::AddRawOption
* @todo Implement testAddRawOption(). * @todo Implement testAddRawOption().
*/ */
public function testAddRawOption() public function testAddRawOption()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('AddRawOption', $methods ), 'exists method AddRawOption' );
$this->assertTrue( in_array( 'AddRawOption', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::AddIdRawOption
* @todo Implement testAddIdRawOption(). * @todo Implement testAddIdRawOption().
*/ */
public function testAddIdRawOption() public function testAddIdRawOption()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('AddIdRawOption', $methods ), 'exists method AddIdRawOption' );
$this->assertTrue( in_array( 'AddIdRawOption', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::DisableOptionPos
* @todo Implement testDisableOptionPos(). * @todo Implement testDisableOptionPos().
*/ */
public function testDisableOptionPos() public function testDisableOptionPos()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('DisableOptionPos', $methods ), 'exists method DisableOptionPos' );
$this->assertTrue( in_array( 'DisableOptionPos', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::DisableOptionId
* @todo Implement testDisableOptionId(). * @todo Implement testDisableOptionId().
*/ */
public function testDisableOptionId() public function testDisableOptionId()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('DisableOptionId', $methods ), 'exists method DisableOptionId' );
$this->assertTrue( in_array( 'DisableOptionId', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::RenderOption
* @todo Implement testRenderOption(). * @todo Implement testRenderOption().
*/ */
public function testRenderOption() public function testRenderOption()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('RenderOption', $methods ), 'exists method RenderOption' );
$this->assertTrue( in_array( 'RenderOption', $methods ), 'seems like this function is outside this class' ); $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 * @covers Menu::generateArrayForTemplate
* @todo Implement testgenerateArrayForTemplate(). * @todo Implement testgenerateArrayForTemplate().
*/ */
public function testgenerateArrayForTemplate() public function testgenerateArrayForTemplate()
{ {
if (class_exists('Menu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Menu'); $this->assertTrue( in_array('generateArrayForTemplate', $methods ), 'exists method generateArrayForTemplate' );
$this->assertTrue( in_array( 'generateArrayForTemplate', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classNTLMSoapClientTest extends PHPUnit_Framework_TestCase
{
/**
* @covers NTLMSoapClient::__doRequest
* @todo Implement test__doRequest().
*/
public function test__doRequest()
{
if (class_exists('NTLMSoapClient')) {
$methods = get_class_methods( 'NTLMSoapClient');
$this->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' );
}
}
}

View File

@@ -1,217 +1,119 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.phpSqlParser.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.phpSqlParser.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:29.
*/ */
class classPHPSQLParserTest extends PHPUnit_Framework_TestCase
{
/**
* @var PHPSQLParser
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers PHPSQLParser::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('PHPSQLParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'PHPSQLParser'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $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 * @covers PHPSQLParser::parse
* @todo Implement testparse(). * @todo Implement testparse().
*/ */
public function testparse() public function testparse()
{ {
if (class_exists('PHPSQLParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'PHPSQLParser'); $this->assertTrue( in_array('parse', $methods ), 'exists method parse' );
$this->assertTrue( in_array( 'parse', $methods ), 'seems like this function is outside this class' ); $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 * @covers PHPSQLParser::process_insert
* @todo Implement testprocess_insert(). * @todo Implement testprocess_insert().
*/ */
public function testprocess_insert() public function testprocess_insert()
{ {
if (class_exists('PHPSQLParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'PHPSQLParser'); $this->assertTrue( in_array('process_insert', $methods ), 'exists method process_insert' );
$this->assertTrue( in_array( 'process_insert', $methods ), 'seems like this function is outside this class' ); $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 * @covers PHPSQLParser::load_reserved_words
* @todo Implement testload_reserved_words(). * @todo Implement testload_reserved_words().
*/ */
public function testload_reserved_words() public function testload_reserved_words()
{ {
if (class_exists('PHPSQLParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'PHPSQLParser'); $this->assertTrue( in_array('load_reserved_words', $methods ), 'exists method load_reserved_words' );
$this->assertTrue( in_array( 'load_reserved_words', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('PHPSQLParser', 'load_reserved_words');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,37 +1,88 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.pmException.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.pmException.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classPMExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var PMException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers PMException::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('PMException')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'PMException'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $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 * @covers PMException::__toString
* @todo Implement test__toString(). * @todo Implement test__toString().
*/ */
public function test__toString() public function test__toString()
{ {
if (class_exists('PMException')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'PMException'); $this->assertTrue( in_array('__toString', $methods ), 'exists method __toString' );
$this->assertTrue( in_array( '__toString', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('PMException', '__toString');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,25 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classPMServiceNTLMSoapClientTest extends PHPUnit_Framework_TestCase
{
/**
* @covers PMServiceNTLMSoapClient::setAuthClient
* @todo Implement testsetAuthClient().
*/
public function testsetAuthClient()
{
if (class_exists('PMServiceNTLMSoapClient')) {
$methods = get_class_methods( 'PMServiceNTLMSoapClient');
$this->assertTrue( in_array( 'setAuthClient', $methods ), 'seems like this function is outside this class' );
}
}
}

View File

@@ -1,49 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classPMServiceProviderNTLMStreamTest extends PHPUnit_Framework_TestCase
{
/**
* @covers PMServiceProviderNTLMStream::getuser
* @todo Implement testgetuser().
*/
public function testgetuser()
{
if (class_exists('PMServiceProviderNTLMStream')) {
$methods = get_class_methods( 'PMServiceProviderNTLMStream');
$this->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' );
}
}
}

View File

@@ -1,49 +1,139 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.publisher.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.publisher.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classPublisherTest extends PHPUnit_Framework_TestCase
{
/**
* @var Publisher
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Publisher::AddContent
* @todo Implement testAddContent(). * @todo Implement testAddContent().
*/ */
public function testAddContent() public function testAddContent()
{ {
if (class_exists('Publisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Publisher'); $this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' );
$this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' ); $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 * @covers Publisher::RenderContent
* @todo Implement testRenderContent(). * @todo Implement testRenderContent().
*/ */
public function testRenderContent() public function testRenderContent()
{ {
if (class_exists('Publisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Publisher'); $this->assertTrue( in_array('RenderContent', $methods ), 'exists method RenderContent' );
$this->assertTrue( in_array( 'RenderContent', $methods ), 'seems like this function is outside this class' ); $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 * @covers Publisher::RenderContent0
* @todo Implement testRenderContent0(). * @todo Implement testRenderContent0().
*/ */
public function testRenderContent0() public function testRenderContent0()
{ {
if (class_exists('Publisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Publisher'); $this->assertTrue( in_array('RenderContent0', $methods ), 'exists method RenderContent0' );
$this->assertTrue( in_array( 'RenderContent0', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,277 +1,434 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.restClient.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.restClient.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classRestClientTest extends PHPUnit_Framework_TestCase
{
/**
* @var RestClient
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers RestClient::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', '__construct');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::execute * @covers RestClient::execute
* @todo Implement testexecute(). * @todo Implement testexecute().
*/ */
public function testexecute() public function testexecute()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('execute', $methods ), 'exists method execute' );
$this->assertTrue( in_array( 'execute', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::getHeaders
* @todo Implement testgetHeaders(). * @todo Implement testgetHeaders().
*/ */
public function testgetHeaders() public function testgetHeaders()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' );
$this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', 'getHeaders');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::getResponse * @covers RestClient::getResponse
* @todo Implement testgetResponse(). * @todo Implement testgetResponse().
*/ */
public function testgetResponse() public function testgetResponse()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('getResponse', $methods ), 'exists method getResponse' );
$this->assertTrue( in_array( 'getResponse', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', 'getResponse');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::getResponseCode * @covers RestClient::getResponseCode
* @todo Implement testgetResponseCode(). * @todo Implement testgetResponseCode().
*/ */
public function testgetResponseCode() public function testgetResponseCode()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('getResponseCode', $methods ), 'exists method getResponseCode' );
$this->assertTrue( in_array( 'getResponseCode', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', 'getResponseCode');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::getResponseMessage * @covers RestClient::getResponseMessage
* @todo Implement testgetResponseMessage(). * @todo Implement testgetResponseMessage().
*/ */
public function testgetResponseMessage() public function testgetResponseMessage()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('getResponseMessage', $methods ), 'exists method getResponseMessage' );
$this->assertTrue( in_array( 'getResponseMessage', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', 'getResponseMessage');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::getResponseContentType * @covers RestClient::getResponseContentType
* @todo Implement testgetResponseContentType(). * @todo Implement testgetResponseContentType().
*/ */
public function testgetResponseContentType() public function testgetResponseContentType()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('getResponseContentType', $methods ), 'exists method getResponseContentType' );
$this->assertTrue( in_array( 'getResponseContentType', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', 'getResponseContentType');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::setNoFollow * @covers RestClient::setNoFollow
* @todo Implement testsetNoFollow(). * @todo Implement testsetNoFollow().
*/ */
public function testsetNoFollow() public function testsetNoFollow()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('setNoFollow', $methods ), 'exists method setNoFollow' );
$this->assertTrue( in_array( 'setNoFollow', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', 'setNoFollow');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::close * @covers RestClient::close
* @todo Implement testclose(). * @todo Implement testclose().
*/ */
public function testclose() public function testclose()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('close', $methods ), 'exists method close' );
$this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('RestClient', 'close');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers RestClient::setUrl * @covers RestClient::setUrl
* @todo Implement testsetUrl(). * @todo Implement testsetUrl().
*/ */
public function testsetUrl() public function testsetUrl()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('setUrl', $methods ), 'exists method setUrl' );
$this->assertTrue( in_array( 'setUrl', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::setContentType
* @todo Implement testsetContentType(). * @todo Implement testsetContentType().
*/ */
public function testsetContentType() public function testsetContentType()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' );
$this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::setCredentials
* @todo Implement testsetCredentials(). * @todo Implement testsetCredentials().
*/ */
public function testsetCredentials() public function testsetCredentials()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('setCredentials', $methods ), 'exists method setCredentials' );
$this->assertTrue( in_array( 'setCredentials', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::setMethod
* @todo Implement testsetMethod(). * @todo Implement testsetMethod().
*/ */
public function testsetMethod() public function testsetMethod()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('setMethod', $methods ), 'exists method setMethod' );
$this->assertTrue( in_array( 'setMethod', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::setParameters
* @todo Implement testsetParameters(). * @todo Implement testsetParameters().
*/ */
public function testsetParameters() public function testsetParameters()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('setParameters', $methods ), 'exists method setParameters' );
$this->assertTrue( in_array( 'setParameters', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::createClient
* @todo Implement testcreateClient(). * @todo Implement testcreateClient().
*/ */
public function testcreateClient() public function testcreateClient()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('createClient', $methods ), 'exists method createClient' );
$this->assertTrue( in_array( 'createClient', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::post
* @todo Implement testpost(). * @todo Implement testpost().
*/ */
public function testpost() public function testpost()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('post', $methods ), 'exists method post' );
$this->assertTrue( in_array( 'post', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::put
* @todo Implement testput(). * @todo Implement testput().
*/ */
public function testput() public function testput()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('put', $methods ), 'exists method put' );
$this->assertTrue( in_array( 'put', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::get
* @todo Implement testget(). * @todo Implement testget().
*/ */
public function testget() public function testget()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('get', $methods ), 'exists method get' );
$this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::delete
* @todo Implement testdelete(). * @todo Implement testdelete().
*/ */
public function testdelete() public function testdelete()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
$this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' ); $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 * @covers RestClient::call
* @todo Implement testcall(). * @todo Implement testcall().
*/ */
public function testcall() public function testcall()
{ {
if (class_exists('RestClient')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'RestClient'); $this->assertTrue( in_array('call', $methods ), 'exists method call' );
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,289 +1,553 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.table.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.table.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var Table
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Table::Table
* @todo Implement testTable(). * @todo Implement testTable().
*/ */
public function testTable() public function testTable()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('Table', $methods ), 'exists method Table' );
$this->assertTrue( in_array( 'Table', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::SetTo
* @todo Implement testSetTo(). * @todo Implement testSetTo().
*/ */
public function testSetTo() public function testSetTo()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' );
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::SetSource
* @todo Implement testSetSource(). * @todo Implement testSetSource().
*/ */
public function testSetSource() public function testSetSource()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('SetSource', $methods ), 'exists method SetSource' );
$this->assertTrue( in_array( 'SetSource', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::GetSource
* @todo Implement testGetSource(). * @todo Implement testGetSource().
*/ */
public function testGetSource() public function testGetSource()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('GetSource', $methods ), 'exists method GetSource' );
$this->assertTrue( in_array( 'GetSource', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'GetSource');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::TotalCount * @covers Table::TotalCount
* @todo Implement testTotalCount(). * @todo Implement testTotalCount().
*/ */
public function testTotalCount() public function testTotalCount()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('TotalCount', $methods ), 'exists method TotalCount' );
$this->assertTrue( in_array( 'TotalCount', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'TotalCount');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::Count * @covers Table::Count
* @todo Implement testCount(). * @todo Implement testCount().
*/ */
public function testCount() public function testCount()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('Count', $methods ), 'exists method Count' );
$this->assertTrue( in_array( 'Count', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'Count');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::CurRow * @covers Table::CurRow
* @todo Implement testCurRow(). * @todo Implement testCurRow().
*/ */
public function testCurRow() public function testCurRow()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('CurRow', $methods ), 'exists method CurRow' );
$this->assertTrue( in_array( 'CurRow', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'CurRow');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::ColumnCount * @covers Table::ColumnCount
* @todo Implement testColumnCount(). * @todo Implement testColumnCount().
*/ */
public function testColumnCount() public function testColumnCount()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('ColumnCount', $methods ), 'exists method ColumnCount' );
$this->assertTrue( in_array( 'ColumnCount', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'ColumnCount');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::Read * @covers Table::Read
* @todo Implement testRead(). * @todo Implement testRead().
*/ */
public function testRead() public function testRead()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('Read', $methods ), 'exists method Read' );
$this->assertTrue( in_array( 'Read', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'Read');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::Seek * @covers Table::Seek
* @todo Implement testSeek(). * @todo Implement testSeek().
*/ */
public function testSeek() public function testSeek()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('Seek', $methods ), 'exists method Seek' );
$this->assertTrue( in_array( 'Seek', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::MoveFirst
* @todo Implement testMoveFirst(). * @todo Implement testMoveFirst().
*/ */
public function testMoveFirst() public function testMoveFirst()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('MoveFirst', $methods ), 'exists method MoveFirst' );
$this->assertTrue( in_array( 'MoveFirst', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'MoveFirst');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::EOF * @covers Table::EOF
* @todo Implement testEOF(). * @todo Implement testEOF().
*/ */
public function testEOF() public function testEOF()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('EOF', $methods ), 'exists method EOF' );
$this->assertTrue( in_array( 'EOF', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Table', 'EOF');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Table::AddColumn * @covers Table::AddColumn
* @todo Implement testAddColumn(). * @todo Implement testAddColumn().
*/ */
public function testAddColumn() public function testAddColumn()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('AddColumn', $methods ), 'exists method AddColumn' );
$this->assertTrue( in_array( 'AddColumn', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::AddRawColumn
* @todo Implement testAddRawColumn(). * @todo Implement testAddRawColumn().
*/ */
public function testAddRawColumn() public function testAddRawColumn()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('AddRawColumn', $methods ), 'exists method AddRawColumn' );
$this->assertTrue( in_array( 'AddRawColumn', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::RenderTitle
* @todo Implement testRenderTitle(). * @todo Implement testRenderTitle().
*/ */
public function testRenderTitle() public function testRenderTitle()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('RenderTitle', $methods ), 'exists method RenderTitle' );
$this->assertTrue( in_array( 'RenderTitle', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::RenderTitle_ajax
* @todo Implement testRenderTitle_ajax(). * @todo Implement testRenderTitle_ajax().
*/ */
public function testRenderTitle_ajax() public function testRenderTitle_ajax()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('RenderTitle_ajax', $methods ), 'exists method RenderTitle_ajax' );
$this->assertTrue( in_array( 'RenderTitle_ajax', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::RenderTitle2
* @todo Implement testRenderTitle2(). * @todo Implement testRenderTitle2().
*/ */
public function testRenderTitle2() public function testRenderTitle2()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('RenderTitle2', $methods ), 'exists method RenderTitle2' );
$this->assertTrue( in_array( 'RenderTitle2', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::RenderColumn
* @todo Implement testRenderColumn(). * @todo Implement testRenderColumn().
*/ */
public function testRenderColumn() public function testRenderColumn()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('RenderColumn', $methods ), 'exists method RenderColumn' );
$this->assertTrue( in_array( 'RenderColumn', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::SetAction
* @todo Implement testSetAction(). * @todo Implement testSetAction().
*/ */
public function testSetAction() public function testSetAction()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('SetAction', $methods ), 'exists method SetAction' );
$this->assertTrue( in_array( 'SetAction', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::setTranslate
* @todo Implement testsetTranslate(). * @todo Implement testsetTranslate().
*/ */
public function testsetTranslate() public function testsetTranslate()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('setTranslate', $methods ), 'exists method setTranslate' );
$this->assertTrue( in_array( 'setTranslate', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::translateValue
* @todo Implement testtranslateValue(). * @todo Implement testtranslateValue().
*/ */
public function testtranslateValue() public function testtranslateValue()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('translateValue', $methods ), 'exists method translateValue' );
$this->assertTrue( in_array( 'translateValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::setContext
* @todo Implement testsetContext(). * @todo Implement testsetContext().
*/ */
public function testsetContext() public function testsetContext()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('setContext', $methods ), 'exists method setContext' );
$this->assertTrue( in_array( 'setContext', $methods ), 'seems like this function is outside this class' ); $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 * @covers Table::ParsingFromHtml
* @todo Implement testParsingFromHtml(). * @todo Implement testParsingFromHtml().
*/ */
public function testParsingFromHtml() public function testParsingFromHtml()
{ {
if (class_exists('Table')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Table'); $this->assertTrue( in_array('ParsingFromHtml', $methods ), 'exists method ParsingFromHtml' );
$this->assertTrue( in_array( 'ParsingFromHtml', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,109 +1,195 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.templatePower.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.templatePower.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classTemplatePowerParserTest extends PHPUnit_Framework_TestCase
{
/**
* @var TemplatePowerParser
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers TemplatePowerParser::TemplatePowerParser
* @todo Implement testTemplatePowerParser(). * @todo Implement testTemplatePowerParser().
*/ */
public function testTemplatePowerParser() public function testTemplatePowerParser()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('TemplatePowerParser', $methods ), 'exists method TemplatePowerParser' );
$this->assertTrue( in_array( 'TemplatePowerParser', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePowerParser::__errorAlert
* @todo Implement test__errorAlert(). * @todo Implement test__errorAlert().
*/ */
public function test__errorAlert() public function test__errorAlert()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('__errorAlert', $methods ), 'exists method __errorAlert' );
$this->assertTrue( in_array( '__errorAlert', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePowerParser::__prepare
* @todo Implement test__prepare(). * @todo Implement test__prepare().
*/ */
public function test__prepare() public function test__prepare()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('__prepare', $methods ), 'exists method __prepare' );
$this->assertTrue( in_array( '__prepare', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePowerParser', '__prepare');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePowerParser::__cleanUp * @covers TemplatePowerParser::__cleanUp
* @todo Implement test__cleanUp(). * @todo Implement test__cleanUp().
*/ */
public function test__cleanUp() public function test__cleanUp()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('__cleanUp', $methods ), 'exists method __cleanUp' );
$this->assertTrue( in_array( '__cleanUp', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePowerParser', '__cleanUp');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePowerParser::__prepareTemplate * @covers TemplatePowerParser::__prepareTemplate
* @todo Implement test__prepareTemplate(). * @todo Implement test__prepareTemplate().
*/ */
public function test__prepareTemplate() public function test__prepareTemplate()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('__prepareTemplate', $methods ), 'exists method __prepareTemplate' );
$this->assertTrue( in_array( '__prepareTemplate', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePowerParser::__parseTemplate
* @todo Implement test__parseTemplate(). * @todo Implement test__parseTemplate().
*/ */
public function test__parseTemplate() public function test__parseTemplate()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('__parseTemplate', $methods ), 'exists method __parseTemplate' );
$this->assertTrue( in_array( '__parseTemplate', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePowerParser::version
* @todo Implement testversion(). * @todo Implement testversion().
*/ */
public function testversion() public function testversion()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('version', $methods ), 'exists method version' );
$this->assertTrue( in_array( 'version', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePowerParser', 'version');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePowerParser::assignInclude * @covers TemplatePowerParser::assignInclude
* @todo Implement testassignInclude(). * @todo Implement testassignInclude().
*/ */
public function testassignInclude() public function testassignInclude()
{ {
if (class_exists('TemplatePowerParser')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePowerParser'); $this->assertTrue( in_array('assignInclude', $methods ), 'exists method assignInclude' );
$this->assertTrue( in_array( 'assignInclude', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,217 +1,343 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.templatePower.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.templatePower.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classTemplatePowerTest extends PHPUnit_Framework_TestCase
{
/**
* @var TemplatePower
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers TemplatePower::TemplatePower
* @todo Implement testTemplatePower(). * @todo Implement testTemplatePower().
*/ */
public function testTemplatePower() public function testTemplatePower()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('TemplatePower', $methods ), 'exists method TemplatePower' );
$this->assertTrue( in_array( 'TemplatePower', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::__deSerializeTPL
* @todo Implement test__deSerializeTPL(). * @todo Implement test__deSerializeTPL().
*/ */
public function test__deSerializeTPL() public function test__deSerializeTPL()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('__deSerializeTPL', $methods ), 'exists method __deSerializeTPL' );
$this->assertTrue( in_array( '__deSerializeTPL', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::__makeContentRoot
* @todo Implement test__makeContentRoot(). * @todo Implement test__makeContentRoot().
*/ */
public function test__makeContentRoot() public function test__makeContentRoot()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('__makeContentRoot', $methods ), 'exists method __makeContentRoot' );
$this->assertTrue( in_array( '__makeContentRoot', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePower', '__makeContentRoot');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePower::__assign * @covers TemplatePower::__assign
* @todo Implement test__assign(). * @todo Implement test__assign().
*/ */
public function test__assign() public function test__assign()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('__assign', $methods ), 'exists method __assign' );
$this->assertTrue( in_array( '__assign', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::__assignGlobal
* @todo Implement test__assignGlobal(). * @todo Implement test__assignGlobal().
*/ */
public function test__assignGlobal() public function test__assignGlobal()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('__assignGlobal', $methods ), 'exists method __assignGlobal' );
$this->assertTrue( in_array( '__assignGlobal', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::__outputContent
* @todo Implement test__outputContent(). * @todo Implement test__outputContent().
*/ */
public function test__outputContent() public function test__outputContent()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('__outputContent', $methods ), 'exists method __outputContent' );
$this->assertTrue( in_array( '__outputContent', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::__printVars
* @todo Implement test__printVars(). * @todo Implement test__printVars().
*/ */
public function test__printVars() public function test__printVars()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('__printVars', $methods ), 'exists method __printVars' );
$this->assertTrue( in_array( '__printVars', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePower', '__printVars');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePower::serializedBase * @covers TemplatePower::serializedBase
* @todo Implement testserializedBase(). * @todo Implement testserializedBase().
*/ */
public function testserializedBase() public function testserializedBase()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('serializedBase', $methods ), 'exists method serializedBase' );
$this->assertTrue( in_array( 'serializedBase', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePower', 'serializedBase');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePower::showUnAssigned * @covers TemplatePower::showUnAssigned
* @todo Implement testshowUnAssigned(). * @todo Implement testshowUnAssigned().
*/ */
public function testshowUnAssigned() public function testshowUnAssigned()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('showUnAssigned', $methods ), 'exists method showUnAssigned' );
$this->assertTrue( in_array( 'showUnAssigned', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::prepare
* @todo Implement testprepare(). * @todo Implement testprepare().
*/ */
public function testprepare() public function testprepare()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' );
$this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePower', 'prepare');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePower::newBlock * @covers TemplatePower::newBlock
* @todo Implement testnewBlock(). * @todo Implement testnewBlock().
*/ */
public function testnewBlock() public function testnewBlock()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('newBlock', $methods ), 'exists method newBlock' );
$this->assertTrue( in_array( 'newBlock', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::assignGlobal
* @todo Implement testassignGlobal(). * @todo Implement testassignGlobal().
*/ */
public function testassignGlobal() public function testassignGlobal()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('assignGlobal', $methods ), 'exists method assignGlobal' );
$this->assertTrue( in_array( 'assignGlobal', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::assign
* @todo Implement testassign(). * @todo Implement testassign().
*/ */
public function testassign() public function testassign()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('assign', $methods ), 'exists method assign' );
$this->assertTrue( in_array( 'assign', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::gotoBlock
* @todo Implement testgotoBlock(). * @todo Implement testgotoBlock().
*/ */
public function testgotoBlock() public function testgotoBlock()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('gotoBlock', $methods ), 'exists method gotoBlock' );
$this->assertTrue( in_array( 'gotoBlock', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::getVarValue
* @todo Implement testgetVarValue(). * @todo Implement testgetVarValue().
*/ */
public function testgetVarValue() public function testgetVarValue()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('getVarValue', $methods ), 'exists method getVarValue' );
$this->assertTrue( in_array( 'getVarValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers TemplatePower::printToScreen
* @todo Implement testprintToScreen(). * @todo Implement testprintToScreen().
*/ */
public function testprintToScreen() public function testprintToScreen()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('printToScreen', $methods ), 'exists method printToScreen' );
$this->assertTrue( in_array( 'printToScreen', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePower', 'printToScreen');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers TemplatePower::getOutputContent * @covers TemplatePower::getOutputContent
* @todo Implement testgetOutputContent(). * @todo Implement testgetOutputContent().
*/ */
public function testgetOutputContent() public function testgetOutputContent()
{ {
if (class_exists('TemplatePower')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'TemplatePower'); $this->assertTrue( in_array('getOutputContent', $methods ), 'exists method getOutputContent' );
$this->assertTrue( in_array( 'getOutputContent', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('TemplatePower', 'getOutputContent');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,85 +1,147 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.tree.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.tree.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classTreeTest extends PHPUnit_Framework_TestCase
{
/**
* @var Tree
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Tree::Tree
* @todo Implement testTree(). * @todo Implement testTree().
*/ */
public function testTree() public function testTree()
{ {
if (class_exists('Tree')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Tree'); $this->assertTrue( in_array('Tree', $methods ), 'exists method Tree' );
$this->assertTrue( in_array( 'Tree', $methods ), 'seems like this function is outside this class' ); $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 * @covers Tree::addChild
* @todo Implement testaddChild(). * @todo Implement testaddChild().
*/ */
public function testaddChild() public function testaddChild()
{ {
if (class_exists('Tree')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Tree'); $this->assertTrue( in_array('addChild', $methods ), 'exists method addChild' );
$this->assertTrue( in_array( 'addChild', $methods ), 'seems like this function is outside this class' ); $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 * @covers Tree::printPlus
* @todo Implement testprintPlus(). * @todo Implement testprintPlus().
*/ */
public function testprintPlus() public function testprintPlus()
{ {
if (class_exists('Tree')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Tree'); $this->assertTrue( in_array('printPlus', $methods ), 'exists method printPlus' );
$this->assertTrue( in_array( 'printPlus', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Tree', 'printPlus');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Tree::printLabel * @covers Tree::printLabel
* @todo Implement testprintLabel(). * @todo Implement testprintLabel().
*/ */
public function testprintLabel() public function testprintLabel()
{ {
if (class_exists('Tree')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Tree'); $this->assertTrue( in_array('printLabel', $methods ), 'exists method printLabel' );
$this->assertTrue( in_array( 'printLabel', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Tree', 'printLabel');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Tree::printContent * @covers Tree::printContent
* @todo Implement testprintContent(). * @todo Implement testprintContent().
*/ */
public function testprintContent() public function testprintContent()
{ {
if (class_exists('Tree')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Tree'); $this->assertTrue( in_array('printContent', $methods ), 'exists method printContent' );
$this->assertTrue( in_array( 'printContent', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Tree', 'printContent');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Tree::render * @covers Tree::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('Tree')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Tree'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Tree', 'render');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,61 +1,83 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.webResource.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.webResource.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classWebResourceTest extends PHPUnit_Framework_TestCase
{
/**
* @var WebResource
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers WebResource::WebResource
* @todo Implement testWebResource(). * @todo Implement testWebResource().
*/ */
public function testWebResource() public function testWebResource()
{ {
if (class_exists('WebResource')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'WebResource'); $this->assertTrue( in_array('WebResource', $methods ), 'exists method WebResource' );
$this->assertTrue( in_array( 'WebResource', $methods ), 'seems like this function is outside this class' ); $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 * @covers WebResource::_encode
* @todo Implement test_encode(). * @todo Implement test_encode().
*/ */
public function test_encode() public function test_encode()
{ {
if (class_exists('WebResource')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'WebResource'); $this->assertTrue( in_array('_encode', $methods ), 'exists method _encode' );
$this->assertTrue( in_array( '_encode', $methods ), 'seems like this function is outside this class' ); $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' );
}
} }
} }

View File

@@ -1,61 +1,124 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXmlFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm::parseFile
* @todo Implement testparseFile(). * @todo Implement testparseFile().
*/ */
public function testparseFile() public function testparseFile()
{ {
if (class_exists('XmlForm')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm'); $this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm::setValues
* @todo Implement testsetValues(). * @todo Implement testsetValues().
*/ */
public function testsetValues() public function testsetValues()
{ {
if (class_exists('XmlForm')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm'); $this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' );
$this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm::cloneObject
* @todo Implement testcloneObject(). * @todo Implement testcloneObject().
*/ */
public function testcloneObject() public function testcloneObject()
{ {
if (class_exists('XmlForm')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm'); $this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
$this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('XmlForm', 'cloneObject');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,325 +1,506 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_FieldTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field::XmlForm_Field
* @todo Implement testXmlForm_Field(). * @todo Implement testXmlForm_Field().
*/ */
public function testXmlForm_Field() public function testXmlForm_Field()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('XmlForm_Field', $methods ), 'exists method XmlForm_Field' );
$this->assertTrue( in_array( 'XmlForm_Field', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::executeSQL
* @todo Implement testexecuteSQL(). * @todo Implement testexecuteSQL().
*/ */
public function testexecuteSQL() public function testexecuteSQL()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('executeSQL', $methods ), 'exists method executeSQL' );
$this->assertTrue( in_array( 'executeSQL', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::htmlentities
* @todo Implement testhtmlentities(). * @todo Implement testhtmlentities().
*/ */
public function testhtmlentities() public function testhtmlentities()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('htmlentities', $methods ), 'exists method htmlentities' );
$this->assertTrue( in_array( 'htmlentities', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::renderTable
* @todo Implement testrenderTable(). * @todo Implement testrenderTable().
*/ */
public function testrenderTable() public function testrenderTable()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::dependentOf
* @todo Implement testdependentOf(). * @todo Implement testdependentOf().
*/ */
public function testdependentOf() public function testdependentOf()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('dependentOf', $methods ), 'exists method dependentOf' );
$this->assertTrue( in_array( 'dependentOf', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('XmlForm_Field', 'dependentOf');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers XmlForm_Field::mask * @covers XmlForm_Field::mask
* @todo Implement testmask(). * @todo Implement testmask().
*/ */
public function testmask() public function testmask()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('mask', $methods ), 'exists method mask' );
$this->assertTrue( in_array( 'mask', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::getAttributes
* @todo Implement testgetAttributes(). * @todo Implement testgetAttributes().
*/ */
public function testgetAttributes() public function testgetAttributes()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('getAttributes', $methods ), 'exists method getAttributes' );
$this->assertTrue( in_array( 'getAttributes', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('XmlForm_Field', 'getAttributes');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers XmlForm_Field::getEvents * @covers XmlForm_Field::getEvents
* @todo Implement testgetEvents(). * @todo Implement testgetEvents().
*/ */
public function testgetEvents() public function testgetEvents()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('getEvents', $methods ), 'exists method getEvents' );
$this->assertTrue( in_array( 'getEvents', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('XmlForm_Field', 'getEvents');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers XmlForm_Field::attachEvents * @covers XmlForm_Field::attachEvents
* @todo Implement testattachEvents(). * @todo Implement testattachEvents().
*/ */
public function testattachEvents() public function testattachEvents()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::createXmlNode
* @todo Implement testcreateXmlNode(). * @todo Implement testcreateXmlNode().
*/ */
public function testcreateXmlNode() public function testcreateXmlNode()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('createXmlNode', $methods ), 'exists method createXmlNode' );
$this->assertTrue( in_array( 'createXmlNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::updateXmlNode
* @todo Implement testupdateXmlNode(). * @todo Implement testupdateXmlNode().
*/ */
public function testupdateXmlNode() public function testupdateXmlNode()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('updateXmlNode', $methods ), 'exists method updateXmlNode' );
$this->assertTrue( in_array( 'updateXmlNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::getXmlAttributes
* @todo Implement testgetXmlAttributes(). * @todo Implement testgetXmlAttributes().
*/ */
public function testgetXmlAttributes() public function testgetXmlAttributes()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('getXmlAttributes', $methods ), 'exists method getXmlAttributes' );
$this->assertTrue( in_array( 'getXmlAttributes', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::maskValue
* @todo Implement testmaskValue(). * @todo Implement testmaskValue().
*/ */
public function testmaskValue() public function testmaskValue()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::cloneObject
* @todo Implement testcloneObject(). * @todo Implement testcloneObject().
*/ */
public function testcloneObject() public function testcloneObject()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
$this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('XmlForm_Field', 'cloneObject');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers XmlForm_Field::getPMTableValue * @covers XmlForm_Field::getPMTableValue
* @todo Implement testgetPMTableValue(). * @todo Implement testgetPMTableValue().
*/ */
public function testgetPMTableValue() public function testgetPMTableValue()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('getPMTableValue', $methods ), 'exists method getPMTableValue' );
$this->assertTrue( in_array( 'getPMTableValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::NSRequiredValue
* @todo Implement testNSRequiredValue(). * @todo Implement testNSRequiredValue().
*/ */
public function testNSRequiredValue() public function testNSRequiredValue()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('NSRequiredValue', $methods ), 'exists method NSRequiredValue' );
$this->assertTrue( in_array( 'NSRequiredValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::NSGridLabel
* @todo Implement testNSGridLabel(). * @todo Implement testNSGridLabel().
*/ */
public function testNSGridLabel() public function testNSGridLabel()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('NSGridLabel', $methods ), 'exists method NSGridLabel' );
$this->assertTrue( in_array( 'NSGridLabel', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::NSDefaultValue
* @todo Implement testNSDefaultValue(). * @todo Implement testNSDefaultValue().
*/ */
public function testNSDefaultValue() public function testNSDefaultValue()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('NSDefaultValue', $methods ), 'exists method NSDefaultValue' );
$this->assertTrue( in_array( 'NSDefaultValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::NSGridType
* @todo Implement testNSGridType(). * @todo Implement testNSGridType().
*/ */
public function testNSGridType() public function testNSGridType()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('NSGridType', $methods ), 'exists method NSGridType' );
$this->assertTrue( in_array( 'NSGridType', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::NSDependentFields
* @todo Implement testNSDependentFields(). * @todo Implement testNSDependentFields().
*/ */
public function testNSDependentFields() public function testNSDependentFields()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('NSDependentFields', $methods ), 'exists method NSDependentFields' );
$this->assertTrue( in_array( 'NSDependentFields', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field::renderHint
* @todo Implement testrenderHint(). * @todo Implement testrenderHint().
*/ */
public function testrenderHint() public function testrenderHint()
{ {
if (class_exists('XmlForm_Field')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field'); $this->assertTrue( in_array('renderHint', $methods ), 'exists method renderHint' );
$this->assertTrue( in_array( 'renderHint', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('XmlForm_Field', 'renderHint');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,25 +1,71 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_ButtonTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Button
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Button::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Button')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Button'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,67 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CaptionCurrencyTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CaptionCurrency
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_CaptionCurrency::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_CaptionCurrency')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_CaptionCurrency'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,67 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CaptionPercentageTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CaptionPercentage
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_CaptionPercentage::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_CaptionPercentage')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_CaptionPercentage'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,107 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CaptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Caption
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Caption::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field_Caption')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Caption'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Caption::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Caption')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Caption'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,71 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CheckGroupTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CheckGroup
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_CheckGroup::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_CheckGroup')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_CheckGroup'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,67 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CheckGroupViewTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_CheckGroupView
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_CheckGroupView::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_CheckGroupView')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_CheckGroupView'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,67 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_Checkbox2Test extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkbox2
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Checkbox2::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Checkbox2')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Checkbox2'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,111 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CheckboxTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkbox
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Checkbox::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Checkbox')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Checkbox'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Checkbox::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Checkbox')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Checkbox'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Checkbox::maskValue
* @todo Implement testmaskValue(). * @todo Implement testmaskValue().
*/ */
public function testmaskValue() public function testmaskValue()
{ {
if (class_exists('XmlForm_Field_Checkbox')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Checkbox'); $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,111 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CheckboxptTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Checkboxpt
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Checkboxpt::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Checkboxpt')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Checkboxpt::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Checkboxpt')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Checkboxpt::maskValue
* @todo Implement testmaskValue(). * @todo Implement testmaskValue().
*/ */
public function testmaskValue() public function testmaskValue()
{ {
if (class_exists('XmlForm_Field_Checkboxpt')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt'); $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,91 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_CurrencyTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Currency
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Currency::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Currency')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Currency'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Currency::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Currency')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Currency'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,87 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXmlForm_Field_DVEditorTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_DVEditor
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_DVEditor::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_DVEditor')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_DVEditor'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_DVEditor::attachEvents
* @todo Implement testattachEvents(). * @todo Implement testattachEvents().
*/ */
public function testattachEvents() public function testattachEvents()
{ {
if (class_exists('XmlForm_Field_DVEditor')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_DVEditor'); $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,73 +1,151 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_Date2Test extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Date2
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Date2::verifyDateFormat
* @todo Implement testverifyDateFormat(). * @todo Implement testverifyDateFormat().
*/ */
public function testverifyDateFormat() public function testverifyDateFormat()
{ {
if (class_exists('XmlForm_Field_Date2')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date2'); $this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date2::isvalidBeforeFormat
* @todo Implement testisvalidBeforeFormat(). * @todo Implement testisvalidBeforeFormat().
*/ */
public function testisvalidBeforeFormat() public function testisvalidBeforeFormat()
{ {
if (class_exists('XmlForm_Field_Date2')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date2'); $this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date2::calculateBeforeFormat
* @todo Implement testcalculateBeforeFormat(). * @todo Implement testcalculateBeforeFormat().
*/ */
public function testcalculateBeforeFormat() public function testcalculateBeforeFormat()
{ {
if (class_exists('XmlForm_Field_Date2')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date2'); $this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date2::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Date2')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date2'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date2::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Date2')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date2'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,97 +1,199 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_Date5Test extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Date5
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Date5::verifyDateFormat
* @todo Implement testverifyDateFormat(). * @todo Implement testverifyDateFormat().
*/ */
public function testverifyDateFormat() public function testverifyDateFormat()
{ {
if (class_exists('XmlForm_Field_Date5')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date5'); $this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date5::isvalidBeforeFormat
* @todo Implement testisvalidBeforeFormat(). * @todo Implement testisvalidBeforeFormat().
*/ */
public function testisvalidBeforeFormat() public function testisvalidBeforeFormat()
{ {
if (class_exists('XmlForm_Field_Date5')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date5'); $this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date5::calculateBeforeFormat
* @todo Implement testcalculateBeforeFormat(). * @todo Implement testcalculateBeforeFormat().
*/ */
public function testcalculateBeforeFormat() public function testcalculateBeforeFormat()
{ {
if (class_exists('XmlForm_Field_Date5')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date5'); $this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date5::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Date5')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date5'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date5::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Date5')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date5'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date5::__draw_widget
* @todo Implement test__draw_widget(). * @todo Implement test__draw_widget().
*/ */
public function test__draw_widget() public function test__draw_widget()
{ {
if (class_exists('XmlForm_Field_Date5')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date5'); $this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' );
$this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date5::getSplitDate
* @todo Implement testgetSplitDate(). * @todo Implement testgetSplitDate().
*/ */
public function testgetSplitDate() public function testgetSplitDate()
{ {
if (class_exists('XmlForm_Field_Date5')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date5'); $this->assertTrue( in_array('getSplitDate', $methods ), 'exists method getSplitDate' );
$this->assertTrue( in_array( 'getSplitDate', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,85 +1,175 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_DateTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Date
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Date::verifyDateFormat
* @todo Implement testverifyDateFormat(). * @todo Implement testverifyDateFormat().
*/ */
public function testverifyDateFormat() public function testverifyDateFormat()
{ {
if (class_exists('XmlForm_Field_Date')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date'); $this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date::isvalidBeforeFormat
* @todo Implement testisvalidBeforeFormat(). * @todo Implement testisvalidBeforeFormat().
*/ */
public function testisvalidBeforeFormat() public function testisvalidBeforeFormat()
{ {
if (class_exists('XmlForm_Field_Date')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date'); $this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date::calculateBeforeFormat
* @todo Implement testcalculateBeforeFormat(). * @todo Implement testcalculateBeforeFormat().
*/ */
public function testcalculateBeforeFormat() public function testcalculateBeforeFormat()
{ {
if (class_exists('XmlForm_Field_Date')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date'); $this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Date')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Date')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Date::__draw_widget
* @todo Implement test__draw_widget(). * @todo Implement test__draw_widget().
*/ */
public function test__draw_widget() public function test__draw_widget()
{ {
if (class_exists('XmlForm_Field_Date')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Date'); $this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' );
$this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,67 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_DateViewTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_DateView
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_DateView::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_DateView')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_DateView'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,137 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_DropdownTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Dropdown
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Dropdown::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field_Dropdown')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Dropdown'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Dropdown::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Dropdown')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Dropdown'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Dropdown::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Dropdown')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Dropdown'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,91 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_DropdownptTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Dropdownpt
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Dropdownpt::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Dropdownpt')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Dropdownpt'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Dropdownpt::maskValue
* @todo Implement testmaskValue(). * @todo Implement testmaskValue().
*/ */
public function testmaskValue() public function testmaskValue()
{ {
if (class_exists('XmlForm_Field_Dropdownpt')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Dropdownpt'); $this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,13 +1,49 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXmlForm_Field_FastSearchTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_FastSearch
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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
{
} }

View File

@@ -1,25 +1,67 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_FileTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_File
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_File::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_File')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_File'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,73 +1,155 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_GridTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Grid
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Grid::XmlForm_Field_Grid
* @todo Implement testXmlForm_Field_Grid(). * @todo Implement testXmlForm_Field_Grid().
*/ */
public function testXmlForm_Field_Grid() public function testXmlForm_Field_Grid()
{ {
if (class_exists('XmlForm_Field_Grid')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Grid'); $this->assertTrue( in_array('XmlForm_Field_Grid', $methods ), 'exists method XmlForm_Field_Grid' );
$this->assertTrue( in_array( 'XmlForm_Field_Grid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Grid::parseFile
* @todo Implement testparseFile(). * @todo Implement testparseFile().
*/ */
public function testparseFile() public function testparseFile()
{ {
if (class_exists('XmlForm_Field_Grid')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Grid'); $this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Grid::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Grid')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Grid'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Grid::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Grid')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Grid'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Grid::flipValues
* @todo Implement testflipValues(). * @todo Implement testflipValues().
*/ */
public function testflipValues() public function testflipValues()
{ {
if (class_exists('XmlForm_Field_Grid')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Grid'); $this->assertTrue( in_array('flipValues', $methods ), 'exists method flipValues' );
$this->assertTrue( in_array( 'flipValues', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,87 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.htmlArea.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.dvEditor.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classXmlForm_Field_HTMLTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_HTML
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_HTML::attachEvents
* @todo Implement testattachEvents(). * @todo Implement testattachEvents().
*/ */
public function testattachEvents() public function testattachEvents()
{ {
if (class_exists('XmlForm_Field_HTML')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_HTML'); $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,109 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_HiddenTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Hidden
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Hidden::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Hidden')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Hidden'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Hidden::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Hidden')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Hidden'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Hidden::renderTable
* @todo Implement testrenderTable(). * @todo Implement testrenderTable().
*/ */
public function testrenderTable() public function testrenderTable()
{ {
if (class_exists('XmlForm_Field_Hidden')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Hidden'); $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,70 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXmlForm_Field_ImageTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Image
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Image::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Image')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Image'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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' );
}
} }
} }

View File

@@ -1,61 +1,133 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_JavaScriptTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_JavaScript
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_JavaScript::XmlForm_Field_JavaScript
* @todo Implement testXmlForm_Field_JavaScript(). * @todo Implement testXmlForm_Field_JavaScript().
*/ */
public function testXmlForm_Field_JavaScript() public function testXmlForm_Field_JavaScript()
{ {
if (class_exists('XmlForm_Field_JavaScript')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_JavaScript'); $this->assertTrue( in_array('XmlForm_Field_JavaScript', $methods ), 'exists method XmlForm_Field_JavaScript' );
$this->assertTrue( in_array( 'XmlForm_Field_JavaScript', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_JavaScript::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_JavaScript')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_JavaScript'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_JavaScript::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_JavaScript')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_JavaScript'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_JavaScript::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field_JavaScript')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_JavaScript'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,13 +1,49 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXmlForm_Field_LabelTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Label
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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
{
} }

View File

@@ -1,49 +1,115 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_LinkTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Link
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Link::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Link')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Link'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Link::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Link')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Link'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Link::renderTable
* @todo Implement testrenderTable(). * @todo Implement testrenderTable().
*/ */
public function testrenderTable() public function testrenderTable()
{ {
if (class_exists('XmlForm_Field_Link')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Link'); $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,113 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_ListboxTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Listbox
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Listbox::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field_Listbox')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Listbox'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Listbox::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Listbox')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Listbox'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Listbox::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Listbox')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Listbox'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,67 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_PasswordTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Password
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Password::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Password')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Password'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,71 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_PercentageTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Percentage
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Percentage::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Percentage')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Percentage'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,71 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_PrintTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Print
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Print::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Print')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Print'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,89 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_RadioGroupTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_RadioGroup
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_RadioGroup::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field_RadioGroup')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_RadioGroup'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_RadioGroup::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_RadioGroup')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_RadioGroup'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,71 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_RadioGroupViewTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_RadioGroupView
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_RadioGroupView::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_RadioGroupView')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_RadioGroupView'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,69 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_ResetTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Reset
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Reset::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Reset')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Reset'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,89 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_SimpleTextTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_SimpleText
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_SimpleText::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_SimpleText')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_SimpleText'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_SimpleText::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_SimpleText')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_SimpleText'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,69 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_SubmitTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Submit
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Submit::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Submit')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Submit'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,84 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_SubtitleTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Subtitle
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Subtitle::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Subtitle')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Subtitle'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Subtitle::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field_Subtitle')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Subtitle'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,111 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_SuggestTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Suggest
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Suggest::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Suggest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Suggest'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Suggest::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Suggest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Suggest'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Suggest::renderTable
* @todo Implement testrenderTable(). * @todo Implement testrenderTable().
*/ */
public function testrenderTable() public function testrenderTable()
{ {
if (class_exists('XmlForm_Field_Suggest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Suggest'); $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,111 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_TextTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Text
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Text::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Text')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Text'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Text::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Text')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Text'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Text::renderTable
* @todo Implement testrenderTable(). * @todo Implement testrenderTable().
*/ */
public function testrenderTable() public function testrenderTable()
{ {
if (class_exists('XmlForm_Field_Text')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Text'); $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,89 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_TextareaTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Textarea
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Textarea::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Textarea')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Textarea'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Textarea::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_Textarea')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Textarea'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,86 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:56. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_TitleTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Title
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Title::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Title')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Title'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Title::validateValue
* @todo Implement testvalidateValue(). * @todo Implement testvalidateValue().
*/ */
public function testvalidateValue() public function testvalidateValue()
{ {
if (class_exists('XmlForm_Field_Title')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Title'); $this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,109 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlMenu.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlMenu.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classXmlForm_Field_XmlMenuTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_XmlMenu
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_XmlMenu::XmlForm_Field_XmlMenu
* @todo Implement testXmlForm_Field_XmlMenu(). * @todo Implement testXmlForm_Field_XmlMenu().
*/ */
public function testXmlForm_Field_XmlMenu() public function testXmlForm_Field_XmlMenu()
{ {
if (class_exists('XmlForm_Field_XmlMenu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_XmlMenu'); $this->assertTrue( in_array('XmlForm_Field_XmlMenu', $methods ), 'exists method XmlForm_Field_XmlMenu' );
$this->assertTrue( in_array( 'XmlForm_Field_XmlMenu', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_XmlMenu::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_XmlMenu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_XmlMenu'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_XmlMenu::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_XmlMenu')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_XmlMenu'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,49 +1,109 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXmlForm_Field_XmlformTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_Xmlform
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_Xmlform::XmlForm_Field_Xmlform
* @todo Implement testXmlForm_Field_Xmlform(). * @todo Implement testXmlForm_Field_Xmlform().
*/ */
public function testXmlForm_Field_Xmlform() public function testXmlForm_Field_Xmlform()
{ {
if (class_exists('XmlForm_Field_Xmlform')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Xmlform'); $this->assertTrue( in_array('XmlForm_Field_Xmlform', $methods ), 'exists method XmlForm_Field_Xmlform' );
$this->assertTrue( in_array( 'XmlForm_Field_Xmlform', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Xmlform::parseFile
* @todo Implement testparseFile(). * @todo Implement testparseFile().
*/ */
public function testparseFile() public function testparseFile()
{ {
if (class_exists('XmlForm_Field_Xmlform')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Xmlform'); $this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_Xmlform::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_Xmlform')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_Xmlform'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,91 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:30.
*/ */
class classXmlForm_Field_YesNoTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_YesNo
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_YesNo::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('XmlForm_Field_YesNo')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_YesNo'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_YesNo::renderGrid
* @todo Implement testrenderGrid(). * @todo Implement testrenderGrid().
*/ */
public function testrenderGrid() public function testrenderGrid()
{ {
if (class_exists('XmlForm_Field_YesNo')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_YesNo'); $this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,89 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlformExtension.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXmlForm_Field_cellMarkTest extends PHPUnit_Framework_TestCase
{
/**
* @var XmlForm_Field_cellMark
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers XmlForm_Field_cellMark::tdStyle
* @todo Implement testtdStyle(). * @todo Implement testtdStyle().
*/ */
public function testtdStyle() public function testtdStyle()
{ {
if (class_exists('XmlForm_Field_cellMark')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_cellMark'); $this->assertTrue( in_array('tdStyle', $methods ), 'exists method tdStyle' );
$this->assertTrue( in_array( 'tdStyle', $methods ), 'seems like this function is outside this class' ); $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 * @covers XmlForm_Field_cellMark::tdClass
* @todo Implement testtdClass(). * @todo Implement testtdClass().
*/ */
public function testtdClass() public function testtdClass()
{ {
if (class_exists('XmlForm_Field_cellMark')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'XmlForm_Field_cellMark'); $this->assertTrue( in_array('tdClass', $methods ), 'exists method tdClass' );
$this->assertTrue( in_array( 'tdClass', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,109 +1,190 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXml_NodeTest extends PHPUnit_Framework_TestCase
{
/**
* @var Xml_Node
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Xml_Node::Xml_Node
* @todo Implement testXml_Node(). * @todo Implement testXml_Node().
*/ */
public function testXml_Node() public function testXml_Node()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('Xml_Node', $methods ), 'exists method Xml_Node' );
$this->assertTrue( in_array( 'Xml_Node', $methods ), 'seems like this function is outside this class' ); $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 * @covers Xml_Node::addAttribute
* @todo Implement testaddAttribute(). * @todo Implement testaddAttribute().
*/ */
public function testaddAttribute() public function testaddAttribute()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('addAttribute', $methods ), 'exists method addAttribute' );
$this->assertTrue( in_array( 'addAttribute', $methods ), 'seems like this function is outside this class' ); $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 * @covers Xml_Node::addChildNode
* @todo Implement testaddChildNode(). * @todo Implement testaddChildNode().
*/ */
public function testaddChildNode() public function testaddChildNode()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('addChildNode', $methods ), 'exists method addChildNode' );
$this->assertTrue( in_array( 'addChildNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers Xml_Node::toTree
* @todo Implement testtoTree(). * @todo Implement testtoTree().
*/ */
public function testtoTree() public function testtoTree()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('toTree', $methods ), 'exists method toTree' );
$this->assertTrue( in_array( 'toTree', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Xml_Node', 'toTree');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Xml_Node::toArray * @covers Xml_Node::toArray
* @todo Implement testtoArray(). * @todo Implement testtoArray().
*/ */
public function testtoArray() public function testtoArray()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('toArray', $methods ), 'exists method toArray' );
$this->assertTrue( in_array( 'toArray', $methods ), 'seems like this function is outside this class' ); $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 * @covers Xml_Node::findNode
* @todo Implement testfindNode(). * @todo Implement testfindNode().
*/ */
public function testfindNode() public function testfindNode()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' );
$this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers Xml_Node::getXML
* @todo Implement testgetXML(). * @todo Implement testgetXML().
*/ */
public function testgetXML() public function testgetXML()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' );
$this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Xml_Node', 'getXML');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Xml_Node::getCDATAValue * @covers Xml_Node::getCDATAValue
* @todo Implement testgetCDATAValue(). * @todo Implement testgetCDATAValue().
*/ */
public function testgetCDATAValue() public function testgetCDATAValue()
{ {
if (class_exists('Xml_Node')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_Node'); $this->assertTrue( in_array('getCDATAValue', $methods ), 'exists method getCDATAValue' );
$this->assertTrue( in_array( 'getCDATAValue', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Xml_Node', 'getCDATAValue');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,73 +1,132 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classXml_documentTest extends PHPUnit_Framework_TestCase
{
/**
* @var Xml_document
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Xml_document::Xml_document
* @todo Implement testXml_document(). * @todo Implement testXml_document().
*/ */
public function testXml_document() public function testXml_document()
{ {
if (class_exists('Xml_document')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_document'); $this->assertTrue( in_array('Xml_document', $methods ), 'exists method Xml_document' );
$this->assertTrue( in_array( 'Xml_document', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Xml_document', 'Xml_document');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Xml_document::parseXmlFile * @covers Xml_document::parseXmlFile
* @todo Implement testparseXmlFile(). * @todo Implement testparseXmlFile().
*/ */
public function testparseXmlFile() public function testparseXmlFile()
{ {
if (class_exists('Xml_document')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_document'); $this->assertTrue( in_array('parseXmlFile', $methods ), 'exists method parseXmlFile' );
$this->assertTrue( in_array( 'parseXmlFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers Xml_document::findNode
* @todo Implement testfindNode(). * @todo Implement testfindNode().
*/ */
public function testfindNode() public function testfindNode()
{ {
if (class_exists('Xml_document')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_document'); $this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' );
$this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers Xml_document::getXML
* @todo Implement testgetXML(). * @todo Implement testgetXML().
*/ */
public function testgetXML() public function testgetXML()
{ {
if (class_exists('Xml_document')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_document'); $this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' );
$this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Xml_document', 'getXML');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Xml_document::save * @covers Xml_document::save
* @todo Implement testsave(). * @todo Implement testsave().
*/ */
public function testsave() public function testsave()
{ {
if (class_exists('Xml_document')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Xml_document'); $this->assertTrue( in_array('save', $methods ), 'exists method save' );
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,505 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.database_mysql.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
*/
class classdatabaseTest extends PHPUnit_Framework_TestCase
{
/**
* @covers database::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
if (class_exists('database')) {
$methods = get_class_methods( 'database');
$this->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' );
}
}
}

View File

@@ -1,109 +1,217 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.database_base.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.database_base.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classdatabase_baseTest extends PHPUnit_Framework_TestCase
{
/**
* @var database_base
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers database_base::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $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 * @covers database_base::generateDropTableSQL
* @todo Implement testgenerateDropTableSQL(). * @todo Implement testgenerateDropTableSQL().
*/ */
public function testgenerateDropTableSQL() public function testgenerateDropTableSQL()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('generateDropTableSQL', $methods ), 'exists method generateDropTableSQL' );
$this->assertTrue( in_array( 'generateDropTableSQL', $methods ), 'seems like this function is outside this class' ); $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 * @covers database_base::generateCreateTableSQL
* @todo Implement testgenerateCreateTableSQL(). * @todo Implement testgenerateCreateTableSQL().
*/ */
public function testgenerateCreateTableSQL() public function testgenerateCreateTableSQL()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('generateCreateTableSQL', $methods ), 'exists method generateCreateTableSQL' );
$this->assertTrue( in_array( 'generateCreateTableSQL', $methods ), 'seems like this function is outside this class' ); $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 * @covers database_base::generateDropColumnSQL
* @todo Implement testgenerateDropColumnSQL(). * @todo Implement testgenerateDropColumnSQL().
*/ */
public function testgenerateDropColumnSQL() public function testgenerateDropColumnSQL()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('generateDropColumnSQL', $methods ), 'exists method generateDropColumnSQL' );
$this->assertTrue( in_array( 'generateDropColumnSQL', $methods ), 'seems like this function is outside this class' ); $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 * @covers database_base::generateAddColumnSQL
* @todo Implement testgenerateAddColumnSQL(). * @todo Implement testgenerateAddColumnSQL().
*/ */
public function testgenerateAddColumnSQL() public function testgenerateAddColumnSQL()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('generateAddColumnSQL', $methods ), 'exists method generateAddColumnSQL' );
$this->assertTrue( in_array( 'generateAddColumnSQL', $methods ), 'seems like this function is outside this class' ); $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 * @covers database_base::generateChangeColumnSQL
* @todo Implement testgenerateChangeColumnSQL(). * @todo Implement testgenerateChangeColumnSQL().
*/ */
public function testgenerateChangeColumnSQL() public function testgenerateChangeColumnSQL()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('generateChangeColumnSQL', $methods ), 'exists method generateChangeColumnSQL' );
$this->assertTrue( in_array( 'generateChangeColumnSQL', $methods ), 'seems like this function is outside this class' ); $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 * @covers database_base::executeQuery
* @todo Implement testexecuteQuery(). * @todo Implement testexecuteQuery().
*/ */
public function testexecuteQuery() public function testexecuteQuery()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('executeQuery', $methods ), 'exists method executeQuery' );
$this->assertTrue( in_array( 'executeQuery', $methods ), 'seems like this function is outside this class' ); $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 * @covers database_base::close
* @todo Implement testclose(). * @todo Implement testclose().
*/ */
public function testclose() public function testclose()
{ {
if (class_exists('database_base')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'database_base'); $this->assertTrue( in_array('close', $methods ), 'exists method close' );
$this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('database_base', 'close');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,289 +1,489 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.dynaformhandler.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.dynaformhandler.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classdynaFormHandlerTest extends PHPUnit_Framework_TestCase
{
/**
* @var dynaFormHandler
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers dynaFormHandler::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::load
* @todo Implement testload(). * @todo Implement testload().
*/ */
public function testload() public function testload()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('load', $methods ), 'exists method load' );
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('dynaFormHandler', 'load');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers dynaFormHandler::reload * @covers dynaFormHandler::reload
* @todo Implement testreload(). * @todo Implement testreload().
*/ */
public function testreload() public function testreload()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('reload', $methods ), 'exists method reload' );
$this->assertTrue( in_array( 'reload', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('dynaFormHandler', 'reload');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers dynaFormHandler::__cloneEmpty * @covers dynaFormHandler::__cloneEmpty
* @todo Implement test__cloneEmpty(). * @todo Implement test__cloneEmpty().
*/ */
public function test__cloneEmpty() public function test__cloneEmpty()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('__cloneEmpty', $methods ), 'exists method __cloneEmpty' );
$this->assertTrue( in_array( '__cloneEmpty', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('dynaFormHandler', '__cloneEmpty');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers dynaFormHandler::toString * @covers dynaFormHandler::toString
* @todo Implement testtoString(). * @todo Implement testtoString().
*/ */
public function testtoString() public function testtoString()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('toString', $methods ), 'exists method toString' );
$this->assertTrue( in_array( 'toString', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::getNode
* @todo Implement testgetNode(). * @todo Implement testgetNode().
*/ */
public function testgetNode() public function testgetNode()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' );
$this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::setNode
* @todo Implement testsetNode(). * @todo Implement testsetNode().
*/ */
public function testsetNode() public function testsetNode()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('setNode', $methods ), 'exists method setNode' );
$this->assertTrue( in_array( 'setNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::add
* @todo Implement testadd(). * @todo Implement testadd().
*/ */
public function testadd() public function testadd()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('add', $methods ), 'exists method add' );
$this->assertTrue( in_array( 'add', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::replace
* @todo Implement testreplace(). * @todo Implement testreplace().
*/ */
public function testreplace() public function testreplace()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('replace', $methods ), 'exists method replace' );
$this->assertTrue( in_array( 'replace', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::save
* @todo Implement testsave(). * @todo Implement testsave().
*/ */
public function testsave() public function testsave()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('save', $methods ), 'exists method save' );
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::fixXmlFile
* @todo Implement testfixXmlFile(). * @todo Implement testfixXmlFile().
*/ */
public function testfixXmlFile() public function testfixXmlFile()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('fixXmlFile', $methods ), 'exists method fixXmlFile' );
$this->assertTrue( in_array( 'fixXmlFile', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('dynaFormHandler', 'fixXmlFile');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers dynaFormHandler::setHeaderAttribute * @covers dynaFormHandler::setHeaderAttribute
* @todo Implement testsetHeaderAttribute(). * @todo Implement testsetHeaderAttribute().
*/ */
public function testsetHeaderAttribute() public function testsetHeaderAttribute()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('setHeaderAttribute', $methods ), 'exists method setHeaderAttribute' );
$this->assertTrue( in_array( 'setHeaderAttribute', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::modifyHeaderAttribute
* @todo Implement testmodifyHeaderAttribute(). * @todo Implement testmodifyHeaderAttribute().
*/ */
public function testmodifyHeaderAttribute() public function testmodifyHeaderAttribute()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('modifyHeaderAttribute', $methods ), 'exists method modifyHeaderAttribute' );
$this->assertTrue( in_array( 'modifyHeaderAttribute', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::updateAttribute
* @todo Implement testupdateAttribute(). * @todo Implement testupdateAttribute().
*/ */
public function testupdateAttribute() public function testupdateAttribute()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('updateAttribute', $methods ), 'exists method updateAttribute' );
$this->assertTrue( in_array( 'updateAttribute', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::remove
* @todo Implement testremove(). * @todo Implement testremove().
*/ */
public function testremove() public function testremove()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('remove', $methods ), 'exists method remove' );
$this->assertTrue( in_array( 'remove', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::nodeExists
* @todo Implement testnodeExists(). * @todo Implement testnodeExists().
*/ */
public function testnodeExists() public function testnodeExists()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('nodeExists', $methods ), 'exists method nodeExists' );
$this->assertTrue( in_array( 'nodeExists', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::moveUp
* @todo Implement testmoveUp(). * @todo Implement testmoveUp().
*/ */
public function testmoveUp() public function testmoveUp()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('moveUp', $methods ), 'exists method moveUp' );
$this->assertTrue( in_array( 'moveUp', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::moveDown
* @todo Implement testmoveDown(). * @todo Implement testmoveDown().
*/ */
public function testmoveDown() public function testmoveDown()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('moveDown', $methods ), 'exists method moveDown' );
$this->assertTrue( in_array( 'moveDown', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::getFields
* @todo Implement testgetFields(). * @todo Implement testgetFields().
*/ */
public function testgetFields() public function testgetFields()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::getFieldNames
* @todo Implement testgetFieldNames(). * @todo Implement testgetFieldNames().
*/ */
public function testgetFieldNames() public function testgetFieldNames()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('getFieldNames', $methods ), 'exists method getFieldNames' );
$this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::addChilds
* @todo Implement testaddChilds(). * @todo Implement testaddChilds().
*/ */
public function testaddChilds() public function testaddChilds()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('addChilds', $methods ), 'exists method addChilds' );
$this->assertTrue( in_array( 'addChilds', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::addOrUpdateChild
* @todo Implement testaddOrUpdateChild(). * @todo Implement testaddOrUpdateChild().
*/ */
public function testaddOrUpdateChild() public function testaddOrUpdateChild()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('addOrUpdateChild', $methods ), 'exists method addOrUpdateChild' );
$this->assertTrue( in_array( 'addOrUpdateChild', $methods ), 'seems like this function is outside this class' ); $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 * @covers dynaFormHandler::getArray
* @todo Implement testgetArray(). * @todo Implement testgetArray().
*/ */
public function testgetArray() public function testgetArray()
{ {
if (class_exists('dynaFormHandler')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'dynaFormHandler'); $this->assertTrue( in_array('getArray', $methods ), 'exists method getArray' );
$this->assertTrue( in_array( 'getArray', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,25 +1,69 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.filterForm.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.filterForm.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classfilterFormTest extends PHPUnit_Framework_TestCase
{
/**
* @var filterForm
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers filterForm::render
* @todo Implement testrender(). * @todo Implement testrender().
*/ */
public function testrender() public function testrender()
{ {
if (class_exists('filterForm')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'filterForm'); $this->assertTrue( in_array('render', $methods ), 'exists method render' );
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,37 +1,89 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.functionTest.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.functionTest.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classfunctionTestTest extends PHPUnit_Framework_TestCase
{
/**
* @var functionTest
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers functionTest::functionTest
* @todo Implement testfunctionTest(). * @todo Implement testfunctionTest().
*/ */
public function testfunctionTest() public function testfunctionTest()
{ {
if (class_exists('functionTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'functionTest'); $this->assertTrue( in_array('functionTest', $methods ), 'exists method functionTest' );
$this->assertTrue( in_array( 'functionTest', $methods ), 'seems like this function is outside this class' ); $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 * @covers functionTest::sample
* @todo Implement testsample(). * @todo Implement testsample().
*/ */
public function testsample() public function testsample()
{ {
if (class_exists('functionTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'functionTest'); $this->assertTrue( in_array('sample', $methods ), 'exists method sample' );
$this->assertTrue( in_array( 'sample', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,349 +1,517 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.headPublisher.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.headPublisher.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classheadPublisherTest extends PHPUnit_Framework_TestCase
{
/**
* @var headPublisher
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers headPublisher::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', '__construct');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::getSingleton * @covers headPublisher::getSingleton
* @todo Implement testgetSingleton(). * @todo Implement testgetSingleton().
*/ */
public function testgetSingleton() public function testgetSingleton()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' );
$this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'getSingleton');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::setTitle * @covers headPublisher::setTitle
* @todo Implement testsetTitle(). * @todo Implement testsetTitle().
*/ */
public function testsetTitle() public function testsetTitle()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('setTitle', $methods ), 'exists method setTitle' );
$this->assertTrue( in_array( 'setTitle', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::addMaborakFile
* @todo Implement testaddMaborakFile(). * @todo Implement testaddMaborakFile().
*/ */
public function testaddMaborakFile() public function testaddMaborakFile()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('addMaborakFile', $methods ), 'exists method addMaborakFile' );
$this->assertTrue( in_array( 'addMaborakFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::addScriptFile
* @todo Implement testaddScriptFile(). * @todo Implement testaddScriptFile().
*/ */
public function testaddScriptFile() public function testaddScriptFile()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('addScriptFile', $methods ), 'exists method addScriptFile' );
$this->assertTrue( in_array( 'addScriptFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::addInstanceModule
* @todo Implement testaddInstanceModule(). * @todo Implement testaddInstanceModule().
*/ */
public function testaddInstanceModule() public function testaddInstanceModule()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('addInstanceModule', $methods ), 'exists method addInstanceModule' );
$this->assertTrue( in_array( 'addInstanceModule', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::addClassModule
* @todo Implement testaddClassModule(). * @todo Implement testaddClassModule().
*/ */
public function testaddClassModule() public function testaddClassModule()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('addClassModule', $methods ), 'exists method addClassModule' );
$this->assertTrue( in_array( 'addClassModule', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::addScriptCode
* @todo Implement testaddScriptCode(). * @todo Implement testaddScriptCode().
*/ */
public function testaddScriptCode() public function testaddScriptCode()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('addScriptCode', $methods ), 'exists method addScriptCode' );
$this->assertTrue( in_array( 'addScriptCode', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::printHeader
* @todo Implement testprintHeader(). * @todo Implement testprintHeader().
*/ */
public function testprintHeader() public function testprintHeader()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('printHeader', $methods ), 'exists method printHeader' );
$this->assertTrue( in_array( 'printHeader', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'printHeader');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::printRawHeader * @covers headPublisher::printRawHeader
* @todo Implement testprintRawHeader(). * @todo Implement testprintRawHeader().
*/ */
public function testprintRawHeader() public function testprintRawHeader()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('printRawHeader', $methods ), 'exists method printRawHeader' );
$this->assertTrue( in_array( 'printRawHeader', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'printRawHeader');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::clearScripts * @covers headPublisher::clearScripts
* @todo Implement testclearScripts(). * @todo Implement testclearScripts().
*/ */
public function testclearScripts() public function testclearScripts()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('clearScripts', $methods ), 'exists method clearScripts' );
$this->assertTrue( in_array( 'clearScripts', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'clearScripts');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::includeExtJs * @covers headPublisher::includeExtJs
* @todo Implement testincludeExtJs(). * @todo Implement testincludeExtJs().
*/ */
public function testincludeExtJs() public function testincludeExtJs()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('includeExtJs', $methods ), 'exists method includeExtJs' );
$this->assertTrue( in_array( 'includeExtJs', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'includeExtJs');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::getExtJsStylesheets * @covers headPublisher::getExtJsStylesheets
* @todo Implement testgetExtJsStylesheets(). * @todo Implement testgetExtJsStylesheets().
*/ */
public function testgetExtJsStylesheets() public function testgetExtJsStylesheets()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('getExtJsStylesheets', $methods ), 'exists method getExtJsStylesheets' );
$this->assertTrue( in_array( 'getExtJsStylesheets', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::getExtJsScripts
* @todo Implement testgetExtJsScripts(). * @todo Implement testgetExtJsScripts().
*/ */
public function testgetExtJsScripts() public function testgetExtJsScripts()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('getExtJsScripts', $methods ), 'exists method getExtJsScripts' );
$this->assertTrue( in_array( 'getExtJsScripts', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'getExtJsScripts');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::getExtJsVariablesScript * @covers headPublisher::getExtJsVariablesScript
* @todo Implement testgetExtJsVariablesScript(). * @todo Implement testgetExtJsVariablesScript().
*/ */
public function testgetExtJsVariablesScript() public function testgetExtJsVariablesScript()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('getExtJsVariablesScript', $methods ), 'exists method getExtJsVariablesScript' );
$this->assertTrue( in_array( 'getExtJsVariablesScript', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'getExtJsVariablesScript');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::getExtJsLibraries * @covers headPublisher::getExtJsLibraries
* @todo Implement testgetExtJsLibraries(). * @todo Implement testgetExtJsLibraries().
*/ */
public function testgetExtJsLibraries() public function testgetExtJsLibraries()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('getExtJsLibraries', $methods ), 'exists method getExtJsLibraries' );
$this->assertTrue( in_array( 'getExtJsLibraries', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'getExtJsLibraries');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::usingExtJs * @covers headPublisher::usingExtJs
* @todo Implement testusingExtJs(). * @todo Implement testusingExtJs().
*/ */
public function testusingExtJs() public function testusingExtJs()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('usingExtJs', $methods ), 'exists method usingExtJs' );
$this->assertTrue( in_array( 'usingExtJs', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::setExtSkin
* @todo Implement testsetExtSkin(). * @todo Implement testsetExtSkin().
*/ */
public function testsetExtSkin() public function testsetExtSkin()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('setExtSkin', $methods ), 'exists method setExtSkin' );
$this->assertTrue( in_array( 'setExtSkin', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::addExtJsScript
* @todo Implement testaddExtJsScript(). * @todo Implement testaddExtJsScript().
*/ */
public function testaddExtJsScript() public function testaddExtJsScript()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('addExtJsScript', $methods ), 'exists method addExtJsScript' );
$this->assertTrue( in_array( 'addExtJsScript', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::AddContent
* @todo Implement testAddContent(). * @todo Implement testAddContent().
*/ */
public function testAddContent() public function testAddContent()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' );
$this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::getContent
* @todo Implement testgetContent(). * @todo Implement testgetContent().
*/ */
public function testgetContent() public function testgetContent()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('getContent', $methods ), 'exists method getContent' );
$this->assertTrue( in_array( 'getContent', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'getContent');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::Assign * @covers headPublisher::Assign
* @todo Implement testAssign(). * @todo Implement testAssign().
*/ */
public function testAssign() public function testAssign()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('Assign', $methods ), 'exists method Assign' );
$this->assertTrue( in_array( 'Assign', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::AssignVar
* @todo Implement testAssignVar(). * @todo Implement testAssignVar().
*/ */
public function testAssignVar() public function testAssignVar()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('AssignVar', $methods ), 'exists method AssignVar' );
$this->assertTrue( in_array( 'AssignVar', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::getVars
* @todo Implement testgetVars(). * @todo Implement testgetVars().
*/ */
public function testgetVars() public function testgetVars()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' );
$this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'getVars');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::AssignNumber * @covers headPublisher::AssignNumber
* @todo Implement testAssignNumber(). * @todo Implement testAssignNumber().
*/ */
public function testAssignNumber() public function testAssignNumber()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('AssignNumber', $methods ), 'exists method AssignNumber' );
$this->assertTrue( in_array( 'AssignNumber', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::renderExtJs
* @todo Implement testrenderExtJs(). * @todo Implement testrenderExtJs().
*/ */
public function testrenderExtJs() public function testrenderExtJs()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('renderExtJs', $methods ), 'exists method renderExtJs' );
$this->assertTrue( in_array( 'renderExtJs', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'renderExtJs');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers headPublisher::stripCodeQuotes * @covers headPublisher::stripCodeQuotes
* @todo Implement teststripCodeQuotes(). * @todo Implement teststripCodeQuotes().
*/ */
public function teststripCodeQuotes() public function teststripCodeQuotes()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('stripCodeQuotes', $methods ), 'exists method stripCodeQuotes' );
$this->assertTrue( in_array( 'stripCodeQuotes', $methods ), 'seems like this function is outside this class' ); $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 * @covers headPublisher::disableHeaderScripts
* @todo Implement testdisableHeaderScripts(). * @todo Implement testdisableHeaderScripts().
*/ */
public function testdisableHeaderScripts() public function testdisableHeaderScripts()
{ {
if (class_exists('headPublisher')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'headPublisher'); $this->assertTrue( in_array('disableHeaderScripts', $methods ), 'exists method disableHeaderScripts' );
$this->assertTrue( in_array( 'disableHeaderScripts', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('headPublisher', 'disableHeaderScripts');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,241 +1,330 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.i18n_po.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.i18n_po.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classi18n_POTest extends PHPUnit_Framework_TestCase
{
/**
* @var i18n_PO
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers i18n_PO::__construct
* @todo Implement test__construct(). * @todo Implement test__construct().
*/ */
public function test__construct() public function test__construct()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::buildInit
* @todo Implement testbuildInit(). * @todo Implement testbuildInit().
*/ */
public function testbuildInit() public function testbuildInit()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('buildInit', $methods ), 'exists method buildInit' );
$this->assertTrue( in_array( 'buildInit', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('i18n_PO', 'buildInit');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers i18n_PO::readInit * @covers i18n_PO::readInit
* @todo Implement testreadInit(). * @todo Implement testreadInit().
*/ */
public function testreadInit() public function testreadInit()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('readInit', $methods ), 'exists method readInit' );
$this->assertTrue( in_array( 'readInit', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('i18n_PO', 'readInit');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers i18n_PO::addHeader * @covers i18n_PO::addHeader
* @todo Implement testaddHeader(). * @todo Implement testaddHeader().
*/ */
public function testaddHeader() public function testaddHeader()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('addHeader', $methods ), 'exists method addHeader' );
$this->assertTrue( in_array( 'addHeader', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::addTranslatorComment
* @todo Implement testaddTranslatorComment(). * @todo Implement testaddTranslatorComment().
*/ */
public function testaddTranslatorComment() public function testaddTranslatorComment()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('addTranslatorComment', $methods ), 'exists method addTranslatorComment' );
$this->assertTrue( in_array( 'addTranslatorComment', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::addExtractedComment
* @todo Implement testaddExtractedComment(). * @todo Implement testaddExtractedComment().
*/ */
public function testaddExtractedComment() public function testaddExtractedComment()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('addExtractedComment', $methods ), 'exists method addExtractedComment' );
$this->assertTrue( in_array( 'addExtractedComment', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::addReference
* @todo Implement testaddReference(). * @todo Implement testaddReference().
*/ */
public function testaddReference() public function testaddReference()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('addReference', $methods ), 'exists method addReference' );
$this->assertTrue( in_array( 'addReference', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::addFlag
* @todo Implement testaddFlag(). * @todo Implement testaddFlag().
*/ */
public function testaddFlag() public function testaddFlag()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('addFlag', $methods ), 'exists method addFlag' );
$this->assertTrue( in_array( 'addFlag', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::addPreviousUntranslatedString
* @todo Implement testaddPreviousUntranslatedString(). * @todo Implement testaddPreviousUntranslatedString().
*/ */
public function testaddPreviousUntranslatedString() public function testaddPreviousUntranslatedString()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('addPreviousUntranslatedString', $methods ), 'exists method addPreviousUntranslatedString' );
$this->assertTrue( in_array( 'addPreviousUntranslatedString', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::addTranslation
* @todo Implement testaddTranslation(). * @todo Implement testaddTranslation().
*/ */
public function testaddTranslation() public function testaddTranslation()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('addTranslation', $methods ), 'exists method addTranslation' );
$this->assertTrue( in_array( 'addTranslation', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::_writeLine
* @todo Implement test_writeLine(). * @todo Implement test_writeLine().
*/ */
public function test_writeLine() public function test_writeLine()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('_writeLine', $methods ), 'exists method _writeLine' );
$this->assertTrue( in_array( '_writeLine', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::_write
* @todo Implement test_write(). * @todo Implement test_write().
*/ */
public function test_write() public function test_write()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('_write', $methods ), 'exists method _write' );
$this->assertTrue( in_array( '_write', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::prepare
* @todo Implement testprepare(). * @todo Implement testprepare().
*/ */
public function testprepare() public function testprepare()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' );
$this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::headerStroke
* @todo Implement testheaderStroke(). * @todo Implement testheaderStroke().
*/ */
public function testheaderStroke() public function testheaderStroke()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('headerStroke', $methods ), 'exists method headerStroke' );
$this->assertTrue( in_array( 'headerStroke', $methods ), 'seems like this function is outside this class' ); $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 * @covers i18n_PO::getHeaders
* @todo Implement testgetHeaders(). * @todo Implement testgetHeaders().
*/ */
public function testgetHeaders() public function testgetHeaders()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' );
$this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('i18n_PO', 'getHeaders');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers i18n_PO::getTranslation * @covers i18n_PO::getTranslation
* @todo Implement testgetTranslation(). * @todo Implement testgetTranslation().
*/ */
public function testgetTranslation() public function testgetTranslation()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('getTranslation', $methods ), 'exists method getTranslation' );
$this->assertTrue( in_array( 'getTranslation', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('i18n_PO', 'getTranslation');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers i18n_PO::__destruct * @covers i18n_PO::__destruct
* @todo Implement test__destruct(). * @todo Implement test__destruct().
*/ */
public function test__destruct() public function test__destruct()
{ {
if (class_exists('i18n_PO')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'i18n_PO'); $this->assertTrue( in_array('__destruct', $methods ), 'exists method __destruct' );
$this->assertTrue( in_array( '__destruct', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('i18n_PO', '__destruct');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,97 +1,266 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.mailer.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.mailer.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classmailerTest extends PHPUnit_Framework_TestCase
{
/**
* @var mailer
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers mailer::instanceMailer
* @todo Implement testinstanceMailer(). * @todo Implement testinstanceMailer().
*/ */
public function testinstanceMailer() public function testinstanceMailer()
{ {
if (class_exists('mailer')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'mailer'); $this->assertTrue( in_array('instanceMailer', $methods ), 'exists method instanceMailer' );
$this->assertTrue( in_array( 'instanceMailer', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('mailer', 'instanceMailer');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers mailer::arpaEMAIL * @covers mailer::arpaEMAIL
* @todo Implement testarpaEMAIL(). * @todo Implement testarpaEMAIL().
*/ */
public function testarpaEMAIL() public function testarpaEMAIL()
{ {
if (class_exists('mailer')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'mailer'); $this->assertTrue( in_array('arpaEMAIL', $methods ), 'exists method arpaEMAIL' );
$this->assertTrue( in_array( 'arpaEMAIL', $methods ), 'seems like this function is outside this class' ); $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 * @covers mailer::sendTemplate
* @todo Implement testsendTemplate(). * @todo Implement testsendTemplate().
*/ */
public function testsendTemplate() public function testsendTemplate()
{ {
if (class_exists('mailer')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'mailer'); $this->assertTrue( in_array('sendTemplate', $methods ), 'exists method sendTemplate' );
$this->assertTrue( in_array( 'sendTemplate', $methods ), 'seems like this function is outside this class' ); $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 * @covers mailer::sendHtml
* @todo Implement testsendHtml(). * @todo Implement testsendHtml().
*/ */
public function testsendHtml() public function testsendHtml()
{ {
if (class_exists('mailer')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'mailer'); $this->assertTrue( in_array('sendHtml', $methods ), 'exists method sendHtml' );
$this->assertTrue( in_array( 'sendHtml', $methods ), 'seems like this function is outside this class' ); $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 * @covers mailer::sendText
* @todo Implement testsendText(). * @todo Implement testsendText().
*/ */
public function testsendText() public function testsendText()
{ {
if (class_exists('mailer')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'mailer'); $this->assertTrue( in_array('sendText', $methods ), 'exists method sendText' );
$this->assertTrue( in_array( 'sendText', $methods ), 'seems like this function is outside this class' ); $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 * @covers mailer::replaceFields
* @todo Implement testreplaceFields(). * @todo Implement testreplaceFields().
*/ */
public function testreplaceFields() public function testreplaceFields()
{ {
if (class_exists('mailer')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'mailer'); $this->assertTrue( in_array('replaceFields', $methods ), 'exists method replaceFields' );
$this->assertTrue( in_array( 'replaceFields', $methods ), 'seems like this function is outside this class' ); $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 * @covers mailer::html2text
* @todo Implement testhtml2text(). * @todo Implement testhtml2text().
*/ */
public function testhtml2text() public function testhtml2text()
{ {
if (class_exists('mailer')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'mailer'); $this->assertTrue( in_array('html2text', $methods ), 'exists method html2text' );
$this->assertTrue( in_array( 'html2text', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('mailer', 'html2text');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,37 +1,83 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.objectTemplate.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.objectTemplate.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classobjectTemplateTest extends PHPUnit_Framework_TestCase
{
/**
* @var objectTemplate
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers objectTemplate::objectTemplate
* @todo Implement testobjectTemplate(). * @todo Implement testobjectTemplate().
*/ */
public function testobjectTemplate() public function testobjectTemplate()
{ {
if (class_exists('objectTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'objectTemplate'); $this->assertTrue( in_array('objectTemplate', $methods ), 'exists method objectTemplate' );
$this->assertTrue( in_array( 'objectTemplate', $methods ), 'seems like this function is outside this class' ); $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 * @covers objectTemplate::printObject
* @todo Implement testprintObject(). * @todo Implement testprintObject().
*/ */
public function testprintObject() public function testprintObject()
{ {
if (class_exists('objectTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'objectTemplate'); $this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' );
$this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,133 +1,198 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.pagedTable.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.pagedTable.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classpagedTableTest extends PHPUnit_Framework_TestCase
{
/**
* @var pagedTable
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers pagedTable::analizeSql
* @todo Implement testanalizeSql(). * @todo Implement testanalizeSql().
*/ */
public function testanalizeSql() public function testanalizeSql()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('analizeSql', $methods ), 'exists method analizeSql' );
$this->assertTrue( in_array( 'analizeSql', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('pagedTable', 'analizeSql');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers pagedTable::prepareQuery * @covers pagedTable::prepareQuery
* @todo Implement testprepareQuery(). * @todo Implement testprepareQuery().
*/ */
public function testprepareQuery() public function testprepareQuery()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('prepareQuery', $methods ), 'exists method prepareQuery' );
$this->assertTrue( in_array( 'prepareQuery', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('pagedTable', 'prepareQuery');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers pagedTable::setupFromXmlform * @covers pagedTable::setupFromXmlform
* @todo Implement testsetupFromXmlform(). * @todo Implement testsetupFromXmlform().
*/ */
public function testsetupFromXmlform() public function testsetupFromXmlform()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('setupFromXmlform', $methods ), 'exists method setupFromXmlform' );
$this->assertTrue( in_array( 'setupFromXmlform', $methods ), 'seems like this function is outside this class' ); $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 * @covers pagedTable::count
* @todo Implement testcount(). * @todo Implement testcount().
*/ */
public function testcount() public function testcount()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('count', $methods ), 'exists method count' );
$this->assertTrue( in_array( 'count', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('pagedTable', 'count');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers pagedTable::renderTitle * @covers pagedTable::renderTitle
* @todo Implement testrenderTitle(). * @todo Implement testrenderTitle().
*/ */
public function testrenderTitle() public function testrenderTitle()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('renderTitle', $methods ), 'exists method renderTitle' );
$this->assertTrue( in_array( 'renderTitle', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('pagedTable', 'renderTitle');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers pagedTable::renderField * @covers pagedTable::renderField
* @todo Implement testrenderField(). * @todo Implement testrenderField().
*/ */
public function testrenderField() public function testrenderField()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('renderField', $methods ), 'exists method renderField' );
$this->assertTrue( in_array( 'renderField', $methods ), 'seems like this function is outside this class' ); $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 * @covers pagedTable::defaultStyle
* @todo Implement testdefaultStyle(). * @todo Implement testdefaultStyle().
*/ */
public function testdefaultStyle() public function testdefaultStyle()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('defaultStyle', $methods ), 'exists method defaultStyle' );
$this->assertTrue( in_array( 'defaultStyle', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('pagedTable', 'defaultStyle');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers pagedTable::renderTable * @covers pagedTable::renderTable
* @todo Implement testrenderTable(). * @todo Implement testrenderTable().
*/ */
public function testrenderTable() public function testrenderTable()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' ); $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 * @covers pagedTable::printForm
* @todo Implement testprintForm(). * @todo Implement testprintForm().
*/ */
public function testprintForm() public function testprintForm()
{ {
if (class_exists('pagedTable')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'pagedTable'); $this->assertTrue( in_array('printForm', $methods ), 'exists method printForm' );
$this->assertTrue( in_array( 'printForm', $methods ), 'seems like this function is outside this class' ); $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' );
}
} }
} }

View File

@@ -1,157 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.soapNtlm.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55.
*/
class classsoapNtlmTest extends PHPUnit_Framework_TestCase
{
/**
* @covers soapNtlm::getuser
* @todo Implement testgetuser().
*/
public function testgetuser()
{
if (class_exists('soapNtlm')) {
$methods = get_class_methods( 'soapNtlm');
$this->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' );
}
}
}

View File

@@ -1,109 +1,199 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.testTools.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.testTools.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classtestToolsTest extends PHPUnit_Framework_TestCase
{
/**
* @var testTools
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers testTools::importDB
* @todo Implement testimportDB(). * @todo Implement testimportDB().
*/ */
public function testimportDB() public function testimportDB()
{ {
if (class_exists('testTools')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'testTools'); $this->assertTrue( in_array('importDB', $methods ), 'exists method importDB' );
$this->assertTrue( in_array( 'importDB', $methods ), 'seems like this function is outside this class' ); $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 * @covers testTools::importLocalDB
* @todo Implement testimportLocalDB(). * @todo Implement testimportLocalDB().
*/ */
public function testimportLocalDB() public function testimportLocalDB()
{ {
if (class_exists('testTools')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'testTools'); $this->assertTrue( in_array('importLocalDB', $methods ), 'exists method importLocalDB' );
$this->assertTrue( in_array( 'importLocalDB', $methods ), 'seems like this function is outside this class' ); $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 * @covers testTools::callMethod
* @todo Implement testcallMethod(). * @todo Implement testcallMethod().
*/ */
public function testcallMethod() public function testcallMethod()
{ {
if (class_exists('testTools')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'testTools'); $this->assertTrue( in_array('callMethod', $methods ), 'exists method callMethod' );
$this->assertTrue( in_array( 'callMethod', $methods ), 'seems like this function is outside this class' ); $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 * @covers testTools::arrayAppend
* @todo Implement testarrayAppend(). * @todo Implement testarrayAppend().
*/ */
public function testarrayAppend() public function testarrayAppend()
{ {
if (class_exists('testTools')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'testTools'); $this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' );
$this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' ); $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 * @covers testTools::arrayDelete
* @todo Implement testarrayDelete(). * @todo Implement testarrayDelete().
*/ */
public function testarrayDelete() public function testarrayDelete()
{ {
if (class_exists('testTools')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'testTools'); $this->assertTrue( in_array('arrayDelete', $methods ), 'exists method arrayDelete' );
$this->assertTrue( in_array( 'arrayDelete', $methods ), 'seems like this function is outside this class' ); $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 * @covers testTools::replaceVariables
* @todo Implement testreplaceVariables(). * @todo Implement testreplaceVariables().
*/ */
public function testreplaceVariables() public function testreplaceVariables()
{ {
if (class_exists('testTools')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'testTools'); $this->assertTrue( in_array('replaceVariables', $methods ), 'exists method replaceVariables' );
$this->assertTrue( in_array( 'replaceVariables', $methods ), 'seems like this function is outside this class' ); $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 * @covers testTools::findValue
* @todo Implement testfindValue(). * @todo Implement testfindValue().
*/ */
public function testfindValue() public function testfindValue()
{ {
if (class_exists('testTools')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'testTools'); $this->assertTrue( in_array('findValue', $methods ), 'exists method findValue' );
$this->assertTrue( in_array( 'findValue', $methods ), 'seems like this function is outside this class' ); $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' );
}
} }
} }

View File

@@ -1,85 +1,175 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.unitTest.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.unitTest.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:58. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classunitTestTest extends PHPUnit_Framework_TestCase
{
/**
* @var unitTest
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers unitTest::unitTest
* @todo Implement testunitTest(). * @todo Implement testunitTest().
*/ */
public function testunitTest() public function testunitTest()
{ {
if (class_exists('unitTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'unitTest'); $this->assertTrue( in_array('unitTest', $methods ), 'exists method unitTest' );
$this->assertTrue( in_array( 'unitTest', $methods ), 'seems like this function is outside this class' ); $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 * @covers unitTest::load
* @todo Implement testload(). * @todo Implement testload().
*/ */
public function testload() public function testload()
{ {
if (class_exists('unitTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'unitTest'); $this->assertTrue( in_array('load', $methods ), 'exists method load' );
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); $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 * @covers unitTest::runSingle
* @todo Implement testrunSingle(). * @todo Implement testrunSingle().
*/ */
public function testrunSingle() public function testrunSingle()
{ {
if (class_exists('unitTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'unitTest'); $this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' );
$this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' ); $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 * @covers unitTest::runMultiple
* @todo Implement testrunMultiple(). * @todo Implement testrunMultiple().
*/ */
public function testrunMultiple() public function testrunMultiple()
{ {
if (class_exists('unitTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'unitTest'); $this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' );
$this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' ); $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 * @covers unitTest::runAll
* @todo Implement testrunAll(). * @todo Implement testrunAll().
*/ */
public function testrunAll() public function testrunAll()
{ {
if (class_exists('unitTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'unitTest'); $this->assertTrue( in_array('runAll', $methods ), 'exists method runAll' );
$this->assertTrue( in_array( 'runAll', $methods ), 'seems like this function is outside this class' ); $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 * @covers unitTest::sampleTestFunction
* @todo Implement testsampleTestFunction(). * @todo Implement testsampleTestFunction().
*/ */
public function testsampleTestFunction() public function testsampleTestFunction()
{ {
if (class_exists('unitTest')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'unitTest'); $this->assertTrue( in_array('sampleTestFunction', $methods ), 'exists method sampleTestFunction' );
$this->assertTrue( in_array( 'sampleTestFunction', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,13 +1,49 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlMenu.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlMenu.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:55. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:28.
*/ */
class classxmlMenuTest extends PHPUnit_Framework_TestCase
{
/**
* @var xmlMenu
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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
{
} }

View File

@@ -1,133 +1,252 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classxmlformTemplateTest extends PHPUnit_Framework_TestCase
{
/**
* @var xmlformTemplate
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers xmlformTemplate::xmlformTemplate
* @todo Implement testxmlformTemplate(). * @todo Implement testxmlformTemplate().
*/ */
public function testxmlformTemplate() public function testxmlformTemplate()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('xmlformTemplate', $methods ), 'exists method xmlformTemplate' );
$this->assertTrue( in_array( 'xmlformTemplate', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::printTemplate
* @todo Implement testprintTemplate(). * @todo Implement testprintTemplate().
*/ */
public function testprintTemplate() public function testprintTemplate()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' );
$this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::printJavaScript
* @todo Implement testprintJavaScript(). * @todo Implement testprintJavaScript().
*/ */
public function testprintJavaScript() public function testprintJavaScript()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('printJavaScript', $methods ), 'exists method printJavaScript' );
$this->assertTrue( in_array( 'printJavaScript', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::printJSFile
* @todo Implement testprintJSFile(). * @todo Implement testprintJSFile().
*/ */
public function testprintJSFile() public function testprintJSFile()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('printJSFile', $methods ), 'exists method printJSFile' );
$this->assertTrue( in_array( 'printJSFile', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::getFields
* @todo Implement testgetFields(). * @todo Implement testgetFields().
*/ */
public function testgetFields() public function testgetFields()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::printObject
* @todo Implement testprintObject(). * @todo Implement testprintObject().
*/ */
public function testprintObject() public function testprintObject()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' );
$this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::_get_template
* @todo Implement test_get_template(). * @todo Implement test_get_template().
*/ */
public function test_get_template() public function test_get_template()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('_get_template', $methods ), 'exists method _get_template' );
$this->assertTrue( in_array( '_get_template', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::_get_timestamp
* @todo Implement test_get_timestamp(). * @todo Implement test_get_timestamp().
*/ */
public function test_get_timestamp() public function test_get_timestamp()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('_get_timestamp', $methods ), 'exists method _get_timestamp' );
$this->assertTrue( in_array( '_get_timestamp', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::_get_secure
* @todo Implement test_get_secure(). * @todo Implement test_get_secure().
*/ */
public function test_get_secure() public function test_get_secure()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('_get_secure', $methods ), 'exists method _get_secure' );
$this->assertTrue( in_array( '_get_secure', $methods ), 'seems like this function is outside this class' ); $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 * @covers xmlformTemplate::_get_trusted
* @todo Implement test_get_trusted(). * @todo Implement test_get_trusted().
*/ */
public function test_get_trusted() public function test_get_trusted()
{ {
if (class_exists('xmlformTemplate')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'xmlformTemplate'); $this->assertTrue( in_array('_get_trusted', $methods ), 'exists method _get_trusted' );
$this->assertTrue( in_array( '_get_trusted', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,145 +1,245 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.ymlDomain.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.ymlDomain.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classymlDomainTest extends PHPUnit_Framework_TestCase
{
/**
* @var ymlDomain
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers ymlDomain::ymlDomain
* @todo Implement testymlDomain(). * @todo Implement testymlDomain().
*/ */
public function testymlDomain() public function testymlDomain()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('ymlDomain', $methods ), 'exists method ymlDomain' );
$this->assertTrue( in_array( 'ymlDomain', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('ymlDomain', 'ymlDomain');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers ymlDomain::addDomain * @covers ymlDomain::addDomain
* @todo Implement testaddDomain(). * @todo Implement testaddDomain().
*/ */
public function testaddDomain() public function testaddDomain()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('addDomain', $methods ), 'exists method addDomain' );
$this->assertTrue( in_array( 'addDomain', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::addDomainValue
* @todo Implement testaddDomainValue(). * @todo Implement testaddDomainValue().
*/ */
public function testaddDomainValue() public function testaddDomainValue()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('addDomainValue', $methods ), 'exists method addDomainValue' );
$this->assertTrue( in_array( 'addDomainValue', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::exists
* @todo Implement testexists(). * @todo Implement testexists().
*/ */
public function testexists() public function testexists()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('exists', $methods ), 'exists method exists' );
$this->assertTrue( in_array( 'exists', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::get
* @todo Implement testget(). * @todo Implement testget().
*/ */
public function testget() public function testget()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('get', $methods ), 'exists method get' );
$this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::name2keys
* @todo Implement testname2keys(). * @todo Implement testname2keys().
*/ */
public function testname2keys() public function testname2keys()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('name2keys', $methods ), 'exists method name2keys' );
$this->assertTrue( in_array( 'name2keys', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::load
* @todo Implement testload(). * @todo Implement testload().
*/ */
public function testload() public function testload()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('load', $methods ), 'exists method load' );
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::find
* @todo Implement testfind(). * @todo Implement testfind().
*/ */
public function testfind() public function testfind()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('find', $methods ), 'exists method find' );
$this->assertTrue( in_array( 'find', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::getNode
* @todo Implement testgetNode(). * @todo Implement testgetNode().
*/ */
public function testgetNode() public function testgetNode()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' );
$this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::plainArray
* @todo Implement testplainArray(). * @todo Implement testplainArray().
*/ */
public function testplainArray() public function testplainArray()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('plainArray', $methods ), 'exists method plainArray' );
$this->assertTrue( in_array( 'plainArray', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlDomain::arrayAppend
* @todo Implement testarrayAppend(). * @todo Implement testarrayAppend().
*/ */
public function testarrayAppend() public function testarrayAppend()
{ {
if (class_exists('ymlDomain')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlDomain'); $this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' );
$this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,85 +1,195 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.ymlTestCases.php'; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.ymlTestCases.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:57. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classymlTestCasesTest extends PHPUnit_Framework_TestCase
{
/**
* @var ymlTestCases
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers ymlTestCases::ymlTestCases
* @todo Implement testymlTestCases(). * @todo Implement testymlTestCases().
*/ */
public function testymlTestCases() public function testymlTestCases()
{ {
if (class_exists('ymlTestCases')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlTestCases'); $this->assertTrue( in_array('ymlTestCases', $methods ), 'exists method ymlTestCases' );
$this->assertTrue( in_array( 'ymlTestCases', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlTestCases::load
* @todo Implement testload(). * @todo Implement testload().
*/ */
public function testload() public function testload()
{ {
if (class_exists('ymlTestCases')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlTestCases'); $this->assertTrue( in_array('load', $methods ), 'exists method load' );
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlTestCases::addToPlan
* @todo Implement testaddToPlan(). * @todo Implement testaddToPlan().
*/ */
public function testaddToPlan() public function testaddToPlan()
{ {
if (class_exists('ymlTestCases')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlTestCases'); $this->assertTrue( in_array('addToPlan', $methods ), 'exists method addToPlan' );
$this->assertTrue( in_array( 'addToPlan', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlTestCases::run
* @todo Implement testrun(). * @todo Implement testrun().
*/ */
public function testrun() public function testrun()
{ {
if (class_exists('ymlTestCases')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlTestCases'); $this->assertTrue( in_array('run', $methods ), 'exists method run' );
$this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlTestCases::runSingle
* @todo Implement testrunSingle(). * @todo Implement testrunSingle().
*/ */
public function testrunSingle() public function testrunSingle()
{ {
if (class_exists('ymlTestCases')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlTestCases'); $this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' );
$this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' ); $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 * @covers ymlTestCases::runMultiple
* @todo Implement testrunMultiple(). * @todo Implement testrunMultiple().
*/ */
public function testrunMultiple() public function testrunMultiple()
{ {
if (class_exists('ymlTestCases')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'ymlTestCases'); $this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' );
$this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,75 +1,208 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ; require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.applications.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.applications.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:11. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:31.
*/ */
class classApplicationsTest extends PHPUnit_Framework_TestCase
{
/**
* @var Applications
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Applications::getAll
* @todo Implement testgetAll(). * @todo Implement testgetAll().
*/ */
public function testgetAll() public function testgetAll()
{ {
if (class_exists('Applications')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Applications'); $this->assertTrue( in_array('getAll', $methods ), 'exists method getAll' );
$this->assertTrue( in_array( 'getAll', $methods ), 'seems like this function is outside this class' ); $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 * @covers Applications::setDefaultFields
* @todo Implement testsetDefaultFields(). * @todo Implement testsetDefaultFields().
*/ */
public function testsetDefaultFields() public function testsetDefaultFields()
{ {
if (class_exists('Applications')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Applications'); $this->assertTrue( in_array('setDefaultFields', $methods ), 'exists method setDefaultFields' );
$this->assertTrue( in_array( 'setDefaultFields', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Applications', 'setDefaultFields');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Applications::getDefaultFields * @covers Applications::getDefaultFields
* @todo Implement testgetDefaultFields(). * @todo Implement testgetDefaultFields().
*/ */
public function testgetDefaultFields() public function testgetDefaultFields()
{ {
if (class_exists('Applications')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Applications'); $this->assertTrue( in_array('getDefaultFields', $methods ), 'exists method getDefaultFields' );
$this->assertTrue( in_array( 'getDefaultFields', $methods ), 'seems like this function is outside this class' ); $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 * @covers Applications::genericJsonResponse
* @todo Implement testgenericJsonResponse(). * @todo Implement testgenericJsonResponse().
*/ */
public function testgenericJsonResponse() public function testgenericJsonResponse()
{ {
if (class_exists('Applications')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Applications'); $this->assertTrue( in_array('genericJsonResponse', $methods ), 'exists method genericJsonResponse' );
$this->assertTrue( in_array( 'genericJsonResponse', $methods ), 'seems like this function is outside this class' ); $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 * @covers Applications::getSteps
* @todo Implement testgetSteps(). * @todo Implement testgetSteps().
*/ */
public function testgetSteps() public function testgetSteps()
{ {
if (class_exists('Applications')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Applications'); $this->assertTrue( in_array('getSteps', $methods ), 'exists method getSteps' );
$this->assertTrue( in_array( 'getSteps', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,267 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.ArrayPeer.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:17.
*/
class classArrayBasePeerTest extends PHPUnit_Framework_TestCase
{
/**
* @covers ArrayBasePeer::getMapBuilder
* @todo Implement testgetMapBuilder().
*/
public function testgetMapBuilder()
{
if (class_exists('ArrayBasePeer')) {
$methods = get_class_methods( 'ArrayBasePeer');
$this->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' );
}
}
}

View File

@@ -1,171 +1,293 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ; require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.cli.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.cli.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:18. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:39.
*/ */
class classCLITest extends PHPUnit_Framework_TestCase
{
/**
* @var CLI
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers CLI::taskName
* @todo Implement testtaskName(). * @todo Implement testtaskName().
*/ */
public function testtaskName() public function testtaskName()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('taskName', $methods ), 'exists method taskName' );
$this->assertTrue( in_array( 'taskName', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::taskDescription
* @todo Implement testtaskDescription(). * @todo Implement testtaskDescription().
*/ */
public function testtaskDescription() public function testtaskDescription()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('taskDescription', $methods ), 'exists method taskDescription' );
$this->assertTrue( in_array( 'taskDescription', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::taskArg
* @todo Implement testtaskArg(). * @todo Implement testtaskArg().
*/ */
public function testtaskArg() public function testtaskArg()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('taskArg', $methods ), 'exists method taskArg' );
$this->assertTrue( in_array( 'taskArg', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::taskOpt
* @todo Implement testtaskOpt(). * @todo Implement testtaskOpt().
*/ */
public function testtaskOpt() public function testtaskOpt()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('taskOpt', $methods ), 'exists method taskOpt' );
$this->assertTrue( in_array( 'taskOpt', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::taskRun
* @todo Implement testtaskRun(). * @todo Implement testtaskRun().
*/ */
public function testtaskRun() public function testtaskRun()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('taskRun', $methods ), 'exists method taskRun' );
$this->assertTrue( in_array( 'taskRun', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::help
* @todo Implement testhelp(). * @todo Implement testhelp().
*/ */
public function testhelp() public function testhelp()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('help', $methods ), 'exists method help' );
$this->assertTrue( in_array( 'help', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::run
* @todo Implement testrun(). * @todo Implement testrun().
*/ */
public function testrun() public function testrun()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('run', $methods ), 'exists method run' );
$this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('CLI', 'run');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers CLI::info * @covers CLI::info
* @todo Implement testinfo(). * @todo Implement testinfo().
*/ */
public function testinfo() public function testinfo()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('info', $methods ), 'exists method info' );
$this->assertTrue( in_array( 'info', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::warning
* @todo Implement testwarning(). * @todo Implement testwarning().
*/ */
public function testwarning() public function testwarning()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('warning', $methods ), 'exists method warning' );
$this->assertTrue( in_array( 'warning', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::error
* @todo Implement testerror(). * @todo Implement testerror().
*/ */
public function testerror() public function testerror()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('error', $methods ), 'exists method error' );
$this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::prompt
* @todo Implement testprompt(). * @todo Implement testprompt().
*/ */
public function testprompt() public function testprompt()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('prompt', $methods ), 'exists method prompt' );
$this->assertTrue( in_array( 'prompt', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::question
* @todo Implement testquestion(). * @todo Implement testquestion().
*/ */
public function testquestion() public function testquestion()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('question', $methods ), 'exists method question' );
$this->assertTrue( in_array( 'question', $methods ), 'seems like this function is outside this class' ); $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 * @covers CLI::logging
* @todo Implement testlogging(). * @todo Implement testlogging().
*/ */
public function testlogging() public function testlogging()
{ {
if (class_exists('CLI')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'CLI'); $this->assertTrue( in_array('logging', $methods ), 'exists method logging' );
$this->assertTrue( in_array( 'logging', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -1,207 +1,430 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ; require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.configuration.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.configuration.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:18. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:39.
*/ */
class classConfigurationsTest extends PHPUnit_Framework_TestCase
{
/**
* @var Configurations
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Configurations::Configurations
* @todo Implement testConfigurations(). * @todo Implement testConfigurations().
*/ */
public function testConfigurations() public function testConfigurations()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('Configurations', $methods ), 'exists method Configurations' );
$this->assertTrue( in_array( 'Configurations', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Configurations', 'Configurations');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Configurations::arrayClone * @covers Configurations::arrayClone
* @todo Implement testarrayClone(). * @todo Implement testarrayClone().
*/ */
public function testarrayClone() public function testarrayClone()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('arrayClone', $methods ), 'exists method arrayClone' );
$this->assertTrue( in_array( 'arrayClone', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::configObject
* @todo Implement testconfigObject(). * @todo Implement testconfigObject().
*/ */
public function testconfigObject() public function testconfigObject()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('configObject', $methods ), 'exists method configObject' );
$this->assertTrue( in_array( 'configObject', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::loadConfig
* @todo Implement testloadConfig(). * @todo Implement testloadConfig().
*/ */
public function testloadConfig() public function testloadConfig()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('loadConfig', $methods ), 'exists method loadConfig' );
$this->assertTrue( in_array( 'loadConfig', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::load
* @todo Implement testload(). * @todo Implement testload().
*/ */
public function testload() public function testload()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('load', $methods ), 'exists method load' );
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::saveConfig
* @todo Implement testsaveConfig(). * @todo Implement testsaveConfig().
*/ */
public function testsaveConfig() public function testsaveConfig()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('saveConfig', $methods ), 'exists method saveConfig' );
$this->assertTrue( in_array( 'saveConfig', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::saveObject
* @todo Implement testsaveObject(). * @todo Implement testsaveObject().
*/ */
public function testsaveObject() public function testsaveObject()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('saveObject', $methods ), 'exists method saveObject' );
$this->assertTrue( in_array( 'saveObject', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::loadObject
* @todo Implement testloadObject(). * @todo Implement testloadObject().
*/ */
public function testloadObject() public function testloadObject()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('loadObject', $methods ), 'exists method loadObject' );
$this->assertTrue( in_array( 'loadObject', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::getConfiguration
* @todo Implement testgetConfiguration(). * @todo Implement testgetConfiguration().
*/ */
public function testgetConfiguration() public function testgetConfiguration()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('getConfiguration', $methods ), 'exists method getConfiguration' );
$this->assertTrue( in_array( 'getConfiguration', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::usersNameFormat
* @todo Implement testusersNameFormat(). * @todo Implement testusersNameFormat().
*/ */
public function testusersNameFormat() public function testusersNameFormat()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('usersNameFormat', $methods ), 'exists method usersNameFormat' );
$this->assertTrue( in_array( 'usersNameFormat', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::getFormats
* @todo Implement testgetFormats(). * @todo Implement testgetFormats().
*/ */
public function testgetFormats() public function testgetFormats()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('getFormats', $methods ), 'exists method getFormats' );
$this->assertTrue( in_array( 'getFormats', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Configurations', 'getFormats');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Configurations::setConfig * @covers Configurations::setConfig
* @todo Implement testsetConfig(). * @todo Implement testsetConfig().
*/ */
public function testsetConfig() public function testsetConfig()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('setConfig', $methods ), 'exists method setConfig' );
$this->assertTrue( in_array( 'setConfig', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::getDateFormats
* @todo Implement testgetDateFormats(). * @todo Implement testgetDateFormats().
*/ */
public function testgetDateFormats() public function testgetDateFormats()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('getDateFormats', $methods ), 'exists method getDateFormats' );
$this->assertTrue( in_array( 'getDateFormats', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Configurations', 'getDateFormats');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Configurations::getUserNameFormats * @covers Configurations::getUserNameFormats
* @todo Implement testgetUserNameFormats(). * @todo Implement testgetUserNameFormats().
*/ */
public function testgetUserNameFormats() public function testgetUserNameFormats()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('getUserNameFormats', $methods ), 'exists method getUserNameFormats' );
$this->assertTrue( in_array( 'getUserNameFormats', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Configurations', 'getUserNameFormats');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Configurations::getSystemDate * @covers Configurations::getSystemDate
* @todo Implement testgetSystemDate(). * @todo Implement testgetSystemDate().
*/ */
public function testgetSystemDate() public function testgetSystemDate()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('getSystemDate', $methods ), 'exists method getSystemDate' );
$this->assertTrue( in_array( 'getSystemDate', $methods ), 'seems like this function is outside this class' ); $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 * @covers Configurations::getEnvSetting
* @todo Implement testgetEnvSetting(). * @todo Implement testgetEnvSetting().
*/ */
public function testgetEnvSetting() public function testgetEnvSetting()
{ {
if (class_exists('Configurations')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Configurations'); $this->assertTrue( in_array('getEnvSetting', $methods ), 'exists method getEnvSetting' );
$this->assertTrue( in_array( 'getEnvSetting', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,171 +1,291 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ; require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.derivation.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.derivation.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:12. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:32.
*/ */
class classDerivationTest extends PHPUnit_Framework_TestCase
{
/**
* @var Derivation
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Derivation::prepareInformation
* @todo Implement testprepareInformation(). * @todo Implement testprepareInformation().
*/ */
public function testprepareInformation() public function testprepareInformation()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('prepareInformation', $methods ), 'exists method prepareInformation' );
$this->assertTrue( in_array( 'prepareInformation', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::getRouteCondition
* @todo Implement testgetRouteCondition(). * @todo Implement testgetRouteCondition().
*/ */
public function testgetRouteCondition() public function testgetRouteCondition()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('getRouteCondition', $methods ), 'exists method getRouteCondition' );
$this->assertTrue( in_array( 'getRouteCondition', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::GetAppParentIndex
* @todo Implement testGetAppParentIndex(). * @todo Implement testGetAppParentIndex().
*/ */
public function testGetAppParentIndex() public function testGetAppParentIndex()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('GetAppParentIndex', $methods ), 'exists method GetAppParentIndex' );
$this->assertTrue( in_array( 'GetAppParentIndex', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::getAllUsersFromAnyTask
* @todo Implement testgetAllUsersFromAnyTask(). * @todo Implement testgetAllUsersFromAnyTask().
*/ */
public function testgetAllUsersFromAnyTask() public function testgetAllUsersFromAnyTask()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('getAllUsersFromAnyTask', $methods ), 'exists method getAllUsersFromAnyTask' );
$this->assertTrue( in_array( 'getAllUsersFromAnyTask', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::getUsersFullNameFromArray
* @todo Implement testgetUsersFullNameFromArray(). * @todo Implement testgetUsersFullNameFromArray().
*/ */
public function testgetUsersFullNameFromArray() public function testgetUsersFullNameFromArray()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('getUsersFullNameFromArray', $methods ), 'exists method getUsersFullNameFromArray' );
$this->assertTrue( in_array( 'getUsersFullNameFromArray', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::getNextAssignedUser
* @todo Implement testgetNextAssignedUser(). * @todo Implement testgetNextAssignedUser().
*/ */
public function testgetNextAssignedUser() public function testgetNextAssignedUser()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('getNextAssignedUser', $methods ), 'exists method getNextAssignedUser' );
$this->assertTrue( in_array( 'getNextAssignedUser', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::getDenpendentUser
* @todo Implement testgetDenpendentUser(). * @todo Implement testgetDenpendentUser().
*/ */
public function testgetDenpendentUser() public function testgetDenpendentUser()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('getDenpendentUser', $methods ), 'exists method getDenpendentUser' );
$this->assertTrue( in_array( 'getDenpendentUser', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::setTasLastAssigned
* @todo Implement testsetTasLastAssigned(). * @todo Implement testsetTasLastAssigned().
*/ */
public function testsetTasLastAssigned() public function testsetTasLastAssigned()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('setTasLastAssigned', $methods ), 'exists method setTasLastAssigned' );
$this->assertTrue( in_array( 'setTasLastAssigned', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::derivate
* @todo Implement testderivate(). * @todo Implement testderivate().
*/ */
public function testderivate() public function testderivate()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('derivate', $methods ), 'exists method derivate' );
$this->assertTrue( in_array( 'derivate', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::doDerivation
* @todo Implement testdoDerivation(). * @todo Implement testdoDerivation().
*/ */
public function testdoDerivation() public function testdoDerivation()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('doDerivation', $methods ), 'exists method doDerivation' );
$this->assertTrue( in_array( 'doDerivation', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::verifyIsCaseChild
* @todo Implement testverifyIsCaseChild(). * @todo Implement testverifyIsCaseChild().
*/ */
public function testverifyIsCaseChild() public function testverifyIsCaseChild()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('verifyIsCaseChild', $methods ), 'exists method verifyIsCaseChild' );
$this->assertTrue( in_array( 'verifyIsCaseChild', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::getDerivatedCases
* @todo Implement testgetDerivatedCases(). * @todo Implement testgetDerivatedCases().
*/ */
public function testgetDerivatedCases() public function testgetDerivatedCases()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('getDerivatedCases', $methods ), 'exists method getDerivatedCases' );
$this->assertTrue( in_array( 'getDerivatedCases', $methods ), 'seems like this function is outside this class' ); $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 * @covers Derivation::getGrpUser
* @todo Implement testgetGrpUser(). * @todo Implement testgetGrpUser().
*/ */
public function testgetGrpUser() public function testgetGrpUser()
{ {
if (class_exists('Derivation')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Derivation'); $this->assertTrue( in_array('getGrpUser', $methods ), 'exists method getGrpUser' );
$this->assertTrue( in_array( 'getGrpUser', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,75 +1,139 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ; require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.dynaFormField.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.dynaFormField.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:17. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:38.
*/ */
class classDynaFormFieldTest extends PHPUnit_Framework_TestCase
{
/**
* @var DynaFormField
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers DynaFormField::SetTo
* @todo Implement testSetTo(). * @todo Implement testSetTo().
*/ */
public function testSetTo() public function testSetTo()
{ {
if (class_exists('DynaFormField')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DynaFormField'); $this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' );
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' ); $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 * @covers DynaFormField::Load
* @todo Implement testLoad(). * @todo Implement testLoad().
*/ */
public function testLoad() public function testLoad()
{ {
if (class_exists('DynaFormField')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DynaFormField'); $this->assertTrue( in_array('Load', $methods ), 'exists method Load' );
$this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' ); $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 * @covers DynaFormField::Delete
* @todo Implement testDelete(). * @todo Implement testDelete().
*/ */
public function testDelete() public function testDelete()
{ {
if (class_exists('DynaFormField')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DynaFormField'); $this->assertTrue( in_array('Delete', $methods ), 'exists method Delete' );
$this->assertTrue( in_array( 'Delete', $methods ), 'seems like this function is outside this class' ); $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 * @covers DynaFormField::Save
* @todo Implement testSave(). * @todo Implement testSave().
*/ */
public function testSave() public function testSave()
{ {
if (class_exists('DynaFormField')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DynaFormField'); $this->assertTrue( in_array('Save', $methods ), 'exists method Save' );
$this->assertTrue( in_array( 'Save', $methods ), 'seems like this function is outside this class' ); $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 * @covers DynaFormField::isNew
* @todo Implement testisNew(). * @todo Implement testisNew().
*/ */
public function testisNew() public function testisNew()
{ {
if (class_exists('DynaFormField')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'DynaFormField'); $this->assertTrue( in_array('isNew', $methods ), 'exists method isNew' );
$this->assertTrue( in_array( 'isNew', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('DynaFormField', 'isNew');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
} }

View File

@@ -1,51 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.groupUser.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:18.
*/
class classGroupUserTest extends PHPUnit_Framework_TestCase
{
/**
* @covers GroupUser::GroupUser
* @todo Implement testGroupUser().
*/
public function testGroupUser()
{
if (class_exists('GroupUser')) {
$methods = get_class_methods( 'GroupUser');
$this->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' );
}
}
}

View File

@@ -1,219 +1,356 @@
<?php <?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php'; require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ; require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ; require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.groups.php'; require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.groups.php';
/** /**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:12. * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:32.
*/ */
class classGroupsTest extends PHPUnit_Framework_TestCase
{
/**
* @var Groups
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new 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 * @covers Groups::getUsersOfGroup
* @todo Implement testgetUsersOfGroup(). * @todo Implement testgetUsersOfGroup().
*/ */
public function testgetUsersOfGroup() public function testgetUsersOfGroup()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getUsersOfGroup', $methods ), 'exists method getUsersOfGroup' );
$this->assertTrue( in_array( 'getUsersOfGroup', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getActiveGroupsForAnUser
* @todo Implement testgetActiveGroupsForAnUser(). * @todo Implement testgetActiveGroupsForAnUser().
*/ */
public function testgetActiveGroupsForAnUser() public function testgetActiveGroupsForAnUser()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getActiveGroupsForAnUser', $methods ), 'exists method getActiveGroupsForAnUser' );
$this->assertTrue( in_array( 'getActiveGroupsForAnUser', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::addUserToGroup
* @todo Implement testaddUserToGroup(). * @todo Implement testaddUserToGroup().
*/ */
public function testaddUserToGroup() public function testaddUserToGroup()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('addUserToGroup', $methods ), 'exists method addUserToGroup' );
$this->assertTrue( in_array( 'addUserToGroup', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::removeUserOfGroup
* @todo Implement testremoveUserOfGroup(). * @todo Implement testremoveUserOfGroup().
*/ */
public function testremoveUserOfGroup() public function testremoveUserOfGroup()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('removeUserOfGroup', $methods ), 'exists method removeUserOfGroup' );
$this->assertTrue( in_array( 'removeUserOfGroup', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getAllGroups
* @todo Implement testgetAllGroups(). * @todo Implement testgetAllGroups().
*/ */
public function testgetAllGroups() public function testgetAllGroups()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getAllGroups', $methods ), 'exists method getAllGroups' );
$this->assertTrue( in_array( 'getAllGroups', $methods ), 'seems like this function is outside this class' ); $r = new ReflectionMethod('Groups', 'getAllGroups');
} $params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
} }
/** /**
* @covers Groups::getUserGroups * @covers Groups::getUserGroups
* @todo Implement testgetUserGroups(). * @todo Implement testgetUserGroups().
*/ */
public function testgetUserGroups() public function testgetUserGroups()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getUserGroups', $methods ), 'exists method getUserGroups' );
$this->assertTrue( in_array( 'getUserGroups', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getAvailableGroupsCriteria
* @todo Implement testgetAvailableGroupsCriteria(). * @todo Implement testgetAvailableGroupsCriteria().
*/ */
public function testgetAvailableGroupsCriteria() public function testgetAvailableGroupsCriteria()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getAvailableGroupsCriteria', $methods ), 'exists method getAvailableGroupsCriteria' );
$this->assertTrue( in_array( 'getAvailableGroupsCriteria', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getAssignedGroupsCriteria
* @todo Implement testgetAssignedGroupsCriteria(). * @todo Implement testgetAssignedGroupsCriteria().
*/ */
public function testgetAssignedGroupsCriteria() public function testgetAssignedGroupsCriteria()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getAssignedGroupsCriteria', $methods ), 'exists method getAssignedGroupsCriteria' );
$this->assertTrue( in_array( 'getAssignedGroupsCriteria', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getGroupsForUser
* @todo Implement testgetGroupsForUser(). * @todo Implement testgetGroupsForUser().
*/ */
public function testgetGroupsForUser() public function testgetGroupsForUser()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getGroupsForUser', $methods ), 'exists method getGroupsForUser' );
$this->assertTrue( in_array( 'getGroupsForUser', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::removeUserOfAllGroups
* @todo Implement testremoveUserOfAllGroups(). * @todo Implement testremoveUserOfAllGroups().
*/ */
public function testremoveUserOfAllGroups() public function testremoveUserOfAllGroups()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('removeUserOfAllGroups', $methods ), 'exists method removeUserOfAllGroups' );
$this->assertTrue( in_array( 'removeUserOfAllGroups', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getUsersGroupCriteria
* @todo Implement testgetUsersGroupCriteria(). * @todo Implement testgetUsersGroupCriteria().
*/ */
public function testgetUsersGroupCriteria() public function testgetUsersGroupCriteria()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getUsersGroupCriteria', $methods ), 'exists method getUsersGroupCriteria' );
$this->assertTrue( in_array( 'getUsersGroupCriteria', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getUserGroupsCriteria
* @todo Implement testgetUserGroupsCriteria(). * @todo Implement testgetUserGroupsCriteria().
*/ */
public function testgetUserGroupsCriteria() public function testgetUserGroupsCriteria()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getUserGroupsCriteria', $methods ), 'exists method getUserGroupsCriteria' );
$this->assertTrue( in_array( 'getUserGroupsCriteria', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getNumberGroups
* @todo Implement testgetNumberGroups(). * @todo Implement testgetNumberGroups().
*/ */
public function testgetNumberGroups() public function testgetNumberGroups()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getNumberGroups', $methods ), 'exists method getNumberGroups' );
$this->assertTrue( in_array( 'getNumberGroups', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::getAvailableUsersCriteria
* @todo Implement testgetAvailableUsersCriteria(). * @todo Implement testgetAvailableUsersCriteria().
*/ */
public function testgetAvailableUsersCriteria() public function testgetAvailableUsersCriteria()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('getAvailableUsersCriteria', $methods ), 'exists method getAvailableUsersCriteria' );
$this->assertTrue( in_array( 'getAvailableUsersCriteria', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::verifyUsertoGroup
* @todo Implement testverifyUsertoGroup(). * @todo Implement testverifyUsertoGroup().
*/ */
public function testverifyUsertoGroup() public function testverifyUsertoGroup()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('verifyUsertoGroup', $methods ), 'exists method verifyUsertoGroup' );
$this->assertTrue( in_array( 'verifyUsertoGroup', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::verifyGroup
* @todo Implement testverifyGroup(). * @todo Implement testverifyGroup().
*/ */
public function testverifyGroup() public function testverifyGroup()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('verifyGroup', $methods ), 'exists method verifyGroup' );
$this->assertTrue( in_array( 'verifyGroup', $methods ), 'seems like this function is outside this class' ); $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 * @covers Groups::load
* @todo Implement testload(). * @todo Implement testload().
*/ */
public function testload() public function testload()
{ {
if (class_exists('Groups')) { $methods = get_class_methods($this->object);
$methods = get_class_methods( 'Groups'); $this->assertTrue( in_array('load', $methods ), 'exists method load' );
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' ); $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.');
} }
} }

View File

@@ -1,255 +0,0 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php' ;
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
require_once PATH_TRUNK . 'workflow/engine/classes/class.BasePeer.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:11.
*/
class classGulliverBasePeerTest extends PHPUnit_Framework_TestCase
{
/**
* @covers GulliverBasePeer::getMapBuilder
* @todo Implement testgetMapBuilder().
*/
public function testgetMapBuilder()
{
if (class_exists('GulliverBasePeer')) {
$methods = get_class_methods( 'GulliverBasePeer');
$this->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' );
}
}
}

Some files were not shown because too many files have changed in this diff Show More