php units for all classes
This commit is contained in:
@@ -1,241 +1,384 @@
|
||||
<?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.controller.php';
|
||||
<?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.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
|
||||
* @todo Implement test__set().
|
||||
*/
|
||||
public function test__set()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__set()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__set', $methods ), 'exists method __set' );
|
||||
$r = new ReflectionMethod('Controller', '__set');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::__get
|
||||
* @todo Implement test__get().
|
||||
*/
|
||||
public function test__get()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__get()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__get', $methods ), 'exists method __get' );
|
||||
$r = new ReflectionMethod('Controller', '__get');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::__isset
|
||||
* @todo Implement test__isset().
|
||||
*/
|
||||
public function test__isset()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__isset()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' );
|
||||
$r = new ReflectionMethod('Controller', '__isset');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::__unset
|
||||
* @todo Implement test__unset().
|
||||
*/
|
||||
public function test__unset()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__unset()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' );
|
||||
$r = new ReflectionMethod('Controller', '__unset');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::setResponseType
|
||||
* @todo Implement testsetResponseType().
|
||||
*/
|
||||
public function testsetResponseType()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'setResponseType', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetResponseType()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setResponseType', $methods ), 'exists method setResponseType' );
|
||||
$r = new ReflectionMethod('Controller', 'setResponseType');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'type');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::call
|
||||
* @todo Implement testcall().
|
||||
*/
|
||||
public function testcall()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcall()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('call', $methods ), 'exists method call' );
|
||||
$r = new ReflectionMethod('Controller', 'call');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::setHttpRequestData
|
||||
* @todo Implement testsetHttpRequestData().
|
||||
*/
|
||||
public function testsetHttpRequestData()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetHttpRequestData()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' );
|
||||
$r = new ReflectionMethod('Controller', 'setHttpRequestData');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'data');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::setDebug
|
||||
* @todo Implement testsetDebug().
|
||||
*/
|
||||
public function testsetDebug()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'setDebug', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetDebug()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setDebug', $methods ), 'exists method setDebug' );
|
||||
$r = new ReflectionMethod('Controller', 'setDebug');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'val');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::getDebug
|
||||
* @todo Implement testgetDebug().
|
||||
*/
|
||||
public function testgetDebug()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'getDebug', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetDebug()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getDebug', $methods ), 'exists method getDebug' );
|
||||
$r = new ReflectionMethod('Controller', 'getDebug');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::includeExtJSLib
|
||||
* @todo Implement testincludeExtJSLib().
|
||||
*/
|
||||
public function testincludeExtJSLib()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'includeExtJSLib', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testincludeExtJSLib()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('includeExtJSLib', $methods ), 'exists method includeExtJSLib' );
|
||||
$r = new ReflectionMethod('Controller', 'includeExtJSLib');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'srcFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'debug');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::includeExtJS
|
||||
* @todo Implement testincludeExtJS().
|
||||
*/
|
||||
public function testincludeExtJS()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'includeExtJS', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testincludeExtJS()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('includeExtJS', $methods ), 'exists method includeExtJS' );
|
||||
$r = new ReflectionMethod('Controller', 'includeExtJS');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'srcFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'debug');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::setView
|
||||
* @todo Implement testsetView().
|
||||
*/
|
||||
public function testsetView()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'setView', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetView()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setView', $methods ), 'exists method setView' );
|
||||
$r = new ReflectionMethod('Controller', 'setView');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::setJSVar
|
||||
* @todo Implement testsetJSVar().
|
||||
*/
|
||||
public function testsetJSVar()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'setJSVar', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetJSVar()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setJSVar', $methods ), 'exists method setJSVar' );
|
||||
$r = new ReflectionMethod('Controller', 'setJSVar');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::setVar
|
||||
* @todo Implement testsetVar().
|
||||
*/
|
||||
public function testsetVar()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'setVar', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetVar()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setVar', $methods ), 'exists method setVar' );
|
||||
$r = new ReflectionMethod('Controller', 'setVar');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::getHeadPublisher
|
||||
* @todo Implement testgetHeadPublisher().
|
||||
*/
|
||||
public function testgetHeadPublisher()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'getHeadPublisher', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetHeadPublisher()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getHeadPublisher', $methods ), 'exists method getHeadPublisher' );
|
||||
$r = new ReflectionMethod('Controller', 'getHeadPublisher');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::setLayout
|
||||
* @todo Implement testsetLayout().
|
||||
*/
|
||||
public function testsetLayout()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'setLayout', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetLayout()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setLayout', $methods ), 'exists method setLayout' );
|
||||
$r = new ReflectionMethod('Controller', 'setLayout');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'layout');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('Controller', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'type');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'mvc');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::header
|
||||
* @todo Implement testheader().
|
||||
*/
|
||||
public function testheader()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'header', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testheader()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('header', $methods ), 'exists method header' );
|
||||
$r = new ReflectionMethod('Controller', 'header');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'header');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Controller::redirect
|
||||
* @todo Implement testredirect().
|
||||
*/
|
||||
public function testredirect()
|
||||
{
|
||||
if (class_exists('Controller')) {
|
||||
$methods = get_class_methods( 'Controller');
|
||||
$this->assertTrue( in_array( 'redirect', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testredirect()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('redirect', $methods ), 'exists method redirect' );
|
||||
$r = new ReflectionMethod('Controller', 'redirect');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,145 +1,232 @@
|
||||
<?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.dbtable.php';
|
||||
<?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.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
|
||||
* @todo Implement testdBTable().
|
||||
*/
|
||||
public function testdBTable()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'dBTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdBTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('dBTable', $methods ), 'exists method dBTable' );
|
||||
$r = new ReflectionMethod('DBTable', 'dBTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'objConnection');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'strTable');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'arrKeys');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::setTo
|
||||
* @todo Implement testsetTo().
|
||||
*/
|
||||
public function testsetTo()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'setTo', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetTo()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setTo', $methods ), 'exists method setTo' );
|
||||
$r = new ReflectionMethod('DBTable', 'setTo');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'objDBConnection');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'strTable');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'arrKeys');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::loadEmpty
|
||||
* @todo Implement testloadEmpty().
|
||||
*/
|
||||
public function testloadEmpty()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'loadEmpty', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testloadEmpty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('loadEmpty', $methods ), 'exists method loadEmpty' );
|
||||
$r = new ReflectionMethod('DBTable', 'loadEmpty');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::loadWhere
|
||||
* @todo Implement testloadWhere().
|
||||
*/
|
||||
public function testloadWhere()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'loadWhere', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testloadWhere()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('loadWhere', $methods ), 'exists method loadWhere' );
|
||||
$r = new ReflectionMethod('DBTable', 'loadWhere');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strWhere');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::load
|
||||
* @todo Implement testload().
|
||||
*/
|
||||
public function testload()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
|
||||
$r = new ReflectionMethod('DBTable', 'load');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::nextvalPGSql
|
||||
* @todo Implement testnextvalPGSql().
|
||||
*/
|
||||
public function testnextvalPGSql()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'nextvalPGSql', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testnextvalPGSql()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('nextvalPGSql', $methods ), 'exists method nextvalPGSql' );
|
||||
$r = new ReflectionMethod('DBTable', 'nextvalPGSql');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'seq');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::insert
|
||||
* @todo Implement testinsert().
|
||||
*/
|
||||
public function testinsert()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'insert', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testinsert()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('insert', $methods ), 'exists method insert' );
|
||||
$r = new ReflectionMethod('DBTable', 'insert');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::update
|
||||
* @todo Implement testupdate().
|
||||
*/
|
||||
public function testupdate()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'update', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testupdate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('update', $methods ), 'exists method update' );
|
||||
$r = new ReflectionMethod('DBTable', 'update');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::save
|
||||
* @todo Implement testsave().
|
||||
*/
|
||||
public function testsave()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsave()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
|
||||
$r = new ReflectionMethod('DBTable', 'save');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::delete
|
||||
* @todo Implement testdelete().
|
||||
*/
|
||||
public function testdelete()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdelete()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
|
||||
$r = new ReflectionMethod('DBTable', 'delete');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DBTable::next
|
||||
* @todo Implement testnext().
|
||||
*/
|
||||
public function testnext()
|
||||
{
|
||||
if (class_exists('DBTable')) {
|
||||
$methods = get_class_methods( 'DBTable');
|
||||
$this->assertTrue( in_array( 'next', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testnext()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('next', $methods ), 'exists method next' );
|
||||
$r = new ReflectionMethod('DBTable', 'next');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,337 +1,503 @@
|
||||
<?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.dbMaintenance.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'host');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'user');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'passwd');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::setUser
|
||||
* @todo Implement testsetUser().
|
||||
*/
|
||||
public function testsetUser()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'setUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setUser', $methods ), 'exists method setUser' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'setUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'user');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::setPasswd
|
||||
* @todo Implement testsetPasswd().
|
||||
*/
|
||||
public function testsetPasswd()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'setPasswd', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetPasswd()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setPasswd', $methods ), 'exists method setPasswd' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'setPasswd');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'passwd');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::setHost
|
||||
* @todo Implement testsetHost().
|
||||
*/
|
||||
public function testsetHost()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'setHost', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetHost()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setHost', $methods ), 'exists method setHost' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'setHost');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'host');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::setTempDir
|
||||
* @todo Implement testsetTempDir().
|
||||
*/
|
||||
public function testsetTempDir()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'setTempDir', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetTempDir()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setTempDir', $methods ), 'exists method setTempDir' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'setTempDir');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tmpDir');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::getTempDir
|
||||
* @todo Implement testgetTempDir().
|
||||
*/
|
||||
public function testgetTempDir()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'getTempDir', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetTempDir()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getTempDir', $methods ), 'exists method getTempDir' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'getTempDir');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::status
|
||||
* @todo Implement teststatus().
|
||||
*/
|
||||
public function teststatus()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'status', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function teststatus()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('status', $methods ), 'exists method status' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'status');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::connect
|
||||
* @todo Implement testconnect().
|
||||
*/
|
||||
public function testconnect()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'connect', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testconnect()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('connect', $methods ), 'exists method connect' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'connect');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'dbname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::setDbName
|
||||
* @todo Implement testsetDbName().
|
||||
*/
|
||||
public function testsetDbName()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'setDbName', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetDbName()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setDbName', $methods ), 'exists method setDbName' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'setDbName');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'dbname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::selectDataBase
|
||||
* @todo Implement testselectDataBase().
|
||||
*/
|
||||
public function testselectDataBase()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'selectDataBase', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testselectDataBase()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('selectDataBase', $methods ), 'exists method selectDataBase' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'selectDataBase');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'dbname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::query
|
||||
* @todo Implement testquery().
|
||||
*/
|
||||
public function testquery()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'query', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testquery()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('query', $methods ), 'exists method query' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'query');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sql');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::error
|
||||
* @todo Implement testerror().
|
||||
*/
|
||||
public function testerror()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testerror()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('error', $methods ), 'exists method error' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'error');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::getTablesList
|
||||
* @todo Implement testgetTablesList().
|
||||
*/
|
||||
public function testgetTablesList()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'getTablesList', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetTablesList()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getTablesList', $methods ), 'exists method getTablesList' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'getTablesList');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::dumpData
|
||||
* @todo Implement testdumpData().
|
||||
*/
|
||||
public function testdumpData()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'dumpData', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdumpData()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('dumpData', $methods ), 'exists method dumpData' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'dumpData');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'table');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::restoreData
|
||||
* @todo Implement testrestoreData().
|
||||
*/
|
||||
public function testrestoreData()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'restoreData', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrestoreData()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('restoreData', $methods ), 'exists method restoreData' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreData');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'backupFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::backupData
|
||||
* @todo Implement testbackupData().
|
||||
*/
|
||||
public function testbackupData()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'backupData', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testbackupData()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('backupData', $methods ), 'exists method backupData' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'backupData');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::backupSqlData
|
||||
* @todo Implement testbackupSqlData().
|
||||
*/
|
||||
public function testbackupSqlData()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'backupSqlData', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testbackupSqlData()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('backupSqlData', $methods ), 'exists method backupSqlData' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'backupSqlData');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::restoreAllData
|
||||
* @todo Implement testrestoreAllData().
|
||||
*/
|
||||
public function testrestoreAllData()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'restoreAllData', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrestoreAllData()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('restoreAllData', $methods ), 'exists method restoreAllData' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreAllData');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'type');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::createDb
|
||||
* @todo Implement testcreateDb().
|
||||
*/
|
||||
public function testcreateDb()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'createDb', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcreateDb()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('createDb', $methods ), 'exists method createDb' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'createDb');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'dbname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'drop');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::restoreFromSql2
|
||||
* @todo Implement testrestoreFromSql2().
|
||||
*/
|
||||
public function testrestoreFromSql2()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'restoreFromSql2', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrestoreFromSql2()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('restoreFromSql2', $methods ), 'exists method restoreFromSql2' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreFromSql2');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sqlfile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::lockTables
|
||||
* @todo Implement testlockTables().
|
||||
*/
|
||||
public function testlockTables()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'lockTables', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testlockTables()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('lockTables', $methods ), 'exists method lockTables' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'lockTables');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::unlockTables
|
||||
* @todo Implement testunlockTables().
|
||||
*/
|
||||
public function testunlockTables()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'unlockTables', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testunlockTables()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('unlockTables', $methods ), 'exists method unlockTables' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'unlockTables');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::dumpSqlInserts
|
||||
* @todo Implement testdumpSqlInserts().
|
||||
*/
|
||||
public function testdumpSqlInserts()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'dumpSqlInserts', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdumpSqlInserts()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('dumpSqlInserts', $methods ), 'exists method dumpSqlInserts' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'dumpSqlInserts');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'table');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::backupDataBase
|
||||
* @todo Implement testbackupDataBase().
|
||||
*/
|
||||
public function testbackupDataBase()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'backupDataBase', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testbackupDataBase()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('backupDataBase', $methods ), 'exists method backupDataBase' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'backupDataBase');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'outfile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::restoreFromSql
|
||||
* @todo Implement testrestoreFromSql().
|
||||
*/
|
||||
public function testrestoreFromSql()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'restoreFromSql', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrestoreFromSql()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('restoreFromSql', $methods ), 'exists method restoreFromSql' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'restoreFromSql');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sqlfile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'type');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'file');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::getSchemaFromTable
|
||||
* @todo Implement testgetSchemaFromTable().
|
||||
*/
|
||||
public function testgetSchemaFromTable()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'getSchemaFromTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetSchemaFromTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getSchemaFromTable', $methods ), 'exists method getSchemaFromTable' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'getSchemaFromTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tablename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DataBaseMaintenance::removeCommentsIntoString
|
||||
* @todo Implement testremoveCommentsIntoString().
|
||||
*/
|
||||
public function testremoveCommentsIntoString()
|
||||
{
|
||||
if (class_exists('DataBaseMaintenance')) {
|
||||
$methods = get_class_methods( 'DataBaseMaintenance');
|
||||
$this->assertTrue( in_array( 'removeCommentsIntoString', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testremoveCommentsIntoString()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('removeCommentsIntoString', $methods ), 'exists method removeCommentsIntoString' );
|
||||
$r = new ReflectionMethod('DataBaseMaintenance', 'removeCommentsIntoString');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,145 +1,262 @@
|
||||
<?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.form.php';
|
||||
<?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.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
|
||||
* @todo Implement testsetDefaultValues().
|
||||
*/
|
||||
public function testsetDefaultValues()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'setDefaultValues', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetDefaultValues()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setDefaultValues', $methods ), 'exists method setDefaultValues' );
|
||||
$r = new ReflectionMethod('Form', 'setDefaultValues');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::Form
|
||||
* @todo Implement testForm().
|
||||
*/
|
||||
public function testForm()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'Form', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testForm()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Form', $methods ), 'exists method Form' );
|
||||
$r = new ReflectionMethod('Form', 'Form');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'home');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'language');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'forceParse');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'visual_frontend');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::printTemplate
|
||||
* @todo Implement testprintTemplate().
|
||||
*/
|
||||
public function testprintTemplate()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' );
|
||||
$r = new ReflectionMethod('Form', 'printTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'template');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'scriptContent');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('Form', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'template');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'scriptContent');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::setValues
|
||||
* @todo Implement testsetValues().
|
||||
*/
|
||||
public function testsetValues()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetValues()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' );
|
||||
$r = new ReflectionMethod('Form', 'setValues');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'newValues');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::getFields
|
||||
* @todo Implement testgetFields().
|
||||
*/
|
||||
public function testgetFields()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
|
||||
$r = new ReflectionMethod('Form', 'getFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'template');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'therow');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::validatePost
|
||||
* @todo Implement testvalidatePost().
|
||||
*/
|
||||
public function testvalidatePost()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'validatePost', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidatePost()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validatePost', $methods ), 'exists method validatePost' );
|
||||
$r = new ReflectionMethod('Form', 'validatePost');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::validateArray
|
||||
* @todo Implement testvalidateArray().
|
||||
*/
|
||||
public function testvalidateArray()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'validateArray', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateArray()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateArray', $methods ), 'exists method validateArray' );
|
||||
$r = new ReflectionMethod('Form', 'validateArray');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'newValues');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::getVars
|
||||
* @todo Implement testgetVars().
|
||||
*/
|
||||
public function testgetVars()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetVars()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' );
|
||||
$r = new ReflectionMethod('Form', 'getVars');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'bWhitSystemVars');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::validateRequiredFields
|
||||
* @todo Implement testvalidateRequiredFields().
|
||||
*/
|
||||
public function testvalidateRequiredFields()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'validateRequiredFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateRequiredFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateRequiredFields', $methods ), 'exists method validateRequiredFields' );
|
||||
$r = new ReflectionMethod('Form', 'validateRequiredFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'dataFields');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'noRequired');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Form::validateFields
|
||||
* @todo Implement testvalidateFields().
|
||||
*/
|
||||
public function testvalidateFields()
|
||||
{
|
||||
if (class_exists('Form')) {
|
||||
$methods = get_class_methods( 'Form');
|
||||
$this->assertTrue( in_array( 'validateFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateFields', $methods ), 'exists method validateFields' );
|
||||
$r = new ReflectionMethod('Form', 'validateFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'data');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,37 +1,96 @@
|
||||
<?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.error.php';
|
||||
<?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.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
|
||||
* @todo Implement testG_Error().
|
||||
*/
|
||||
public function testG_Error()
|
||||
{
|
||||
if (class_exists('G_Error')) {
|
||||
$methods = get_class_methods( 'G_Error');
|
||||
$this->assertTrue( in_array( 'G_Error', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testG_Error()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('G_Error', $methods ), 'exists method G_Error' );
|
||||
$r = new ReflectionMethod('G_Error', 'G_Error');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'code');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '-100');
|
||||
$this->assertTrue( $params[1]->getName() == 'mode');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '1');
|
||||
$this->assertTrue( $params[2]->getName() == 'level');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '1024');
|
||||
$this->assertTrue( $params[3]->getName() == 'debuginfo');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers G_Error::errorMessage
|
||||
* @todo Implement testerrorMessage().
|
||||
*/
|
||||
public function testerrorMessage()
|
||||
{
|
||||
if (class_exists('G_Error')) {
|
||||
$methods = get_class_methods( 'G_Error');
|
||||
$this->assertTrue( in_array( 'errorMessage', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testerrorMessage()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('errorMessage', $methods ), 'exists method errorMessage' );
|
||||
$r = new ReflectionMethod('G_Error', 'errorMessage');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'code');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,109 +1,174 @@
|
||||
<?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.helper.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('Helper', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Helper::addFile
|
||||
* @todo Implement testaddFile().
|
||||
*/
|
||||
public function testaddFile()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( 'addFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addFile', $methods ), 'exists method addFile' );
|
||||
$r = new ReflectionMethod('Helper', 'addFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Helper::addContent
|
||||
* @todo Implement testaddContent().
|
||||
*/
|
||||
public function testaddContent()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( 'addContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addContent', $methods ), 'exists method addContent' );
|
||||
$r = new ReflectionMethod('Helper', 'addContent');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'content');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Helper::setContentType
|
||||
* @todo Implement testsetContentType().
|
||||
*/
|
||||
public function testsetContentType()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetContentType()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' );
|
||||
$r = new ReflectionMethod('Helper', 'setContentType');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'ctype');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Helper::init
|
||||
* @todo Implement testinit().
|
||||
*/
|
||||
public function testinit()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( 'init', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testinit()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('init', $methods ), 'exists method init' );
|
||||
$r = new ReflectionMethod('Helper', 'init');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Helper::minify
|
||||
* @todo Implement testminify().
|
||||
*/
|
||||
public function testminify()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( 'minify', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testminify()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('minify', $methods ), 'exists method minify' );
|
||||
$r = new ReflectionMethod('Helper', 'minify');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Helper::flush
|
||||
* @todo Implement testflush().
|
||||
*/
|
||||
public function testflush()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( 'flush', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testflush()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('flush', $methods ), 'exists method flush' );
|
||||
$r = new ReflectionMethod('Helper', 'flush');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Helper::serve
|
||||
* @todo Implement testserve().
|
||||
*/
|
||||
public function testserve()
|
||||
{
|
||||
if (class_exists('Helper')) {
|
||||
$methods = get_class_methods( 'Helper');
|
||||
$this->assertTrue( in_array( 'serve', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testserve()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('serve', $methods ), 'exists method serve' );
|
||||
$r = new ReflectionMethod('Helper', 'serve');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'type');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,109 +1,188 @@
|
||||
<?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.httpProxyController.php';
|
||||
<?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.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
|
||||
* @todo Implement test__set().
|
||||
*/
|
||||
public function test__set()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( '__set', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__set()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__set', $methods ), 'exists method __set' );
|
||||
$r = new ReflectionMethod('HttpProxyController', '__set');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers HttpProxyController::__get
|
||||
* @todo Implement test__get().
|
||||
*/
|
||||
public function test__get()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( '__get', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__get()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__get', $methods ), 'exists method __get' );
|
||||
$r = new ReflectionMethod('HttpProxyController', '__get');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers HttpProxyController::__isset
|
||||
* @todo Implement test__isset().
|
||||
*/
|
||||
public function test__isset()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( '__isset', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__isset()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__isset', $methods ), 'exists method __isset' );
|
||||
$r = new ReflectionMethod('HttpProxyController', '__isset');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers HttpProxyController::__unset
|
||||
* @todo Implement test__unset().
|
||||
*/
|
||||
public function test__unset()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( '__unset', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__unset()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__unset', $methods ), 'exists method __unset' );
|
||||
$r = new ReflectionMethod('HttpProxyController', '__unset');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers HttpProxyController::call
|
||||
* @todo Implement testcall().
|
||||
*/
|
||||
public function testcall()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcall()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('call', $methods ), 'exists method call' );
|
||||
$r = new ReflectionMethod('HttpProxyController', 'call');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers HttpProxyController::setHttpRequestData
|
||||
* @todo Implement testsetHttpRequestData().
|
||||
*/
|
||||
public function testsetHttpRequestData()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( 'setHttpRequestData', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetHttpRequestData()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setHttpRequestData', $methods ), 'exists method setHttpRequestData' );
|
||||
$r = new ReflectionMethod('HttpProxyController', 'setHttpRequestData');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'data');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers HttpProxyController::setJsonResponse
|
||||
* @todo Implement testsetJsonResponse().
|
||||
*/
|
||||
public function testsetJsonResponse()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( 'setJsonResponse', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetJsonResponse()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setJsonResponse', $methods ), 'exists method setJsonResponse' );
|
||||
$r = new ReflectionMethod('HttpProxyController', 'setJsonResponse');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'bool');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers HttpProxyController::setSendResponse
|
||||
* @todo Implement testsetSendResponse().
|
||||
*/
|
||||
public function testsetSendResponse()
|
||||
{
|
||||
if (class_exists('HttpProxyController')) {
|
||||
$methods = get_class_methods( 'HttpProxyController');
|
||||
$this->assertTrue( in_array( 'setSendResponse', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetSendResponse()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setSendResponse', $methods ), 'exists method setSendResponse' );
|
||||
$r = new ReflectionMethod('HttpProxyController', 'setSendResponse');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'val');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,145 +1,292 @@
|
||||
<?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.menu.php';
|
||||
<?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.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
|
||||
* @todo Implement testSetClass().
|
||||
*/
|
||||
public function testSetClass()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'SetClass', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testSetClass()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('SetClass', $methods ), 'exists method SetClass' );
|
||||
$r = new ReflectionMethod('Menu', 'SetClass');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strClass');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'mnu');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::Load
|
||||
* @todo Implement testLoad().
|
||||
*/
|
||||
public function testLoad()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testLoad()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Load', $methods ), 'exists method Load' );
|
||||
$r = new ReflectionMethod('Menu', 'Load');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strMenuName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::OptionCount
|
||||
* @todo Implement testOptionCount().
|
||||
*/
|
||||
public function testOptionCount()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'OptionCount', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testOptionCount()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('OptionCount', $methods ), 'exists method OptionCount' );
|
||||
$r = new ReflectionMethod('Menu', 'OptionCount');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::AddOption
|
||||
* @todo Implement testAddOption().
|
||||
*/
|
||||
public function testAddOption()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'AddOption', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddOption()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddOption', $methods ), 'exists method AddOption' );
|
||||
$r = new ReflectionMethod('Menu', 'AddOption');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strLabel');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'strURL');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'strType');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'plugins');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::AddIdOption
|
||||
* @todo Implement testAddIdOption().
|
||||
*/
|
||||
public function testAddIdOption()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'AddIdOption', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddIdOption()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddIdOption', $methods ), 'exists method AddIdOption' );
|
||||
$r = new ReflectionMethod('Menu', 'AddIdOption');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strId');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'strLabel');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'strURL');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'strType');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == 'plugins');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::AddRawOption
|
||||
* @todo Implement testAddRawOption().
|
||||
*/
|
||||
public function testAddRawOption()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'AddRawOption', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddRawOption()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddRawOption', $methods ), 'exists method AddRawOption' );
|
||||
$r = new ReflectionMethod('Menu', 'AddRawOption');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strURL');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'strType');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'plugins');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::AddIdRawOption
|
||||
* @todo Implement testAddIdRawOption().
|
||||
*/
|
||||
public function testAddIdRawOption()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'AddIdRawOption', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddIdRawOption()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddIdRawOption', $methods ), 'exists method AddIdRawOption' );
|
||||
$r = new ReflectionMethod('Menu', 'AddIdRawOption');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strId');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'strURL');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'label');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'icon');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'js');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'strType');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == 'plugins');
|
||||
$this->assertTrue( $params[6]->getName() == 'elementClass');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::DisableOptionPos
|
||||
* @todo Implement testDisableOptionPos().
|
||||
*/
|
||||
public function testDisableOptionPos()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'DisableOptionPos', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testDisableOptionPos()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('DisableOptionPos', $methods ), 'exists method DisableOptionPos' );
|
||||
$r = new ReflectionMethod('Menu', 'DisableOptionPos');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::DisableOptionId
|
||||
* @todo Implement testDisableOptionId().
|
||||
*/
|
||||
public function testDisableOptionId()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'DisableOptionId', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testDisableOptionId()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('DisableOptionId', $methods ), 'exists method DisableOptionId' );
|
||||
$r = new ReflectionMethod('Menu', 'DisableOptionId');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'id');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::RenderOption
|
||||
* @todo Implement testRenderOption().
|
||||
*/
|
||||
public function testRenderOption()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'RenderOption', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRenderOption()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('RenderOption', $methods ), 'exists method RenderOption' );
|
||||
$r = new ReflectionMethod('Menu', 'RenderOption');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Menu::generateArrayForTemplate
|
||||
* @todo Implement testgenerateArrayForTemplate().
|
||||
*/
|
||||
public function testgenerateArrayForTemplate()
|
||||
{
|
||||
if (class_exists('Menu')) {
|
||||
$methods = get_class_methods( 'Menu');
|
||||
$this->assertTrue( in_array( 'generateArrayForTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgenerateArrayForTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('generateArrayForTemplate', $methods ), 'exists method generateArrayForTemplate' );
|
||||
$r = new ReflectionMethod('Menu', 'generateArrayForTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'G_MAIN_MENU');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'classOn');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'classOff');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'G_MENU_SELECTED');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->assertTrue( $params[4]->getName() == 'G_ID_MENU_SELECTED');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,217 +1,119 @@
|
||||
<?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.phpSqlParser.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('PHPSQLParser', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sql');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::parse
|
||||
* @todo Implement testparse().
|
||||
*/
|
||||
public function testparse()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'parse', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function testparse()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('parse', $methods ), 'exists method parse' );
|
||||
$r = new ReflectionMethod('PHPSQLParser', 'parse');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sql');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::count_paren
|
||||
* @todo Implement testcount_paren().
|
||||
*/
|
||||
public function testcount_paren()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'count_paren', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::count_backtick
|
||||
* @todo Implement testcount_backtick().
|
||||
*/
|
||||
public function testcount_backtick()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'count_backtick', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::split_sql
|
||||
* @todo Implement testsplit_sql().
|
||||
*/
|
||||
public function testsplit_sql()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'split_sql', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_sql
|
||||
* @todo Implement testprocess_sql().
|
||||
*/
|
||||
public function testprocess_sql()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_sql', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_set_list
|
||||
* @todo Implement testprocess_set_list().
|
||||
*/
|
||||
public function testprocess_set_list()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_set_list', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_limit
|
||||
* @todo Implement testprocess_limit().
|
||||
*/
|
||||
public function testprocess_limit()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_limit', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_select
|
||||
* @todo Implement testprocess_select().
|
||||
*/
|
||||
public function testprocess_select()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_select', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_select_expr
|
||||
* @todo Implement testprocess_select_expr().
|
||||
*/
|
||||
public function testprocess_select_expr()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_select_expr', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_from
|
||||
* @todo Implement testprocess_from().
|
||||
*/
|
||||
public function testprocess_from()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_from', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_group
|
||||
* @todo Implement testprocess_group().
|
||||
*/
|
||||
public function testprocess_group()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_group', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_expr_list
|
||||
* @todo Implement testprocess_expr_list().
|
||||
*/
|
||||
public function testprocess_expr_list()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_expr_list', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_update
|
||||
* @todo Implement testprocess_update().
|
||||
*/
|
||||
public function testprocess_update()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_update', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_delete
|
||||
* @todo Implement testprocess_delete().
|
||||
*/
|
||||
public function testprocess_delete()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_delete', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::process_insert
|
||||
* @todo Implement testprocess_insert().
|
||||
*/
|
||||
public function testprocess_insert()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'process_insert', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprocess_insert()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('process_insert', $methods ), 'exists method process_insert' );
|
||||
$r = new ReflectionMethod('PHPSQLParser', 'process_insert');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tokens');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'token_category');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'INSERT');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PHPSQLParser::load_reserved_words
|
||||
* @todo Implement testload_reserved_words().
|
||||
*/
|
||||
public function testload_reserved_words()
|
||||
{
|
||||
if (class_exists('PHPSQLParser')) {
|
||||
$methods = get_class_methods( 'PHPSQLParser');
|
||||
$this->assertTrue( in_array( 'load_reserved_words', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload_reserved_words()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load_reserved_words', $methods ), 'exists method load_reserved_words' );
|
||||
$r = new ReflectionMethod('PHPSQLParser', 'load_reserved_words');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,88 @@
|
||||
<?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.pmException.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('PMException')) {
|
||||
$methods = get_class_methods( 'PMException');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('PMException', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'code');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '0');
|
||||
$this->assertTrue( $params[2]->getName() == 'previous');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMException::__toString
|
||||
* @todo Implement test__toString().
|
||||
*/
|
||||
public function test__toString()
|
||||
{
|
||||
if (class_exists('PMException')) {
|
||||
$methods = get_class_methods( 'PMException');
|
||||
$this->assertTrue( in_array( '__toString', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__toString()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__toString', $methods ), 'exists method __toString' );
|
||||
$r = new ReflectionMethod('PMException', '__toString');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,49 +1,139 @@
|
||||
<?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.publisher.php';
|
||||
<?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.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
|
||||
* @todo Implement testAddContent().
|
||||
*/
|
||||
public function testAddContent()
|
||||
{
|
||||
if (class_exists('Publisher')) {
|
||||
$methods = get_class_methods( 'Publisher');
|
||||
$this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' );
|
||||
$r = new ReflectionMethod('Publisher', 'AddContent');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strType');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'form');
|
||||
$this->assertTrue( $params[1]->getName() == 'strLayout');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'form');
|
||||
$this->assertTrue( $params[2]->getName() == 'strName');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'strContent');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'arrData');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'strTarget');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[6]->getName() == 'ajaxServer');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[7]->getName() == 'mode');
|
||||
$this->assertTrue( $params[7]->isArray() == false);
|
||||
$this->assertTrue( $params[7]->isOptional () == true);
|
||||
$this->assertTrue( $params[7]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[8]->getName() == 'bAbsolutePath');
|
||||
$this->assertTrue( $params[8]->isArray() == false);
|
||||
$this->assertTrue( $params[8]->isOptional () == true);
|
||||
$this->assertTrue( $params[8]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Publisher::RenderContent
|
||||
* @todo Implement testRenderContent().
|
||||
*/
|
||||
public function testRenderContent()
|
||||
{
|
||||
if (class_exists('Publisher')) {
|
||||
$methods = get_class_methods( 'Publisher');
|
||||
$this->assertTrue( in_array( 'RenderContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRenderContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('RenderContent', $methods ), 'exists method RenderContent' );
|
||||
$r = new ReflectionMethod('Publisher', 'RenderContent');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Publisher::RenderContent0
|
||||
* @todo Implement testRenderContent0().
|
||||
*/
|
||||
public function testRenderContent0()
|
||||
{
|
||||
if (class_exists('Publisher')) {
|
||||
$methods = get_class_methods( 'Publisher');
|
||||
$this->assertTrue( in_array( 'RenderContent0', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRenderContent0()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('RenderContent0', $methods ), 'exists method RenderContent0' );
|
||||
$r = new ReflectionMethod('Publisher', 'RenderContent0');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '0');
|
||||
$this->assertTrue( $params[1]->getName() == 'showXMLFormName');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,277 +1,434 @@
|
||||
<?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.restClient.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('RestClient', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::execute
|
||||
* @todo Implement testexecute().
|
||||
*/
|
||||
public function testexecute()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'execute', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function testexecute()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('execute', $methods ), 'exists method execute' );
|
||||
$r = new ReflectionMethod('RestClient', 'execute');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers RestClient::treatURL
|
||||
* @todo Implement testtreatURL().
|
||||
*/
|
||||
public function testtreatURL()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'treatURL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::treatResponse
|
||||
* @todo Implement testtreatResponse().
|
||||
*/
|
||||
public function testtreatResponse()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'treatResponse', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::getHeaders
|
||||
* @todo Implement testgetHeaders().
|
||||
*/
|
||||
public function testgetHeaders()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetHeaders()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' );
|
||||
$r = new ReflectionMethod('RestClient', 'getHeaders');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::getResponse
|
||||
* @todo Implement testgetResponse().
|
||||
*/
|
||||
public function testgetResponse()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'getResponse', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetResponse()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getResponse', $methods ), 'exists method getResponse' );
|
||||
$r = new ReflectionMethod('RestClient', 'getResponse');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::getResponseCode
|
||||
* @todo Implement testgetResponseCode().
|
||||
*/
|
||||
public function testgetResponseCode()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'getResponseCode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetResponseCode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getResponseCode', $methods ), 'exists method getResponseCode' );
|
||||
$r = new ReflectionMethod('RestClient', 'getResponseCode');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::getResponseMessage
|
||||
* @todo Implement testgetResponseMessage().
|
||||
*/
|
||||
public function testgetResponseMessage()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'getResponseMessage', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetResponseMessage()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getResponseMessage', $methods ), 'exists method getResponseMessage' );
|
||||
$r = new ReflectionMethod('RestClient', 'getResponseMessage');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::getResponseContentType
|
||||
* @todo Implement testgetResponseContentType().
|
||||
*/
|
||||
public function testgetResponseContentType()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'getResponseContentType', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetResponseContentType()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getResponseContentType', $methods ), 'exists method getResponseContentType' );
|
||||
$r = new ReflectionMethod('RestClient', 'getResponseContentType');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::setNoFollow
|
||||
* @todo Implement testsetNoFollow().
|
||||
*/
|
||||
public function testsetNoFollow()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'setNoFollow', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetNoFollow()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setNoFollow', $methods ), 'exists method setNoFollow' );
|
||||
$r = new ReflectionMethod('RestClient', 'setNoFollow');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::close
|
||||
* @todo Implement testclose().
|
||||
*/
|
||||
public function testclose()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testclose()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('close', $methods ), 'exists method close' );
|
||||
$r = new ReflectionMethod('RestClient', 'close');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::setUrl
|
||||
* @todo Implement testsetUrl().
|
||||
*/
|
||||
public function testsetUrl()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'setUrl', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetUrl()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setUrl', $methods ), 'exists method setUrl' );
|
||||
$r = new ReflectionMethod('RestClient', 'setUrl');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::setContentType
|
||||
* @todo Implement testsetContentType().
|
||||
*/
|
||||
public function testsetContentType()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'setContentType', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetContentType()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setContentType', $methods ), 'exists method setContentType' );
|
||||
$r = new ReflectionMethod('RestClient', 'setContentType');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'contentType');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::setCredentials
|
||||
* @todo Implement testsetCredentials().
|
||||
*/
|
||||
public function testsetCredentials()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'setCredentials', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetCredentials()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setCredentials', $methods ), 'exists method setCredentials' );
|
||||
$r = new ReflectionMethod('RestClient', 'setCredentials');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'user');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'pass');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::setMethod
|
||||
* @todo Implement testsetMethod().
|
||||
*/
|
||||
public function testsetMethod()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'setMethod', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetMethod()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setMethod', $methods ), 'exists method setMethod' );
|
||||
$r = new ReflectionMethod('RestClient', 'setMethod');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'method');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::setParameters
|
||||
* @todo Implement testsetParameters().
|
||||
*/
|
||||
public function testsetParameters()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'setParameters', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetParameters()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setParameters', $methods ), 'exists method setParameters' );
|
||||
$r = new ReflectionMethod('RestClient', 'setParameters');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'params');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::createClient
|
||||
* @todo Implement testcreateClient().
|
||||
*/
|
||||
public function testcreateClient()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'createClient', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcreateClient()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('createClient', $methods ), 'exists method createClient' );
|
||||
$r = new ReflectionMethod('RestClient', 'createClient');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::post
|
||||
* @todo Implement testpost().
|
||||
*/
|
||||
public function testpost()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'post', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testpost()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('post', $methods ), 'exists method post' );
|
||||
$r = new ReflectionMethod('RestClient', 'post');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'params');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'user');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'pwd');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->assertTrue( $params[4]->getName() == 'contentType');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == 'multipart/form-data');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::put
|
||||
* @todo Implement testput().
|
||||
*/
|
||||
public function testput()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'put', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testput()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('put', $methods ), 'exists method put' );
|
||||
$r = new ReflectionMethod('RestClient', 'put');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'body');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'user');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'pwd');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'contentType');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::get
|
||||
* @todo Implement testget().
|
||||
*/
|
||||
public function testget()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testget()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('get', $methods ), 'exists method get' );
|
||||
$r = new ReflectionMethod('RestClient', 'get');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'user');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'pwd');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'contentType');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::delete
|
||||
* @todo Implement testdelete().
|
||||
*/
|
||||
public function testdelete()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdelete()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('delete', $methods ), 'exists method delete' );
|
||||
$r = new ReflectionMethod('RestClient', 'delete');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'user');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'pwd');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'contentType');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers RestClient::call
|
||||
* @todo Implement testcall().
|
||||
*/
|
||||
public function testcall()
|
||||
{
|
||||
if (class_exists('RestClient')) {
|
||||
$methods = get_class_methods( 'RestClient');
|
||||
$this->assertTrue( in_array( 'call', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcall()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('call', $methods ), 'exists method call' );
|
||||
$r = new ReflectionMethod('RestClient', 'call');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'method');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'url');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'body');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'user');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'pwd');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'contentType');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,289 +1,553 @@
|
||||
<?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.table.php';
|
||||
<?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.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
|
||||
* @todo Implement testTable().
|
||||
*/
|
||||
public function testTable()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'Table', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Table', $methods ), 'exists method Table' );
|
||||
$r = new ReflectionMethod('Table', 'Table');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'objConnection');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::SetTo
|
||||
* @todo Implement testSetTo().
|
||||
*/
|
||||
public function testSetTo()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testSetTo()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' );
|
||||
$r = new ReflectionMethod('Table', 'SetTo');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'objConnection');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::SetSource
|
||||
* @todo Implement testSetSource().
|
||||
*/
|
||||
public function testSetSource()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'SetSource', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testSetSource()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('SetSource', $methods ), 'exists method SetSource' );
|
||||
$r = new ReflectionMethod('Table', 'SetSource');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'stQry');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'stDefaultOrder');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'UID');
|
||||
$this->assertTrue( $params[2]->getName() == 'stDefaultOrderDir');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'ASC');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::GetSource
|
||||
* @todo Implement testGetSource().
|
||||
*/
|
||||
public function testGetSource()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'GetSource', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testGetSource()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('GetSource', $methods ), 'exists method GetSource' );
|
||||
$r = new ReflectionMethod('Table', 'GetSource');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::TotalCount
|
||||
* @todo Implement testTotalCount().
|
||||
*/
|
||||
public function testTotalCount()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'TotalCount', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testTotalCount()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('TotalCount', $methods ), 'exists method TotalCount' );
|
||||
$r = new ReflectionMethod('Table', 'TotalCount');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::Count
|
||||
* @todo Implement testCount().
|
||||
*/
|
||||
public function testCount()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'Count', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testCount()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Count', $methods ), 'exists method Count' );
|
||||
$r = new ReflectionMethod('Table', 'Count');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::CurRow
|
||||
* @todo Implement testCurRow().
|
||||
*/
|
||||
public function testCurRow()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'CurRow', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testCurRow()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('CurRow', $methods ), 'exists method CurRow' );
|
||||
$r = new ReflectionMethod('Table', 'CurRow');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::ColumnCount
|
||||
* @todo Implement testColumnCount().
|
||||
*/
|
||||
public function testColumnCount()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'ColumnCount', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testColumnCount()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('ColumnCount', $methods ), 'exists method ColumnCount' );
|
||||
$r = new ReflectionMethod('Table', 'ColumnCount');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::Read
|
||||
* @todo Implement testRead().
|
||||
*/
|
||||
public function testRead()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'Read', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRead()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Read', $methods ), 'exists method Read' );
|
||||
$r = new ReflectionMethod('Table', 'Read');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::Seek
|
||||
* @todo Implement testSeek().
|
||||
*/
|
||||
public function testSeek()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'Seek', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testSeek()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Seek', $methods ), 'exists method Seek' );
|
||||
$r = new ReflectionMethod('Table', 'Seek');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::MoveFirst
|
||||
* @todo Implement testMoveFirst().
|
||||
*/
|
||||
public function testMoveFirst()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'MoveFirst', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testMoveFirst()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('MoveFirst', $methods ), 'exists method MoveFirst' );
|
||||
$r = new ReflectionMethod('Table', 'MoveFirst');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::EOF
|
||||
* @todo Implement testEOF().
|
||||
*/
|
||||
public function testEOF()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'EOF', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testEOF()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('EOF', $methods ), 'exists method EOF' );
|
||||
$r = new ReflectionMethod('Table', 'EOF');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::AddColumn
|
||||
* @todo Implement testAddColumn().
|
||||
*/
|
||||
public function testAddColumn()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'AddColumn', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddColumn()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddColumn', $methods ), 'exists method AddColumn' );
|
||||
$r = new ReflectionMethod('Table', 'AddColumn');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strLabel');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'strType');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'text');
|
||||
$this->assertTrue( $params[2]->getName() == 'strName');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'strAlign');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == 'left');
|
||||
$this->assertTrue( $params[4]->getName() == 'intWidth');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '0');
|
||||
$this->assertTrue( $params[5]->getName() == 'strTarget');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[6]->getName() == 'strContent');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::AddRawColumn
|
||||
* @todo Implement testAddRawColumn().
|
||||
*/
|
||||
public function testAddRawColumn()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'AddRawColumn', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddRawColumn()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddRawColumn', $methods ), 'exists method AddRawColumn' );
|
||||
$r = new ReflectionMethod('Table', 'AddRawColumn');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strType');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'text');
|
||||
$this->assertTrue( $params[1]->getName() == 'strName');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'strAlign');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'left');
|
||||
$this->assertTrue( $params[3]->getName() == 'intWidth');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '0');
|
||||
$this->assertTrue( $params[4]->getName() == 'strTarget');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'strContent');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[6]->getName() == 'strExtra');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[7]->getName() == 'strCondition');
|
||||
$this->assertTrue( $params[7]->isArray() == false);
|
||||
$this->assertTrue( $params[7]->isOptional () == true);
|
||||
$this->assertTrue( $params[7]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[8]->getName() == 'orderByThis');
|
||||
$this->assertTrue( $params[8]->isArray() == false);
|
||||
$this->assertTrue( $params[8]->isOptional () == true);
|
||||
$this->assertTrue( $params[8]->getDefaultValue() == '1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::RenderTitle
|
||||
* @todo Implement testRenderTitle().
|
||||
*/
|
||||
public function testRenderTitle()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'RenderTitle', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRenderTitle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('RenderTitle', $methods ), 'exists method RenderTitle' );
|
||||
$r = new ReflectionMethod('Table', 'RenderTitle');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'pa');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '1');
|
||||
$this->assertTrue( $params[2]->getName() == 'strClass');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'tblHeader');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::RenderTitle_ajax
|
||||
* @todo Implement testRenderTitle_ajax().
|
||||
*/
|
||||
public function testRenderTitle_ajax()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'RenderTitle_ajax', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRenderTitle_ajax()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('RenderTitle_ajax', $methods ), 'exists method RenderTitle_ajax' );
|
||||
$r = new ReflectionMethod('Table', 'RenderTitle_ajax');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'pa');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '1');
|
||||
$this->assertTrue( $params[2]->getName() == 'strClass');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'tblHeader');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::RenderTitle2
|
||||
* @todo Implement testRenderTitle2().
|
||||
*/
|
||||
public function testRenderTitle2()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'RenderTitle2', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRenderTitle2()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('RenderTitle2', $methods ), 'exists method RenderTitle2' );
|
||||
$r = new ReflectionMethod('Table', 'RenderTitle2');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'pa');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'fil');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'strClass');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == 'tblHeader');
|
||||
$this->assertTrue( $params[4]->getName() == 'auxgetval');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::RenderColumn
|
||||
* @todo Implement testRenderColumn().
|
||||
*/
|
||||
public function testRenderColumn()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'RenderColumn', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testRenderColumn()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('RenderColumn', $methods ), 'exists method RenderColumn' );
|
||||
$r = new ReflectionMethod('Table', 'RenderColumn');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'intPos');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '0');
|
||||
$this->assertTrue( $params[1]->getName() == 'strClass');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'tblCell');
|
||||
$this->assertTrue( $params[2]->getName() == 'strClassLink');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'tblCellA');
|
||||
$this->assertTrue( $params[3]->getName() == 'number');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '0');
|
||||
$this->assertTrue( $params[4]->getName() == 'renderTD');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::SetAction
|
||||
* @todo Implement testSetAction().
|
||||
*/
|
||||
public function testSetAction()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'SetAction', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testSetAction()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('SetAction', $methods ), 'exists method SetAction' );
|
||||
$r = new ReflectionMethod('Table', 'SetAction');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'strAction');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'strLabel');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Continue');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::setTranslate
|
||||
* @todo Implement testsetTranslate().
|
||||
*/
|
||||
public function testsetTranslate()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'setTranslate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetTranslate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setTranslate', $methods ), 'exists method setTranslate' );
|
||||
$r = new ReflectionMethod('Table', 'setTranslate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'contexto');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'tabla');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'nombre');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::translateValue
|
||||
* @todo Implement testtranslateValue().
|
||||
*/
|
||||
public function testtranslateValue()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'translateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtranslateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('translateValue', $methods ), 'exists method translateValue' );
|
||||
$r = new ReflectionMethod('Table', 'translateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'contexto');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'valor');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'lang');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::setContext
|
||||
* @todo Implement testsetContext().
|
||||
*/
|
||||
public function testsetContext()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'setContext', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetContext()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setContext', $methods ), 'exists method setContext' );
|
||||
$r = new ReflectionMethod('Table', 'setContext');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'contexto');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Table::ParsingFromHtml
|
||||
* @todo Implement testParsingFromHtml().
|
||||
*/
|
||||
public function testParsingFromHtml()
|
||||
{
|
||||
if (class_exists('Table')) {
|
||||
$methods = get_class_methods( 'Table');
|
||||
$this->assertTrue( in_array( 'ParsingFromHtml', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testParsingFromHtml()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('ParsingFromHtml', $methods ), 'exists method ParsingFromHtml' );
|
||||
$r = new ReflectionMethod('Table', 'ParsingFromHtml');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'number');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '100000000');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,109 +1,195 @@
|
||||
<?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.templatePower.php';
|
||||
<?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.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
|
||||
* @todo Implement testTemplatePowerParser().
|
||||
*/
|
||||
public function testTemplatePowerParser()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( 'TemplatePowerParser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testTemplatePowerParser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('TemplatePowerParser', $methods ), 'exists method TemplatePowerParser' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', 'TemplatePowerParser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tpl_file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'type');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePowerParser::__errorAlert
|
||||
* @todo Implement test__errorAlert().
|
||||
*/
|
||||
public function test__errorAlert()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( '__errorAlert', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__errorAlert()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__errorAlert', $methods ), 'exists method __errorAlert' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', '__errorAlert');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePowerParser::__prepare
|
||||
* @todo Implement test__prepare().
|
||||
*/
|
||||
public function test__prepare()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( '__prepare', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__prepare()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__prepare', $methods ), 'exists method __prepare' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', '__prepare');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePowerParser::__cleanUp
|
||||
* @todo Implement test__cleanUp().
|
||||
*/
|
||||
public function test__cleanUp()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( '__cleanUp', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__cleanUp()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__cleanUp', $methods ), 'exists method __cleanUp' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', '__cleanUp');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePowerParser::__prepareTemplate
|
||||
* @todo Implement test__prepareTemplate().
|
||||
*/
|
||||
public function test__prepareTemplate()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( '__prepareTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__prepareTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__prepareTemplate', $methods ), 'exists method __prepareTemplate' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', '__prepareTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tpl_file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'type');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePowerParser::__parseTemplate
|
||||
* @todo Implement test__parseTemplate().
|
||||
*/
|
||||
public function test__parseTemplate()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( '__parseTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__parseTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__parseTemplate', $methods ), 'exists method __parseTemplate' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', '__parseTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tplvar');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'blockname');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'initdev');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePowerParser::version
|
||||
* @todo Implement testversion().
|
||||
*/
|
||||
public function testversion()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( 'version', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testversion()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('version', $methods ), 'exists method version' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', 'version');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePowerParser::assignInclude
|
||||
* @todo Implement testassignInclude().
|
||||
*/
|
||||
public function testassignInclude()
|
||||
{
|
||||
if (class_exists('TemplatePowerParser')) {
|
||||
$methods = get_class_methods( 'TemplatePowerParser');
|
||||
$this->assertTrue( in_array( 'assignInclude', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testassignInclude()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('assignInclude', $methods ), 'exists method assignInclude' );
|
||||
$r = new ReflectionMethod('TemplatePowerParser', 'assignInclude');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'iblockname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'type');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,217 +1,343 @@
|
||||
<?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.templatePower.php';
|
||||
<?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.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
|
||||
* @todo Implement testTemplatePower().
|
||||
*/
|
||||
public function testTemplatePower()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'TemplatePower', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testTemplatePower()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('TemplatePower', $methods ), 'exists method TemplatePower' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'TemplatePower');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tpl_file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'type');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::__deSerializeTPL
|
||||
* @todo Implement test__deSerializeTPL().
|
||||
*/
|
||||
public function test__deSerializeTPL()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( '__deSerializeTPL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__deSerializeTPL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__deSerializeTPL', $methods ), 'exists method __deSerializeTPL' );
|
||||
$r = new ReflectionMethod('TemplatePower', '__deSerializeTPL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'stpl_file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'type');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::__makeContentRoot
|
||||
* @todo Implement test__makeContentRoot().
|
||||
*/
|
||||
public function test__makeContentRoot()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( '__makeContentRoot', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__makeContentRoot()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__makeContentRoot', $methods ), 'exists method __makeContentRoot' );
|
||||
$r = new ReflectionMethod('TemplatePower', '__makeContentRoot');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::__assign
|
||||
* @todo Implement test__assign().
|
||||
*/
|
||||
public function test__assign()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( '__assign', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__assign()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__assign', $methods ), 'exists method __assign' );
|
||||
$r = new ReflectionMethod('TemplatePower', '__assign');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'varname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::__assignGlobal
|
||||
* @todo Implement test__assignGlobal().
|
||||
*/
|
||||
public function test__assignGlobal()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( '__assignGlobal', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__assignGlobal()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__assignGlobal', $methods ), 'exists method __assignGlobal' );
|
||||
$r = new ReflectionMethod('TemplatePower', '__assignGlobal');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'varname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::__outputContent
|
||||
* @todo Implement test__outputContent().
|
||||
*/
|
||||
public function test__outputContent()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( '__outputContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__outputContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__outputContent', $methods ), 'exists method __outputContent' );
|
||||
$r = new ReflectionMethod('TemplatePower', '__outputContent');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'blockname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::__printVars
|
||||
* @todo Implement test__printVars().
|
||||
*/
|
||||
public function test__printVars()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( '__printVars', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__printVars()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__printVars', $methods ), 'exists method __printVars' );
|
||||
$r = new ReflectionMethod('TemplatePower', '__printVars');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::serializedBase
|
||||
* @todo Implement testserializedBase().
|
||||
*/
|
||||
public function testserializedBase()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'serializedBase', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testserializedBase()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('serializedBase', $methods ), 'exists method serializedBase' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'serializedBase');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::showUnAssigned
|
||||
* @todo Implement testshowUnAssigned().
|
||||
*/
|
||||
public function testshowUnAssigned()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'showUnAssigned', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testshowUnAssigned()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('showUnAssigned', $methods ), 'exists method showUnAssigned' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'showUnAssigned');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'state');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::prepare
|
||||
* @todo Implement testprepare().
|
||||
*/
|
||||
public function testprepare()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprepare()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'prepare');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::newBlock
|
||||
* @todo Implement testnewBlock().
|
||||
*/
|
||||
public function testnewBlock()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'newBlock', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testnewBlock()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('newBlock', $methods ), 'exists method newBlock' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'newBlock');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'blockname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::assignGlobal
|
||||
* @todo Implement testassignGlobal().
|
||||
*/
|
||||
public function testassignGlobal()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'assignGlobal', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testassignGlobal()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('assignGlobal', $methods ), 'exists method assignGlobal' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'assignGlobal');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'varname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::assign
|
||||
* @todo Implement testassign().
|
||||
*/
|
||||
public function testassign()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'assign', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testassign()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('assign', $methods ), 'exists method assign' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'assign');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'varname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::gotoBlock
|
||||
* @todo Implement testgotoBlock().
|
||||
*/
|
||||
public function testgotoBlock()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'gotoBlock', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgotoBlock()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('gotoBlock', $methods ), 'exists method gotoBlock' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'gotoBlock');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'blockname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::getVarValue
|
||||
* @todo Implement testgetVarValue().
|
||||
*/
|
||||
public function testgetVarValue()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'getVarValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetVarValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getVarValue', $methods ), 'exists method getVarValue' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'getVarValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'varname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::printToScreen
|
||||
* @todo Implement testprintToScreen().
|
||||
*/
|
||||
public function testprintToScreen()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'printToScreen', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintToScreen()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printToScreen', $methods ), 'exists method printToScreen' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'printToScreen');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers TemplatePower::getOutputContent
|
||||
* @todo Implement testgetOutputContent().
|
||||
*/
|
||||
public function testgetOutputContent()
|
||||
{
|
||||
if (class_exists('TemplatePower')) {
|
||||
$methods = get_class_methods( 'TemplatePower');
|
||||
$this->assertTrue( in_array( 'getOutputContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetOutputContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getOutputContent', $methods ), 'exists method getOutputContent' );
|
||||
$r = new ReflectionMethod('TemplatePower', 'getOutputContent');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,85 +1,147 @@
|
||||
<?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.tree.php';
|
||||
<?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.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
|
||||
* @todo Implement testTree().
|
||||
*/
|
||||
public function testTree()
|
||||
{
|
||||
if (class_exists('Tree')) {
|
||||
$methods = get_class_methods( 'Tree');
|
||||
$this->assertTrue( in_array( 'Tree', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testTree()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Tree', $methods ), 'exists method Tree' );
|
||||
$r = new ReflectionMethod('Tree', 'Tree');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlnode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tree::addChild
|
||||
* @todo Implement testaddChild().
|
||||
*/
|
||||
public function testaddChild()
|
||||
{
|
||||
if (class_exists('Tree')) {
|
||||
$methods = get_class_methods( 'Tree');
|
||||
$this->assertTrue( in_array( 'addChild', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddChild()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addChild', $methods ), 'exists method addChild' );
|
||||
$r = new ReflectionMethod('Tree', 'addChild');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'label');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'attributes');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tree::printPlus
|
||||
* @todo Implement testprintPlus().
|
||||
*/
|
||||
public function testprintPlus()
|
||||
{
|
||||
if (class_exists('Tree')) {
|
||||
$methods = get_class_methods( 'Tree');
|
||||
$this->assertTrue( in_array( 'printPlus', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintPlus()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printPlus', $methods ), 'exists method printPlus' );
|
||||
$r = new ReflectionMethod('Tree', 'printPlus');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tree::printLabel
|
||||
* @todo Implement testprintLabel().
|
||||
*/
|
||||
public function testprintLabel()
|
||||
{
|
||||
if (class_exists('Tree')) {
|
||||
$methods = get_class_methods( 'Tree');
|
||||
$this->assertTrue( in_array( 'printLabel', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintLabel()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printLabel', $methods ), 'exists method printLabel' );
|
||||
$r = new ReflectionMethod('Tree', 'printLabel');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tree::printContent
|
||||
* @todo Implement testprintContent().
|
||||
*/
|
||||
public function testprintContent()
|
||||
{
|
||||
if (class_exists('Tree')) {
|
||||
$methods = get_class_methods( 'Tree');
|
||||
$this->assertTrue( in_array( 'printContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printContent', $methods ), 'exists method printContent' );
|
||||
$r = new ReflectionMethod('Tree', 'printContent');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tree::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('Tree')) {
|
||||
$methods = get_class_methods( 'Tree');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('Tree', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,61 +1,83 @@
|
||||
<?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.webResource.php';
|
||||
<?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.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
|
||||
* @todo Implement testWebResource().
|
||||
*/
|
||||
public function testWebResource()
|
||||
{
|
||||
if (class_exists('WebResource')) {
|
||||
$methods = get_class_methods( 'WebResource');
|
||||
$this->assertTrue( in_array( 'WebResource', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testWebResource()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('WebResource', $methods ), 'exists method WebResource' );
|
||||
$r = new ReflectionMethod('WebResource', 'WebResource');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'uri');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'post');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers WebResource::_encode
|
||||
* @todo Implement test_encode().
|
||||
*/
|
||||
public function test_encode()
|
||||
{
|
||||
if (class_exists('WebResource')) {
|
||||
$methods = get_class_methods( 'WebResource');
|
||||
$this->assertTrue( in_array( '_encode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function test_encode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('_encode', $methods ), 'exists method _encode' );
|
||||
$r = new ReflectionMethod('WebResource', '_encode');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers WebResource::json_encode
|
||||
* @todo Implement testjson_encode().
|
||||
*/
|
||||
public function testjson_encode()
|
||||
{
|
||||
if (class_exists('WebResource')) {
|
||||
$methods = get_class_methods( 'WebResource');
|
||||
$this->assertTrue( in_array( 'json_encode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers WebResource::json_decode
|
||||
* @todo Implement testjson_decode().
|
||||
*/
|
||||
public function testjson_decode()
|
||||
{
|
||||
if (class_exists('WebResource')) {
|
||||
$methods = get_class_methods( 'WebResource');
|
||||
$this->assertTrue( in_array( 'json_decode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,61 +1,124 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testparseFile().
|
||||
*/
|
||||
public function testparseFile()
|
||||
{
|
||||
if (class_exists('XmlForm')) {
|
||||
$methods = get_class_methods( 'XmlForm');
|
||||
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testparseFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
|
||||
$r = new ReflectionMethod('XmlForm', 'parseFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'language');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'forceParse');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm::setValues
|
||||
* @todo Implement testsetValues().
|
||||
*/
|
||||
public function testsetValues()
|
||||
{
|
||||
if (class_exists('XmlForm')) {
|
||||
$methods = get_class_methods( 'XmlForm');
|
||||
$this->assertTrue( in_array( 'setValues', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetValues()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setValues', $methods ), 'exists method setValues' );
|
||||
$r = new ReflectionMethod('XmlForm', 'setValues');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'newValues');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm')) {
|
||||
$methods = get_class_methods( 'XmlForm');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'template');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'scriptContent');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm::cloneObject
|
||||
* @todo Implement testcloneObject().
|
||||
*/
|
||||
public function testcloneObject()
|
||||
{
|
||||
if (class_exists('XmlForm')) {
|
||||
$methods = get_class_methods( 'XmlForm');
|
||||
$this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcloneObject()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
|
||||
$r = new ReflectionMethod('XmlForm', 'cloneObject');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,325 +1,506 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testXmlForm_Field().
|
||||
*/
|
||||
public function testXmlForm_Field()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'XmlForm_Field', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testXmlForm_Field()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('XmlForm_Field', $methods ), 'exists method XmlForm_Field' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'XmlForm_Field');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlNode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'lang');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'en');
|
||||
$this->assertTrue( $params[2]->getName() == 'home');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'owner');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::validateValue
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::executeXmlDB
|
||||
* @todo Implement testexecuteXmlDB().
|
||||
*/
|
||||
public function testexecuteXmlDB()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'executeXmlDB', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::executePropel
|
||||
* @todo Implement testexecutePropel().
|
||||
*/
|
||||
public function testexecutePropel()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'executePropel', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::executeSQL
|
||||
* @todo Implement testexecuteSQL().
|
||||
*/
|
||||
public function testexecuteSQL()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'executeSQL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testexecuteSQL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('executeSQL', $methods ), 'exists method executeSQL' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'executeSQL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'owner');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'row');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::htmlentities
|
||||
* @todo Implement testhtmlentities().
|
||||
*/
|
||||
public function testhtmlentities()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'htmlentities', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testhtmlentities()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('htmlentities', $methods ), 'exists method htmlentities' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'htmlentities');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'flags');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '3');
|
||||
$this->assertTrue( $params[2]->getName() == 'encoding');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'utf-8');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'therow');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'renderTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::dependentOf
|
||||
* @todo Implement testdependentOf().
|
||||
*/
|
||||
public function testdependentOf()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'dependentOf', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdependentOf()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('dependentOf', $methods ), 'exists method dependentOf' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'dependentOf');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::mask
|
||||
* @todo Implement testmask().
|
||||
*/
|
||||
public function testmask()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'mask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('mask', $methods ), 'exists method mask' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'mask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'format');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getAttributes
|
||||
* @todo Implement testgetAttributes().
|
||||
*/
|
||||
public function testgetAttributes()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'getAttributes', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAttributes()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAttributes', $methods ), 'exists method getAttributes' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'getAttributes');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getEvents
|
||||
* @todo Implement testgetEvents().
|
||||
*/
|
||||
public function testgetEvents()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'getEvents', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetEvents()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getEvents', $methods ), 'exists method getEvents' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'getEvents');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::attachEvents
|
||||
* @todo Implement testattachEvents().
|
||||
*/
|
||||
public function testattachEvents()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testattachEvents()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'attachEvents');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'elementRef');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::createXmlNode
|
||||
* @todo Implement testcreateXmlNode().
|
||||
*/
|
||||
public function testcreateXmlNode()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'createXmlNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcreateXmlNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('createXmlNode', $methods ), 'exists method createXmlNode' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'createXmlNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'includeDefaultValues');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::updateXmlNode
|
||||
* @todo Implement testupdateXmlNode().
|
||||
*/
|
||||
public function testupdateXmlNode()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'updateXmlNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testupdateXmlNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('updateXmlNode', $methods ), 'exists method updateXmlNode' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'updateXmlNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'node');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'includeDefaultValues');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getXmlAttributes
|
||||
* @todo Implement testgetXmlAttributes().
|
||||
*/
|
||||
public function testgetXmlAttributes()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'getXmlAttributes', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetXmlAttributes()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getXmlAttributes', $methods ), 'exists method getXmlAttributes' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'getXmlAttributes');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'includeDefaultValues');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::maskValue
|
||||
* @todo Implement testmaskValue().
|
||||
*/
|
||||
public function testmaskValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmaskValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'maskValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::cloneObject
|
||||
* @todo Implement testcloneObject().
|
||||
*/
|
||||
public function testcloneObject()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'cloneObject', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcloneObject()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('cloneObject', $methods ), 'exists method cloneObject' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'cloneObject');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::getPMTableValue
|
||||
* @todo Implement testgetPMTableValue().
|
||||
*/
|
||||
public function testgetPMTableValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'getPMTableValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetPMTableValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getPMTableValue', $methods ), 'exists method getPMTableValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'getPMTableValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'oOwner');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSRequiredValue
|
||||
* @todo Implement testNSRequiredValue().
|
||||
*/
|
||||
public function testNSRequiredValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'NSRequiredValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testNSRequiredValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('NSRequiredValue', $methods ), 'exists method NSRequiredValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'NSRequiredValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'show');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSGridLabel
|
||||
* @todo Implement testNSGridLabel().
|
||||
*/
|
||||
public function testNSGridLabel()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'NSGridLabel', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testNSGridLabel()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('NSGridLabel', $methods ), 'exists method NSGridLabel' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'NSGridLabel');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'show');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSDefaultValue
|
||||
* @todo Implement testNSDefaultValue().
|
||||
*/
|
||||
public function testNSDefaultValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'NSDefaultValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testNSDefaultValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('NSDefaultValue', $methods ), 'exists method NSDefaultValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'NSDefaultValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'show');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSGridType
|
||||
* @todo Implement testNSGridType().
|
||||
*/
|
||||
public function testNSGridType()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'NSGridType', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testNSGridType()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('NSGridType', $methods ), 'exists method NSGridType' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'NSGridType');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'show');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::NSDependentFields
|
||||
* @todo Implement testNSDependentFields().
|
||||
*/
|
||||
public function testNSDependentFields()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'NSDependentFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testNSDependentFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('NSDependentFields', $methods ), 'exists method NSDependentFields' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'NSDependentFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'show');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field::renderHint
|
||||
* @todo Implement testrenderHint().
|
||||
*/
|
||||
public function testrenderHint()
|
||||
{
|
||||
if (class_exists('XmlForm_Field')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field');
|
||||
$this->assertTrue( in_array( 'renderHint', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderHint()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderHint', $methods ), 'exists method renderHint' );
|
||||
$r = new ReflectionMethod('XmlForm_Field', 'renderHint');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,71 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Button')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Button');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Button', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,67 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_CaptionCurrency')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_CaptionCurrency');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_CaptionCurrency', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,67 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_CaptionPercentage')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_CaptionPercentage');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_CaptionPercentage', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,107 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Caption')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Caption');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Caption', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Caption::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Caption')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Caption');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Caption', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'rowId');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'row');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '-1');
|
||||
$this->assertTrue( $params[5]->getName() == 'therow');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,71 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_CheckGroup')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_CheckGroup');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_CheckGroup', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,67 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_CheckGroupView')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_CheckGroupView');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_CheckGroupView', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,67 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Checkbox2')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Checkbox2');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Checkbox2', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,111 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Checkbox')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Checkbox');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Checkbox', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkbox::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Checkbox')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Checkbox');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Checkbox', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkbox::maskValue
|
||||
* @todo Implement testmaskValue().
|
||||
*/
|
||||
public function testmaskValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Checkbox')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Checkbox');
|
||||
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmaskValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Checkbox', 'maskValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,111 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Checkboxpt')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkboxpt::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Checkboxpt')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Checkboxpt::maskValue
|
||||
* @todo Implement testmaskValue().
|
||||
*/
|
||||
public function testmaskValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Checkboxpt')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Checkboxpt');
|
||||
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmaskValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Checkboxpt', 'maskValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,91 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Currency')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Currency');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Currency', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Currency::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Currency')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Currency');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Currency', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,87 @@
|
||||
<?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.xmlformExtension.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_DVEditor')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_DVEditor');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_DVEditor', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_DVEditor::attachEvents
|
||||
* @todo Implement testattachEvents().
|
||||
*/
|
||||
public function testattachEvents()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_DVEditor')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_DVEditor');
|
||||
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testattachEvents()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_DVEditor', 'attachEvents');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'element');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +1,151 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testverifyDateFormat().
|
||||
*/
|
||||
public function testverifyDateFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date2')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date2');
|
||||
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testverifyDateFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date2', 'verifyDateFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::isvalidBeforeFormat
|
||||
* @todo Implement testisvalidBeforeFormat().
|
||||
*/
|
||||
public function testisvalidBeforeFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date2')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date2');
|
||||
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testisvalidBeforeFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date2', 'isvalidBeforeFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::calculateBeforeFormat
|
||||
* @todo Implement testcalculateBeforeFormat().
|
||||
*/
|
||||
public function testcalculateBeforeFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date2')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date2');
|
||||
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcalculateBeforeFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date2', 'calculateBeforeFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sign');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date2')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date2');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date2', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date2::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date2')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date2');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date2', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,97 +1,199 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testverifyDateFormat().
|
||||
*/
|
||||
public function testverifyDateFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date5')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date5');
|
||||
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testverifyDateFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date5', 'verifyDateFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'mask');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::isvalidBeforeFormat
|
||||
* @todo Implement testisvalidBeforeFormat().
|
||||
*/
|
||||
public function testisvalidBeforeFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date5')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date5');
|
||||
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testisvalidBeforeFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date5', 'isvalidBeforeFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::calculateBeforeFormat
|
||||
* @todo Implement testcalculateBeforeFormat().
|
||||
*/
|
||||
public function testcalculateBeforeFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date5')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date5');
|
||||
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcalculateBeforeFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date5', 'calculateBeforeFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sign');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date5')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date5');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date5', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date5')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date5');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date5', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::__draw_widget
|
||||
* @todo Implement test__draw_widget().
|
||||
*/
|
||||
public function test__draw_widget()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date5')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date5');
|
||||
$this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__draw_widget()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date5', '__draw_widget');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'pID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'owner');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date5::getSplitDate
|
||||
* @todo Implement testgetSplitDate().
|
||||
*/
|
||||
public function testgetSplitDate()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date5')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date5');
|
||||
$this->assertTrue( in_array( 'getSplitDate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetSplitDate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getSplitDate', $methods ), 'exists method getSplitDate' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date5', 'getSplitDate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'mask');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,85 +1,175 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testverifyDateFormat().
|
||||
*/
|
||||
public function testverifyDateFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date');
|
||||
$this->assertTrue( in_array( 'verifyDateFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testverifyDateFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('verifyDateFormat', $methods ), 'exists method verifyDateFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date', 'verifyDateFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::isvalidBeforeFormat
|
||||
* @todo Implement testisvalidBeforeFormat().
|
||||
*/
|
||||
public function testisvalidBeforeFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date');
|
||||
$this->assertTrue( in_array( 'isvalidBeforeFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testisvalidBeforeFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('isvalidBeforeFormat', $methods ), 'exists method isvalidBeforeFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date', 'isvalidBeforeFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::calculateBeforeFormat
|
||||
* @todo Implement testcalculateBeforeFormat().
|
||||
*/
|
||||
public function testcalculateBeforeFormat()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date');
|
||||
$this->assertTrue( in_array( 'calculateBeforeFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcalculateBeforeFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('calculateBeforeFormat', $methods ), 'exists method calculateBeforeFormat' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date', 'calculateBeforeFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'date');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sign');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Date::__draw_widget
|
||||
* @todo Implement test__draw_widget().
|
||||
*/
|
||||
public function test__draw_widget()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Date')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Date');
|
||||
$this->assertTrue( in_array( '__draw_widget', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__draw_widget()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__draw_widget', $methods ), 'exists method __draw_widget' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Date', '__draw_widget');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'pID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'owner');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,67 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_DateView')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_DateView');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_DateView', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,137 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Dropdown')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Dropdown');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Dropdown', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Dropdown::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Dropdown')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Dropdown');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Dropdown', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'rowId');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'row');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '-1');
|
||||
$this->assertTrue( $params[5]->getName() == 'therow');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Dropdown::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Dropdown')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Dropdown');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Dropdown', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'onlyValue');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'therow');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,91 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Dropdownpt')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Dropdownpt');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Dropdownpt', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Dropdownpt::maskValue
|
||||
* @todo Implement testmaskValue().
|
||||
*/
|
||||
public function testmaskValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Dropdownpt')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Dropdownpt');
|
||||
$this->assertTrue( in_array( 'maskValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmaskValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('maskValue', $methods ), 'exists method maskValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Dropdownpt', 'maskValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,13 +1,49 @@
|
||||
<?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.xmlformExtension.php';
|
||||
<?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.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
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,25 +1,67 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_File')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_File');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_File', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +1,155 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testXmlForm_Field_Grid().
|
||||
*/
|
||||
public function testXmlForm_Field_Grid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Grid')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Grid');
|
||||
$this->assertTrue( in_array( 'XmlForm_Field_Grid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testXmlForm_Field_Grid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('XmlForm_Field_Grid', $methods ), 'exists method XmlForm_Field_Grid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Grid', 'XmlForm_Field_Grid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlnode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'language');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'home');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::parseFile
|
||||
* @todo Implement testparseFile().
|
||||
*/
|
||||
public function testparseFile()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Grid')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Grid');
|
||||
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testparseFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Grid', 'parseFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'home');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'language');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Grid')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Grid');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Grid', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Grid')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Grid');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Grid', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'therow');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Grid::flipValues
|
||||
* @todo Implement testflipValues().
|
||||
*/
|
||||
public function testflipValues()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Grid')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Grid');
|
||||
$this->assertTrue( in_array( 'flipValues', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testflipValues()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('flipValues', $methods ), 'exists method flipValues' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Grid', 'flipValues');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,87 @@
|
||||
<?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.htmlArea.php';
|
||||
<?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.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
|
||||
* @todo Implement testattachEvents().
|
||||
*/
|
||||
public function testattachEvents()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_HTML')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_HTML');
|
||||
$this->assertTrue( in_array( 'attachEvents', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testattachEvents()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_HTML', 'attachEvents');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'element');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,109 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Hidden')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Hidden');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Hidden', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Hidden::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Hidden')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Hidden');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Hidden', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Hidden::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Hidden')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Hidden');
|
||||
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Hidden', 'renderTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,70 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Image')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Image');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Image', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Image::masktophp
|
||||
* @todo Implement testmasktophp().
|
||||
*/
|
||||
public function testmasktophp()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Image')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Image');
|
||||
$this->assertTrue( in_array( 'masktophp', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,61 +1,133 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testXmlForm_Field_JavaScript().
|
||||
*/
|
||||
public function testXmlForm_Field_JavaScript()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_JavaScript')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
|
||||
$this->assertTrue( in_array( 'XmlForm_Field_JavaScript', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testXmlForm_Field_JavaScript()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('XmlForm_Field_JavaScript', $methods ), 'exists method XmlForm_Field_JavaScript' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_JavaScript', 'XmlForm_Field_JavaScript');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlNode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'lang');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'en');
|
||||
$this->assertTrue( $params[2]->getName() == 'home');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_JavaScript::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_JavaScript')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_JavaScript', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_JavaScript::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_JavaScript')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_JavaScript', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_JavaScript::validateValue
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_JavaScript')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_JavaScript');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_JavaScript', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,13 +1,49 @@
|
||||
<?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.xmlformExtension.php';
|
||||
<?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.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
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,49 +1,115 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Link')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Link');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Link', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Link::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Link')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Link');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Link', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Link::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Link')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Link');
|
||||
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Link', 'renderTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,113 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Listbox')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Listbox');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Listbox', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Listbox::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Listbox')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Listbox');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Listbox', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Listbox::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Listbox')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Listbox');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Listbox', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,67 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Password')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Password');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Password', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,71 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Percentage')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Percentage');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Percentage', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,71 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Print')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Print');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Print', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,89 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_RadioGroup')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_RadioGroup');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_RadioGroup', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_RadioGroup::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_RadioGroup')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_RadioGroup');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_RadioGroup', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,71 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_RadioGroupView')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_RadioGroupView');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_RadioGroupView', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,69 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Reset')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Reset');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Reset', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,89 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_SimpleText')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_SimpleText');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_SimpleText', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_SimpleText::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_SimpleText')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_SimpleText');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_SimpleText', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,69 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Submit')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Submit');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Submit', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,84 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Subtitle')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Subtitle');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Subtitle', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Subtitle::validateValue
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Subtitle')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Subtitle');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Subtitle', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,111 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Suggest')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Suggest');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Suggest', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Suggest::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Suggest')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Suggest');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Suggest', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Suggest::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Suggest')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Suggest');
|
||||
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Suggest', 'renderTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,111 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Text')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Text');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Text', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Text::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Text')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Text');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Text', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Text::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Text')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Text');
|
||||
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Text', 'renderTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,89 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Textarea')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Textarea');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Textarea', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Textarea::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Textarea')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Textarea');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Textarea', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,86 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Title')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Title');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Title', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Title::validateValue
|
||||
* @todo Implement testvalidateValue().
|
||||
*/
|
||||
public function testvalidateValue()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Title')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Title');
|
||||
$this->assertTrue( in_array( 'validateValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testvalidateValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('validateValue', $methods ), 'exists method validateValue' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Title', 'validateValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,109 @@
|
||||
<?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.xmlMenu.php';
|
||||
<?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.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
|
||||
* @todo Implement testXmlForm_Field_XmlMenu().
|
||||
*/
|
||||
public function testXmlForm_Field_XmlMenu()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_XmlMenu')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_XmlMenu');
|
||||
$this->assertTrue( in_array( 'XmlForm_Field_XmlMenu', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testXmlForm_Field_XmlMenu()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('XmlForm_Field_XmlMenu', $methods ), 'exists method XmlForm_Field_XmlMenu' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'XmlForm_Field_XmlMenu');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlNode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'lang');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'home');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'owner');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_XmlMenu::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_XmlMenu')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_XmlMenu');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_XmlMenu::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_XmlMenu')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_XmlMenu');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_XmlMenu', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,109 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testXmlForm_Field_Xmlform().
|
||||
*/
|
||||
public function testXmlForm_Field_Xmlform()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Xmlform')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Xmlform');
|
||||
$this->assertTrue( in_array( 'XmlForm_Field_Xmlform', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testXmlForm_Field_Xmlform()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('XmlForm_Field_Xmlform', $methods ), 'exists method XmlForm_Field_Xmlform' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Xmlform', 'XmlForm_Field_Xmlform');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlnode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'language');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'home');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Xmlform::parseFile
|
||||
* @todo Implement testparseFile().
|
||||
*/
|
||||
public function testparseFile()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Xmlform')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Xmlform');
|
||||
$this->assertTrue( in_array( 'parseFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testparseFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('parseFile', $methods ), 'exists method parseFile' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Xmlform', 'parseFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'home');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'language');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_Xmlform::render
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_Xmlform')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_Xmlform');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_Xmlform', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,91 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_YesNo')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_YesNo');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_YesNo', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_YesNo::renderGrid
|
||||
* @todo Implement testrenderGrid().
|
||||
*/
|
||||
public function testrenderGrid()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_YesNo')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_YesNo');
|
||||
$this->assertTrue( in_array( 'renderGrid', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderGrid()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderGrid', $methods ), 'exists method renderGrid' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_YesNo', 'renderGrid');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,89 @@
|
||||
<?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.xmlformExtension.php';
|
||||
<?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.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
|
||||
* @todo Implement testtdStyle().
|
||||
*/
|
||||
public function testtdStyle()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_cellMark')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_cellMark');
|
||||
$this->assertTrue( in_array( 'tdStyle', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtdStyle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('tdStyle', $methods ), 'exists method tdStyle' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_cellMark', 'tdStyle');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers XmlForm_Field_cellMark::tdClass
|
||||
* @todo Implement testtdClass().
|
||||
*/
|
||||
public function testtdClass()
|
||||
{
|
||||
if (class_exists('XmlForm_Field_cellMark')) {
|
||||
$methods = get_class_methods( 'XmlForm_Field_cellMark');
|
||||
$this->assertTrue( in_array( 'tdClass', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtdClass()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('tdClass', $methods ), 'exists method tdClass' );
|
||||
$r = new ReflectionMethod('XmlForm_Field_cellMark', 'tdClass');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'values');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'owner');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,109 +1,190 @@
|
||||
<?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.xmlDocument.php';
|
||||
<?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.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
|
||||
* @todo Implement testXml_Node().
|
||||
*/
|
||||
public function testXml_Node()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'Xml_Node', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testXml_Node()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Xml_Node', $methods ), 'exists method Xml_Node' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'Xml_Node');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'type');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'value');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'attributes');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_Node::addAttribute
|
||||
* @todo Implement testaddAttribute().
|
||||
*/
|
||||
public function testaddAttribute()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'addAttribute', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddAttribute()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addAttribute', $methods ), 'exists method addAttribute' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'addAttribute');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_Node::addChildNode
|
||||
* @todo Implement testaddChildNode().
|
||||
*/
|
||||
public function testaddChildNode()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'addChildNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddChildNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addChildNode', $methods ), 'exists method addChildNode' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'addChildNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'childNode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_Node::toTree
|
||||
* @todo Implement testtoTree().
|
||||
*/
|
||||
public function testtoTree()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'toTree', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtoTree()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('toTree', $methods ), 'exists method toTree' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'toTree');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_Node::toArray
|
||||
* @todo Implement testtoArray().
|
||||
*/
|
||||
public function testtoArray()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'toArray', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtoArray()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('toArray', $methods ), 'exists method toArray' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'toArray');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'obj');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_Node::findNode
|
||||
* @todo Implement testfindNode().
|
||||
*/
|
||||
public function testfindNode()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testfindNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'findNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xpath');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_Node::getXML
|
||||
* @todo Implement testgetXML().
|
||||
*/
|
||||
public function testgetXML()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetXML()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'getXML');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_Node::getCDATAValue
|
||||
* @todo Implement testgetCDATAValue().
|
||||
*/
|
||||
public function testgetCDATAValue()
|
||||
{
|
||||
if (class_exists('Xml_Node')) {
|
||||
$methods = get_class_methods( 'Xml_Node');
|
||||
$this->assertTrue( in_array( 'getCDATAValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetCDATAValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getCDATAValue', $methods ), 'exists method getCDATAValue' );
|
||||
$r = new ReflectionMethod('Xml_Node', 'getCDATAValue');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +1,132 @@
|
||||
<?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.xmlDocument.php';
|
||||
<?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.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
|
||||
* @todo Implement testXml_document().
|
||||
*/
|
||||
public function testXml_document()
|
||||
{
|
||||
if (class_exists('Xml_document')) {
|
||||
$methods = get_class_methods( 'Xml_document');
|
||||
$this->assertTrue( in_array( 'Xml_document', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testXml_document()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Xml_document', $methods ), 'exists method Xml_document' );
|
||||
$r = new ReflectionMethod('Xml_document', 'Xml_document');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_document::parseXmlFile
|
||||
* @todo Implement testparseXmlFile().
|
||||
*/
|
||||
public function testparseXmlFile()
|
||||
{
|
||||
if (class_exists('Xml_document')) {
|
||||
$methods = get_class_methods( 'Xml_document');
|
||||
$this->assertTrue( in_array( 'parseXmlFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testparseXmlFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('parseXmlFile', $methods ), 'exists method parseXmlFile' );
|
||||
$r = new ReflectionMethod('Xml_document', 'parseXmlFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'content');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_document::findNode
|
||||
* @todo Implement testfindNode().
|
||||
*/
|
||||
public function testfindNode()
|
||||
{
|
||||
if (class_exists('Xml_document')) {
|
||||
$methods = get_class_methods( 'Xml_document');
|
||||
$this->assertTrue( in_array( 'findNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testfindNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('findNode', $methods ), 'exists method findNode' );
|
||||
$r = new ReflectionMethod('Xml_document', 'findNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xpath');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_document::getXML
|
||||
* @todo Implement testgetXML().
|
||||
*/
|
||||
public function testgetXML()
|
||||
{
|
||||
if (class_exists('Xml_document')) {
|
||||
$methods = get_class_methods( 'Xml_document');
|
||||
$this->assertTrue( in_array( 'getXML', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetXML()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getXML', $methods ), 'exists method getXML' );
|
||||
$r = new ReflectionMethod('Xml_document', 'getXML');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Xml_document::save
|
||||
* @todo Implement testsave().
|
||||
*/
|
||||
public function testsave()
|
||||
{
|
||||
if (class_exists('Xml_document')) {
|
||||
$methods = get_class_methods( 'Xml_document');
|
||||
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsave()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
|
||||
$r = new ReflectionMethod('Xml_document', 'save');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,109 +1,217 @@
|
||||
<?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_base.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('database_base', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sType');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'DB_ADAPTER');
|
||||
$this->assertTrue( $params[1]->getName() == 'sServer');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'DB_HOST');
|
||||
$this->assertTrue( $params[2]->getName() == 'sUser');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'DB_USER');
|
||||
$this->assertTrue( $params[3]->getName() == 'sPass');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == 'DB_PASS');
|
||||
$this->assertTrue( $params[4]->getName() == 'sDataBase');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == 'DB_NAME');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers database_base::generateDropTableSQL
|
||||
* @todo Implement testgenerateDropTableSQL().
|
||||
*/
|
||||
public function testgenerateDropTableSQL()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( 'generateDropTableSQL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgenerateDropTableSQL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('generateDropTableSQL', $methods ), 'exists method generateDropTableSQL' );
|
||||
$r = new ReflectionMethod('database_base', 'generateDropTableSQL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers database_base::generateCreateTableSQL
|
||||
* @todo Implement testgenerateCreateTableSQL().
|
||||
*/
|
||||
public function testgenerateCreateTableSQL()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( 'generateCreateTableSQL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgenerateCreateTableSQL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('generateCreateTableSQL', $methods ), 'exists method generateCreateTableSQL' );
|
||||
$r = new ReflectionMethod('database_base', 'generateCreateTableSQL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'aColumns');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers database_base::generateDropColumnSQL
|
||||
* @todo Implement testgenerateDropColumnSQL().
|
||||
*/
|
||||
public function testgenerateDropColumnSQL()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( 'generateDropColumnSQL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgenerateDropColumnSQL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('generateDropColumnSQL', $methods ), 'exists method generateDropColumnSQL' );
|
||||
$r = new ReflectionMethod('database_base', 'generateDropColumnSQL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sColumn');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers database_base::generateAddColumnSQL
|
||||
* @todo Implement testgenerateAddColumnSQL().
|
||||
*/
|
||||
public function testgenerateAddColumnSQL()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( 'generateAddColumnSQL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgenerateAddColumnSQL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('generateAddColumnSQL', $methods ), 'exists method generateAddColumnSQL' );
|
||||
$r = new ReflectionMethod('database_base', 'generateAddColumnSQL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sColumn');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'aParameters');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers database_base::generateChangeColumnSQL
|
||||
* @todo Implement testgenerateChangeColumnSQL().
|
||||
*/
|
||||
public function testgenerateChangeColumnSQL()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( 'generateChangeColumnSQL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgenerateChangeColumnSQL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('generateChangeColumnSQL', $methods ), 'exists method generateChangeColumnSQL' );
|
||||
$r = new ReflectionMethod('database_base', 'generateChangeColumnSQL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sColumn');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'aParameters');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers database_base::executeQuery
|
||||
* @todo Implement testexecuteQuery().
|
||||
*/
|
||||
public function testexecuteQuery()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( 'executeQuery', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testexecuteQuery()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('executeQuery', $methods ), 'exists method executeQuery' );
|
||||
$r = new ReflectionMethod('database_base', 'executeQuery');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sQuery');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers database_base::close
|
||||
* @todo Implement testclose().
|
||||
*/
|
||||
public function testclose()
|
||||
{
|
||||
if (class_exists('database_base')) {
|
||||
$methods = get_class_methods( 'database_base');
|
||||
$this->assertTrue( in_array( 'close', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testclose()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('close', $methods ), 'exists method close' );
|
||||
$r = new ReflectionMethod('database_base', 'close');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,289 +1,489 @@
|
||||
<?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.dynaformhandler.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::load
|
||||
* @todo Implement testload().
|
||||
*/
|
||||
public function testload()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'load');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::reload
|
||||
* @todo Implement testreload().
|
||||
*/
|
||||
public function testreload()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'reload', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testreload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('reload', $methods ), 'exists method reload' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'reload');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::__cloneEmpty
|
||||
* @todo Implement test__cloneEmpty().
|
||||
*/
|
||||
public function test__cloneEmpty()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( '__cloneEmpty', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__cloneEmpty()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__cloneEmpty', $methods ), 'exists method __cloneEmpty' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', '__cloneEmpty');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::toString
|
||||
* @todo Implement testtoString().
|
||||
*/
|
||||
public function testtoString()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'toString', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtoString()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('toString', $methods ), 'exists method toString' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'toString');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'op');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::getNode
|
||||
* @todo Implement testgetNode().
|
||||
*/
|
||||
public function testgetNode()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'getNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'nodename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::setNode
|
||||
* @todo Implement testsetNode().
|
||||
*/
|
||||
public function testsetNode()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'setNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setNode', $methods ), 'exists method setNode' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'setNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'node');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::add
|
||||
* @todo Implement testadd().
|
||||
*/
|
||||
public function testadd()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'add', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testadd()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('add', $methods ), 'exists method add' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'add');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'attributes');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'childs');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'childs_childs');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::replace
|
||||
* @todo Implement testreplace().
|
||||
*/
|
||||
public function testreplace()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'replace', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testreplace()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('replace', $methods ), 'exists method replace' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'replace');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'replaced');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'name');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'attributes');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'childs');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'childs_childs');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::save
|
||||
* @todo Implement testsave().
|
||||
*/
|
||||
public function testsave()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'save', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsave()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'save');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'fname');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::fixXmlFile
|
||||
* @todo Implement testfixXmlFile().
|
||||
*/
|
||||
public function testfixXmlFile()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'fixXmlFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testfixXmlFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('fixXmlFile', $methods ), 'exists method fixXmlFile' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'fixXmlFile');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::setHeaderAttribute
|
||||
* @todo Implement testsetHeaderAttribute().
|
||||
*/
|
||||
public function testsetHeaderAttribute()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'setHeaderAttribute', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetHeaderAttribute()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setHeaderAttribute', $methods ), 'exists method setHeaderAttribute' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'setHeaderAttribute');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'att_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'att_value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::modifyHeaderAttribute
|
||||
* @todo Implement testmodifyHeaderAttribute().
|
||||
*/
|
||||
public function testmodifyHeaderAttribute()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'modifyHeaderAttribute', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmodifyHeaderAttribute()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('modifyHeaderAttribute', $methods ), 'exists method modifyHeaderAttribute' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'modifyHeaderAttribute');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'att_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'att_new_value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::updateAttribute
|
||||
* @todo Implement testupdateAttribute().
|
||||
*/
|
||||
public function testupdateAttribute()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'updateAttribute', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testupdateAttribute()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('updateAttribute', $methods ), 'exists method updateAttribute' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'updateAttribute');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'node_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'att_name');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'att_new_value');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::remove
|
||||
* @todo Implement testremove().
|
||||
*/
|
||||
public function testremove()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'remove', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testremove()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('remove', $methods ), 'exists method remove' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'remove');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'v');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::nodeExists
|
||||
* @todo Implement testnodeExists().
|
||||
*/
|
||||
public function testnodeExists()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'nodeExists', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testnodeExists()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('nodeExists', $methods ), 'exists method nodeExists' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'nodeExists');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'node_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::moveUp
|
||||
* @todo Implement testmoveUp().
|
||||
*/
|
||||
public function testmoveUp()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'moveUp', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmoveUp()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('moveUp', $methods ), 'exists method moveUp' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'moveUp');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'selected_node');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::moveDown
|
||||
* @todo Implement testmoveDown().
|
||||
*/
|
||||
public function testmoveDown()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'moveDown', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testmoveDown()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('moveDown', $methods ), 'exists method moveDown' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'moveDown');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'selected_node');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::getFields
|
||||
* @todo Implement testgetFields().
|
||||
*/
|
||||
public function testgetFields()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'getFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aFilter');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::getFieldNames
|
||||
* @todo Implement testgetFieldNames().
|
||||
*/
|
||||
public function testgetFieldNames()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'getFieldNames', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetFieldNames()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getFieldNames', $methods ), 'exists method getFieldNames' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'getFieldNames');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aFilter');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::addChilds
|
||||
* @todo Implement testaddChilds().
|
||||
*/
|
||||
public function testaddChilds()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'addChilds', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddChilds()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addChilds', $methods ), 'exists method addChilds' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'addChilds');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'childs');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'childs_childs');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::addOrUpdateChild
|
||||
* @todo Implement testaddOrUpdateChild().
|
||||
*/
|
||||
public function testaddOrUpdateChild()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'addOrUpdateChild', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddOrUpdateChild()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addOrUpdateChild', $methods ), 'exists method addOrUpdateChild' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'addOrUpdateChild');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xnode');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'childName');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'childValue');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'childAttributes');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers dynaFormHandler::getArray
|
||||
* @todo Implement testgetArray().
|
||||
*/
|
||||
public function testgetArray()
|
||||
{
|
||||
if (class_exists('dynaFormHandler')) {
|
||||
$methods = get_class_methods( 'dynaFormHandler');
|
||||
$this->assertTrue( in_array( 'getArray', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetArray()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getArray', $methods ), 'exists method getArray' );
|
||||
$r = new ReflectionMethod('dynaFormHandler', 'getArray');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'node');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'attributes');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,69 @@
|
||||
<?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.filterForm.php';
|
||||
<?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.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
|
||||
* @todo Implement testrender().
|
||||
*/
|
||||
public function testrender()
|
||||
{
|
||||
if (class_exists('filterForm')) {
|
||||
$methods = get_class_methods( 'filterForm');
|
||||
$this->assertTrue( in_array( 'render', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrender()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('render', $methods ), 'exists method render' );
|
||||
$r = new ReflectionMethod('filterForm', 'render');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'template');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'scriptContent');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,89 @@
|
||||
<?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.functionTest.php';
|
||||
<?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.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
|
||||
* @todo Implement testfunctionTest().
|
||||
*/
|
||||
public function testfunctionTest()
|
||||
{
|
||||
if (class_exists('functionTest')) {
|
||||
$methods = get_class_methods( 'functionTest');
|
||||
$this->assertTrue( in_array( 'functionTest', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testfunctionTest()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('functionTest', $methods ), 'exists method functionTest' );
|
||||
$r = new ReflectionMethod('functionTest', 'functionTest');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'dbc');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers functionTest::sample
|
||||
* @todo Implement testsample().
|
||||
*/
|
||||
public function testsample()
|
||||
{
|
||||
if (class_exists('functionTest')) {
|
||||
$methods = get_class_methods( 'functionTest');
|
||||
$this->assertTrue( in_array( 'sample', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsample()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('sample', $methods ), 'exists method sample' );
|
||||
$r = new ReflectionMethod('functionTest', 'sample');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'testCase');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'testDomain');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'limeTestObject');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,349 +1,517 @@
|
||||
<?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.headPublisher.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('headPublisher', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::getSingleton
|
||||
* @todo Implement testgetSingleton().
|
||||
*/
|
||||
public function testgetSingleton()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetSingleton()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' );
|
||||
$r = new ReflectionMethod('headPublisher', 'getSingleton');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::setTitle
|
||||
* @todo Implement testsetTitle().
|
||||
*/
|
||||
public function testsetTitle()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'setTitle', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetTitle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setTitle', $methods ), 'exists method setTitle' );
|
||||
$r = new ReflectionMethod('headPublisher', 'setTitle');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'title');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::addMaborakFile
|
||||
* @todo Implement testaddMaborakFile().
|
||||
*/
|
||||
public function testaddMaborakFile()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'addMaborakFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddMaborakFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addMaborakFile', $methods ), 'exists method addMaborakFile' );
|
||||
$r = new ReflectionMethod('headPublisher', 'addMaborakFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'loader');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::addScriptFile
|
||||
* @todo Implement testaddScriptFile().
|
||||
*/
|
||||
public function testaddScriptFile()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'addScriptFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddScriptFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addScriptFile', $methods ), 'exists method addScriptFile' );
|
||||
$r = new ReflectionMethod('headPublisher', 'addScriptFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'url');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'LoadType');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::addInstanceModule
|
||||
* @todo Implement testaddInstanceModule().
|
||||
*/
|
||||
public function testaddInstanceModule()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'addInstanceModule', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddInstanceModule()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addInstanceModule', $methods ), 'exists method addInstanceModule' );
|
||||
$r = new ReflectionMethod('headPublisher', 'addInstanceModule');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'instance');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'module');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::addClassModule
|
||||
* @todo Implement testaddClassModule().
|
||||
*/
|
||||
public function testaddClassModule()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'addClassModule', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddClassModule()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addClassModule', $methods ), 'exists method addClassModule' );
|
||||
$r = new ReflectionMethod('headPublisher', 'addClassModule');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'class');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'module');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::addScriptCode
|
||||
* @todo Implement testaddScriptCode().
|
||||
*/
|
||||
public function testaddScriptCode()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'addScriptCode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddScriptCode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addScriptCode', $methods ), 'exists method addScriptCode' );
|
||||
$r = new ReflectionMethod('headPublisher', 'addScriptCode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'script');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::printHeader
|
||||
* @todo Implement testprintHeader().
|
||||
*/
|
||||
public function testprintHeader()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'printHeader', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintHeader()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printHeader', $methods ), 'exists method printHeader' );
|
||||
$r = new ReflectionMethod('headPublisher', 'printHeader');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::printRawHeader
|
||||
* @todo Implement testprintRawHeader().
|
||||
*/
|
||||
public function testprintRawHeader()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'printRawHeader', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintRawHeader()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printRawHeader', $methods ), 'exists method printRawHeader' );
|
||||
$r = new ReflectionMethod('headPublisher', 'printRawHeader');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::clearScripts
|
||||
* @todo Implement testclearScripts().
|
||||
*/
|
||||
public function testclearScripts()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'clearScripts', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testclearScripts()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('clearScripts', $methods ), 'exists method clearScripts' );
|
||||
$r = new ReflectionMethod('headPublisher', 'clearScripts');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::includeExtJs
|
||||
* @todo Implement testincludeExtJs().
|
||||
*/
|
||||
public function testincludeExtJs()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'includeExtJs', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testincludeExtJs()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('includeExtJs', $methods ), 'exists method includeExtJs' );
|
||||
$r = new ReflectionMethod('headPublisher', 'includeExtJs');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::getExtJsStylesheets
|
||||
* @todo Implement testgetExtJsStylesheets().
|
||||
*/
|
||||
public function testgetExtJsStylesheets()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'getExtJsStylesheets', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetExtJsStylesheets()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getExtJsStylesheets', $methods ), 'exists method getExtJsStylesheets' );
|
||||
$r = new ReflectionMethod('headPublisher', 'getExtJsStylesheets');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'skinName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::getExtJsScripts
|
||||
* @todo Implement testgetExtJsScripts().
|
||||
*/
|
||||
public function testgetExtJsScripts()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'getExtJsScripts', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetExtJsScripts()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getExtJsScripts', $methods ), 'exists method getExtJsScripts' );
|
||||
$r = new ReflectionMethod('headPublisher', 'getExtJsScripts');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::getExtJsVariablesScript
|
||||
* @todo Implement testgetExtJsVariablesScript().
|
||||
*/
|
||||
public function testgetExtJsVariablesScript()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'getExtJsVariablesScript', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetExtJsVariablesScript()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getExtJsVariablesScript', $methods ), 'exists method getExtJsVariablesScript' );
|
||||
$r = new ReflectionMethod('headPublisher', 'getExtJsVariablesScript');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::getExtJsLibraries
|
||||
* @todo Implement testgetExtJsLibraries().
|
||||
*/
|
||||
public function testgetExtJsLibraries()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'getExtJsLibraries', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetExtJsLibraries()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getExtJsLibraries', $methods ), 'exists method getExtJsLibraries' );
|
||||
$r = new ReflectionMethod('headPublisher', 'getExtJsLibraries');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::usingExtJs
|
||||
* @todo Implement testusingExtJs().
|
||||
*/
|
||||
public function testusingExtJs()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'usingExtJs', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testusingExtJs()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('usingExtJs', $methods ), 'exists method usingExtJs' );
|
||||
$r = new ReflectionMethod('headPublisher', 'usingExtJs');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'library');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::setExtSkin
|
||||
* @todo Implement testsetExtSkin().
|
||||
*/
|
||||
public function testsetExtSkin()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'setExtSkin', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetExtSkin()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setExtSkin', $methods ), 'exists method setExtSkin' );
|
||||
$r = new ReflectionMethod('headPublisher', 'setExtSkin');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'skin');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::addExtJsScript
|
||||
* @todo Implement testaddExtJsScript().
|
||||
*/
|
||||
public function testaddExtJsScript()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'addExtJsScript', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddExtJsScript()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addExtJsScript', $methods ), 'exists method addExtJsScript' );
|
||||
$r = new ReflectionMethod('headPublisher', 'addExtJsScript');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'debug');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'isExternal');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::AddContent
|
||||
* @todo Implement testAddContent().
|
||||
*/
|
||||
public function testAddContent()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'AddContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAddContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AddContent', $methods ), 'exists method AddContent' );
|
||||
$r = new ReflectionMethod('headPublisher', 'AddContent');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'templateHtml');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::getContent
|
||||
* @todo Implement testgetContent().
|
||||
*/
|
||||
public function testgetContent()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'getContent', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetContent()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getContent', $methods ), 'exists method getContent' );
|
||||
$r = new ReflectionMethod('headPublisher', 'getContent');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::Assign
|
||||
* @todo Implement testAssign().
|
||||
*/
|
||||
public function testAssign()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'Assign', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAssign()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Assign', $methods ), 'exists method Assign' );
|
||||
$r = new ReflectionMethod('headPublisher', 'Assign');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'variable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::AssignVar
|
||||
* @todo Implement testAssignVar().
|
||||
*/
|
||||
public function testAssignVar()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'AssignVar', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAssignVar()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AssignVar', $methods ), 'exists method AssignVar' );
|
||||
$r = new ReflectionMethod('headPublisher', 'AssignVar');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::getVars
|
||||
* @todo Implement testgetVars().
|
||||
*/
|
||||
public function testgetVars()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'getVars', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetVars()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getVars', $methods ), 'exists method getVars' );
|
||||
$r = new ReflectionMethod('headPublisher', 'getVars');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::AssignNumber
|
||||
* @todo Implement testAssignNumber().
|
||||
*/
|
||||
public function testAssignNumber()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'AssignNumber', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testAssignNumber()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('AssignNumber', $methods ), 'exists method AssignNumber' );
|
||||
$r = new ReflectionMethod('headPublisher', 'AssignNumber');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'variable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::renderExtJs
|
||||
* @todo Implement testrenderExtJs().
|
||||
*/
|
||||
public function testrenderExtJs()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'renderExtJs', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderExtJs()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderExtJs', $methods ), 'exists method renderExtJs' );
|
||||
$r = new ReflectionMethod('headPublisher', 'renderExtJs');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::stripCodeQuotes
|
||||
* @todo Implement teststripCodeQuotes().
|
||||
*/
|
||||
public function teststripCodeQuotes()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'stripCodeQuotes', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function teststripCodeQuotes()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('stripCodeQuotes', $methods ), 'exists method stripCodeQuotes' );
|
||||
$r = new ReflectionMethod('headPublisher', 'stripCodeQuotes');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sJson');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers headPublisher::disableHeaderScripts
|
||||
* @todo Implement testdisableHeaderScripts().
|
||||
*/
|
||||
public function testdisableHeaderScripts()
|
||||
{
|
||||
if (class_exists('headPublisher')) {
|
||||
$methods = get_class_methods( 'headPublisher');
|
||||
$this->assertTrue( in_array( 'disableHeaderScripts', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdisableHeaderScripts()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('disableHeaderScripts', $methods ), 'exists method disableHeaderScripts' );
|
||||
$r = new ReflectionMethod('headPublisher', 'disableHeaderScripts');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,241 +1,330 @@
|
||||
<?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.i18n_po.php';
|
||||
<?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.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
|
||||
* @todo Implement test__construct().
|
||||
*/
|
||||
public function test__construct()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__construct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('i18n_PO', '__construct');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'file');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::buildInit
|
||||
* @todo Implement testbuildInit().
|
||||
*/
|
||||
public function testbuildInit()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'buildInit', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testbuildInit()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('buildInit', $methods ), 'exists method buildInit' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'buildInit');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::readInit
|
||||
* @todo Implement testreadInit().
|
||||
*/
|
||||
public function testreadInit()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'readInit', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testreadInit()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('readInit', $methods ), 'exists method readInit' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'readInit');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::addHeader
|
||||
* @todo Implement testaddHeader().
|
||||
*/
|
||||
public function testaddHeader()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'addHeader', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddHeader()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addHeader', $methods ), 'exists method addHeader' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'addHeader');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'id');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::addTranslatorComment
|
||||
* @todo Implement testaddTranslatorComment().
|
||||
*/
|
||||
public function testaddTranslatorComment()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'addTranslatorComment', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddTranslatorComment()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addTranslatorComment', $methods ), 'exists method addTranslatorComment' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'addTranslatorComment');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::addExtractedComment
|
||||
* @todo Implement testaddExtractedComment().
|
||||
*/
|
||||
public function testaddExtractedComment()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'addExtractedComment', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddExtractedComment()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addExtractedComment', $methods ), 'exists method addExtractedComment' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'addExtractedComment');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::addReference
|
||||
* @todo Implement testaddReference().
|
||||
*/
|
||||
public function testaddReference()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'addReference', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddReference()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addReference', $methods ), 'exists method addReference' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'addReference');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::addFlag
|
||||
* @todo Implement testaddFlag().
|
||||
*/
|
||||
public function testaddFlag()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'addFlag', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddFlag()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addFlag', $methods ), 'exists method addFlag' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'addFlag');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::addPreviousUntranslatedString
|
||||
* @todo Implement testaddPreviousUntranslatedString().
|
||||
*/
|
||||
public function testaddPreviousUntranslatedString()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'addPreviousUntranslatedString', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddPreviousUntranslatedString()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addPreviousUntranslatedString', $methods ), 'exists method addPreviousUntranslatedString' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'addPreviousUntranslatedString');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::addTranslation
|
||||
* @todo Implement testaddTranslation().
|
||||
*/
|
||||
public function testaddTranslation()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'addTranslation', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddTranslation()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addTranslation', $methods ), 'exists method addTranslation' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'addTranslation');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'msgid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'msgstr');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::_writeLine
|
||||
* @todo Implement test_writeLine().
|
||||
*/
|
||||
public function test_writeLine()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( '_writeLine', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test_writeLine()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('_writeLine', $methods ), 'exists method _writeLine' );
|
||||
$r = new ReflectionMethod('i18n_PO', '_writeLine');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::_write
|
||||
* @todo Implement test_write().
|
||||
*/
|
||||
public function test_write()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( '_write', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test_write()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('_write', $methods ), 'exists method _write' );
|
||||
$r = new ReflectionMethod('i18n_PO', '_write');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'str');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::prepare
|
||||
* @todo Implement testprepare().
|
||||
*/
|
||||
public function testprepare()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'prepare', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprepare()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('prepare', $methods ), 'exists method prepare' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'prepare');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'string');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'reverse');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::headerStroke
|
||||
* @todo Implement testheaderStroke().
|
||||
*/
|
||||
public function testheaderStroke()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'headerStroke', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function testheaderStroke()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('headerStroke', $methods ), 'exists method headerStroke' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'headerStroke');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::skipCommets
|
||||
* @todo Implement testskipCommets().
|
||||
*/
|
||||
public function testskipCommets()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'skipCommets', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::readHeaders
|
||||
* @todo Implement testreadHeaders().
|
||||
*/
|
||||
public function testreadHeaders()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'readHeaders', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::getHeaders
|
||||
* @todo Implement testgetHeaders().
|
||||
*/
|
||||
public function testgetHeaders()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'getHeaders', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetHeaders()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getHeaders', $methods ), 'exists method getHeaders' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'getHeaders');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::getTranslation
|
||||
* @todo Implement testgetTranslation().
|
||||
*/
|
||||
public function testgetTranslation()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( 'getTranslation', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetTranslation()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getTranslation', $methods ), 'exists method getTranslation' );
|
||||
$r = new ReflectionMethod('i18n_PO', 'getTranslation');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers i18n_PO::__destruct
|
||||
* @todo Implement test__destruct().
|
||||
*/
|
||||
public function test__destruct()
|
||||
{
|
||||
if (class_exists('i18n_PO')) {
|
||||
$methods = get_class_methods( 'i18n_PO');
|
||||
$this->assertTrue( in_array( '__destruct', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test__destruct()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('__destruct', $methods ), 'exists method __destruct' );
|
||||
$r = new ReflectionMethod('i18n_PO', '__destruct');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,97 +1,266 @@
|
||||
<?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.mailer.php';
|
||||
<?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.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
|
||||
* @todo Implement testinstanceMailer().
|
||||
*/
|
||||
public function testinstanceMailer()
|
||||
{
|
||||
if (class_exists('mailer')) {
|
||||
$methods = get_class_methods( 'mailer');
|
||||
$this->assertTrue( in_array( 'instanceMailer', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testinstanceMailer()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('instanceMailer', $methods ), 'exists method instanceMailer' );
|
||||
$r = new ReflectionMethod('mailer', 'instanceMailer');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers mailer::arpaEMAIL
|
||||
* @todo Implement testarpaEMAIL().
|
||||
*/
|
||||
public function testarpaEMAIL()
|
||||
{
|
||||
if (class_exists('mailer')) {
|
||||
$methods = get_class_methods( 'mailer');
|
||||
$this->assertTrue( in_array( 'arpaEMAIL', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testarpaEMAIL()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('arpaEMAIL', $methods ), 'exists method arpaEMAIL' );
|
||||
$r = new ReflectionMethod('mailer', 'arpaEMAIL');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'address');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers mailer::sendTemplate
|
||||
* @todo Implement testsendTemplate().
|
||||
*/
|
||||
public function testsendTemplate()
|
||||
{
|
||||
if (class_exists('mailer')) {
|
||||
$methods = get_class_methods( 'mailer');
|
||||
$this->assertTrue( in_array( 'sendTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsendTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('sendTemplate', $methods ), 'exists method sendTemplate' );
|
||||
$r = new ReflectionMethod('mailer', 'sendTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'from');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'target');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'cc');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'bcc');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'subject');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'Fields');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[6]->getName() == 'templateFile');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == 'empty.html');
|
||||
$this->assertTrue( $params[7]->getName() == 'attachs');
|
||||
$this->assertTrue( $params[7]->isArray() == false);
|
||||
$this->assertTrue( $params[7]->isOptional () == true);
|
||||
$this->assertTrue( $params[7]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[8]->getName() == 'plainText');
|
||||
$this->assertTrue( $params[8]->isArray() == false);
|
||||
$this->assertTrue( $params[8]->isOptional () == true);
|
||||
$this->assertTrue( $params[8]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[9]->getName() == 'returnContent');
|
||||
$this->assertTrue( $params[9]->isArray() == false);
|
||||
$this->assertTrue( $params[9]->isOptional () == true);
|
||||
$this->assertTrue( $params[9]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers mailer::sendHtml
|
||||
* @todo Implement testsendHtml().
|
||||
*/
|
||||
public function testsendHtml()
|
||||
{
|
||||
if (class_exists('mailer')) {
|
||||
$methods = get_class_methods( 'mailer');
|
||||
$this->assertTrue( in_array( 'sendHtml', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsendHtml()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('sendHtml', $methods ), 'exists method sendHtml' );
|
||||
$r = new ReflectionMethod('mailer', 'sendHtml');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'from');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'target');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'cc');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'bcc');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'subject');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'Fields');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[6]->getName() == 'content');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[7]->getName() == 'attachs');
|
||||
$this->assertTrue( $params[7]->isArray() == false);
|
||||
$this->assertTrue( $params[7]->isOptional () == true);
|
||||
$this->assertTrue( $params[7]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[8]->getName() == 'plainText');
|
||||
$this->assertTrue( $params[8]->isArray() == false);
|
||||
$this->assertTrue( $params[8]->isOptional () == true);
|
||||
$this->assertTrue( $params[8]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[9]->getName() == 'returnContent');
|
||||
$this->assertTrue( $params[9]->isArray() == false);
|
||||
$this->assertTrue( $params[9]->isOptional () == true);
|
||||
$this->assertTrue( $params[9]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers mailer::sendText
|
||||
* @todo Implement testsendText().
|
||||
*/
|
||||
public function testsendText()
|
||||
{
|
||||
if (class_exists('mailer')) {
|
||||
$methods = get_class_methods( 'mailer');
|
||||
$this->assertTrue( in_array( 'sendText', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsendText()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('sendText', $methods ), 'exists method sendText' );
|
||||
$r = new ReflectionMethod('mailer', 'sendText');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'from');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'target');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'cc');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'bcc');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'subject');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'content');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[6]->getName() == 'attachs');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers mailer::replaceFields
|
||||
* @todo Implement testreplaceFields().
|
||||
*/
|
||||
public function testreplaceFields()
|
||||
{
|
||||
if (class_exists('mailer')) {
|
||||
$methods = get_class_methods( 'mailer');
|
||||
$this->assertTrue( in_array( 'replaceFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testreplaceFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('replaceFields', $methods ), 'exists method replaceFields' );
|
||||
$r = new ReflectionMethod('mailer', 'replaceFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'Fields');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[1]->getName() == 'content');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers mailer::html2text
|
||||
* @todo Implement testhtml2text().
|
||||
*/
|
||||
public function testhtml2text()
|
||||
{
|
||||
if (class_exists('mailer')) {
|
||||
$methods = get_class_methods( 'mailer');
|
||||
$this->assertTrue( in_array( 'html2text', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testhtml2text()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('html2text', $methods ), 'exists method html2text' );
|
||||
$r = new ReflectionMethod('mailer', 'html2text');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,37 +1,83 @@
|
||||
<?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.objectTemplate.php';
|
||||
<?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.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
|
||||
* @todo Implement testobjectTemplate().
|
||||
*/
|
||||
public function testobjectTemplate()
|
||||
{
|
||||
if (class_exists('objectTemplate')) {
|
||||
$methods = get_class_methods( 'objectTemplate');
|
||||
$this->assertTrue( in_array( 'objectTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testobjectTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('objectTemplate', $methods ), 'exists method objectTemplate' );
|
||||
$r = new ReflectionMethod('objectTemplate', 'objectTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'templateFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers objectTemplate::printObject
|
||||
* @todo Implement testprintObject().
|
||||
*/
|
||||
public function testprintObject()
|
||||
{
|
||||
if (class_exists('objectTemplate')) {
|
||||
$methods = get_class_methods( 'objectTemplate');
|
||||
$this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintObject()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' );
|
||||
$r = new ReflectionMethod('objectTemplate', 'printObject');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'object');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,133 +1,198 @@
|
||||
<?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.pagedTable.php';
|
||||
<?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.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
|
||||
* @todo Implement testanalizeSql().
|
||||
*/
|
||||
public function testanalizeSql()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'analizeSql', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testanalizeSql()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('analizeSql', $methods ), 'exists method analizeSql' );
|
||||
$r = new ReflectionMethod('pagedTable', 'analizeSql');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::prepareQuery
|
||||
* @todo Implement testprepareQuery().
|
||||
*/
|
||||
public function testprepareQuery()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'prepareQuery', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprepareQuery()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('prepareQuery', $methods ), 'exists method prepareQuery' );
|
||||
$r = new ReflectionMethod('pagedTable', 'prepareQuery');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::setupFromXmlform
|
||||
* @todo Implement testsetupFromXmlform().
|
||||
*/
|
||||
public function testsetupFromXmlform()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'setupFromXmlform', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetupFromXmlform()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setupFromXmlform', $methods ), 'exists method setupFromXmlform' );
|
||||
$r = new ReflectionMethod('pagedTable', 'setupFromXmlform');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlForm');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::count
|
||||
* @todo Implement testcount().
|
||||
*/
|
||||
public function testcount()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'count', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcount()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('count', $methods ), 'exists method count' );
|
||||
$r = new ReflectionMethod('pagedTable', 'count');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::renderTitle
|
||||
* @todo Implement testrenderTitle().
|
||||
*/
|
||||
public function testrenderTitle()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'renderTitle', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderTitle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTitle', $methods ), 'exists method renderTitle' );
|
||||
$r = new ReflectionMethod('pagedTable', 'renderTitle');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::renderField
|
||||
* @todo Implement testrenderField().
|
||||
*/
|
||||
public function testrenderField()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'renderField', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderField()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderField', $methods ), 'exists method renderField' );
|
||||
$r = new ReflectionMethod('pagedTable', 'renderField');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'row');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'r');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'result');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::defaultStyle
|
||||
* @todo Implement testdefaultStyle().
|
||||
*/
|
||||
public function testdefaultStyle()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'defaultStyle', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdefaultStyle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('defaultStyle', $methods ), 'exists method defaultStyle' );
|
||||
$r = new ReflectionMethod('pagedTable', 'defaultStyle');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'renderTable', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$r = new ReflectionMethod('pagedTable', 'renderTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'block');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers pagedTable::printForm
|
||||
* @todo Implement testprintForm().
|
||||
*/
|
||||
public function testprintForm()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'printForm', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function testprintForm()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printForm', $methods ), 'exists method printForm' );
|
||||
$r = new ReflectionMethod('pagedTable', 'printForm');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'data');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers pagedTable::var_dump2
|
||||
* @todo Implement testvar_dump2().
|
||||
*/
|
||||
public function testvar_dump2()
|
||||
{
|
||||
if (class_exists('pagedTable')) {
|
||||
$methods = get_class_methods( 'pagedTable');
|
||||
$this->assertTrue( in_array( 'var_dump2', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,109 +1,199 @@
|
||||
<?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.testTools.php';
|
||||
<?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.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
|
||||
* @todo Implement testimportDB().
|
||||
*/
|
||||
public function testimportDB()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'importDB', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testimportDB()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('importDB', $methods ), 'exists method importDB' );
|
||||
$r = new ReflectionMethod('testTools', 'importDB');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'host');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'user');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'password');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'database');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->assertTrue( $params[4]->getName() == 'importFile');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers testTools::importLocalDB
|
||||
* @todo Implement testimportLocalDB().
|
||||
*/
|
||||
public function testimportLocalDB()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'importLocalDB', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testimportLocalDB()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('importLocalDB', $methods ), 'exists method importLocalDB' );
|
||||
$r = new ReflectionMethod('testTools', 'importLocalDB');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'importFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers testTools::callMethod
|
||||
* @todo Implement testcallMethod().
|
||||
*/
|
||||
public function testcallMethod()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'callMethod', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcallMethod()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('callMethod', $methods ), 'exists method callMethod' );
|
||||
$r = new ReflectionMethod('testTools', 'callMethod');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'methodFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'GET');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'POST');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'SESSION');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers testTools::arrayAppend
|
||||
* @todo Implement testarrayAppend().
|
||||
*/
|
||||
public function testarrayAppend()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testarrayAppend()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' );
|
||||
$r = new ReflectionMethod('testTools', 'arrayAppend');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'to');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'appendFrom');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers testTools::arrayDelete
|
||||
* @todo Implement testarrayDelete().
|
||||
*/
|
||||
public function testarrayDelete()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'arrayDelete', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testarrayDelete()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('arrayDelete', $methods ), 'exists method arrayDelete' );
|
||||
$r = new ReflectionMethod('testTools', 'arrayDelete');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'array');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers testTools::replaceVariables
|
||||
* @todo Implement testreplaceVariables().
|
||||
*/
|
||||
public function testreplaceVariables()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'replaceVariables', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testreplaceVariables()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('replaceVariables', $methods ), 'exists method replaceVariables' );
|
||||
$r = new ReflectionMethod('testTools', 'replaceVariables');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'Fields');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'ExternalVariables');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers testTools::findValue
|
||||
* @todo Implement testfindValue().
|
||||
*/
|
||||
public function testfindValue()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'findValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
public function testfindValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('findValue', $methods ), 'exists method findValue' );
|
||||
$r = new ReflectionMethod('testTools', 'findValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'value');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'obj');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
/**
|
||||
* @covers testTools::domain
|
||||
* @todo Implement testdomain().
|
||||
*/
|
||||
public function testdomain()
|
||||
{
|
||||
if (class_exists('testTools')) {
|
||||
$methods = get_class_methods( 'testTools');
|
||||
$this->assertTrue( in_array( 'domain', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,85 +1,175 @@
|
||||
<?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.unitTest.php';
|
||||
<?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.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
|
||||
* @todo Implement testunitTest().
|
||||
*/
|
||||
public function testunitTest()
|
||||
{
|
||||
if (class_exists('unitTest')) {
|
||||
$methods = get_class_methods( 'unitTest');
|
||||
$this->assertTrue( in_array( 'unitTest', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testunitTest()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('unitTest', $methods ), 'exists method unitTest' );
|
||||
$r = new ReflectionMethod('unitTest', 'unitTest');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'ymlFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'testLime');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'testDomain');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers unitTest::load
|
||||
* @todo Implement testload().
|
||||
*/
|
||||
public function testload()
|
||||
{
|
||||
if (class_exists('unitTest')) {
|
||||
$methods = get_class_methods( 'unitTest');
|
||||
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
|
||||
$r = new ReflectionMethod('unitTest', 'load');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'testName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers unitTest::runSingle
|
||||
* @todo Implement testrunSingle().
|
||||
*/
|
||||
public function testrunSingle()
|
||||
{
|
||||
if (class_exists('unitTest')) {
|
||||
$methods = get_class_methods( 'unitTest');
|
||||
$this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrunSingle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' );
|
||||
$r = new ReflectionMethod('unitTest', 'runSingle');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'fields');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers unitTest::runMultiple
|
||||
* @todo Implement testrunMultiple().
|
||||
*/
|
||||
public function testrunMultiple()
|
||||
{
|
||||
if (class_exists('unitTest')) {
|
||||
$methods = get_class_methods( 'unitTest');
|
||||
$this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrunMultiple()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' );
|
||||
$r = new ReflectionMethod('unitTest', 'runMultiple');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'fields');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[1]->getName() == 'count');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
|
||||
$this->assertTrue( $params[2]->getName() == 'start');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers unitTest::runAll
|
||||
* @todo Implement testrunAll().
|
||||
*/
|
||||
public function testrunAll()
|
||||
{
|
||||
if (class_exists('unitTest')) {
|
||||
$methods = get_class_methods( 'unitTest');
|
||||
$this->assertTrue( in_array( 'runAll', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrunAll()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('runAll', $methods ), 'exists method runAll' );
|
||||
$r = new ReflectionMethod('unitTest', 'runAll');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'fields');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers unitTest::sampleTestFunction
|
||||
* @todo Implement testsampleTestFunction().
|
||||
*/
|
||||
public function testsampleTestFunction()
|
||||
{
|
||||
if (class_exists('unitTest')) {
|
||||
$methods = get_class_methods( 'unitTest');
|
||||
$this->assertTrue( in_array( 'sampleTestFunction', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsampleTestFunction()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('sampleTestFunction', $methods ), 'exists method sampleTestFunction' );
|
||||
$r = new ReflectionMethod('unitTest', 'sampleTestFunction');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'testCase');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'Fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,13 +1,49 @@
|
||||
<?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.xmlMenu.php';
|
||||
<?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.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
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,133 +1,252 @@
|
||||
<?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.xmlform.php';
|
||||
<?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.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
|
||||
* @todo Implement testxmlformTemplate().
|
||||
*/
|
||||
public function testxmlformTemplate()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( 'xmlformTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testxmlformTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('xmlformTemplate', $methods ), 'exists method xmlformTemplate' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', 'xmlformTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'form');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'templateFile');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::printTemplate
|
||||
* @todo Implement testprintTemplate().
|
||||
*/
|
||||
public function testprintTemplate()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( 'printTemplate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintTemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printTemplate', $methods ), 'exists method printTemplate' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', 'printTemplate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'form');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'target');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'smarty');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::printJavaScript
|
||||
* @todo Implement testprintJavaScript().
|
||||
*/
|
||||
public function testprintJavaScript()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( 'printJavaScript', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintJavaScript()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printJavaScript', $methods ), 'exists method printJavaScript' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', 'printJavaScript');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'form');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::printJSFile
|
||||
* @todo Implement testprintJSFile().
|
||||
*/
|
||||
public function testprintJSFile()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( 'printJSFile', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintJSFile()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printJSFile', $methods ), 'exists method printJSFile' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', 'printJSFile');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'form');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::getFields
|
||||
* @todo Implement testgetFields().
|
||||
*/
|
||||
public function testgetFields()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( 'getFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getFields', $methods ), 'exists method getFields' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', 'getFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'form');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'therow');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::printObject
|
||||
* @todo Implement testprintObject().
|
||||
*/
|
||||
public function testprintObject()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( 'printObject', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprintObject()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printObject', $methods ), 'exists method printObject' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', 'printObject');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'form');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'therow');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '-1');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::_get_template
|
||||
* @todo Implement test_get_template().
|
||||
*/
|
||||
public function test_get_template()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( '_get_template', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test_get_template()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('_get_template', $methods ), 'exists method _get_template' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', '_get_template');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tpl_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'tpl_source');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'smarty_obj');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::_get_timestamp
|
||||
* @todo Implement test_get_timestamp().
|
||||
*/
|
||||
public function test_get_timestamp()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( '_get_timestamp', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test_get_timestamp()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('_get_timestamp', $methods ), 'exists method _get_timestamp' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', '_get_timestamp');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tpl_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'tpl_timestamp');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'smarty_obj');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::_get_secure
|
||||
* @todo Implement test_get_secure().
|
||||
*/
|
||||
public function test_get_secure()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( '_get_secure', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test_get_secure()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('_get_secure', $methods ), 'exists method _get_secure' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', '_get_secure');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tpl_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'smarty_obj');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers xmlformTemplate::_get_trusted
|
||||
* @todo Implement test_get_trusted().
|
||||
*/
|
||||
public function test_get_trusted()
|
||||
{
|
||||
if (class_exists('xmlformTemplate')) {
|
||||
$methods = get_class_methods( 'xmlformTemplate');
|
||||
$this->assertTrue( in_array( '_get_trusted', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function test_get_trusted()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('_get_trusted', $methods ), 'exists method _get_trusted' );
|
||||
$r = new ReflectionMethod('xmlformTemplate', '_get_trusted');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tpl_name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'smarty_obj');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,145 +1,245 @@
|
||||
<?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.ymlDomain.php';
|
||||
<?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.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
|
||||
* @todo Implement testymlDomain().
|
||||
*/
|
||||
public function testymlDomain()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'ymlDomain', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testymlDomain()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('ymlDomain', $methods ), 'exists method ymlDomain' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'ymlDomain');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::addDomain
|
||||
* @todo Implement testaddDomain().
|
||||
*/
|
||||
public function testaddDomain()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'addDomain', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddDomain()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addDomain', $methods ), 'exists method addDomain' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'addDomain');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'domainName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::addDomainValue
|
||||
* @todo Implement testaddDomainValue().
|
||||
*/
|
||||
public function testaddDomainValue()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'addDomainValue', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddDomainValue()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addDomainValue', $methods ), 'exists method addDomainValue' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'addDomainValue');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'domainName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::exists
|
||||
* @todo Implement testexists().
|
||||
*/
|
||||
public function testexists()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'exists', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testexists()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('exists', $methods ), 'exists method exists' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'exists');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'domainName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::get
|
||||
* @todo Implement testget().
|
||||
*/
|
||||
public function testget()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testget()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('get', $methods ), 'exists method get' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'get');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'resource');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::name2keys
|
||||
* @todo Implement testname2keys().
|
||||
*/
|
||||
public function testname2keys()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'name2keys', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testname2keys()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('name2keys', $methods ), 'exists method name2keys' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'name2keys');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'resource');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::load
|
||||
* @todo Implement testload().
|
||||
*/
|
||||
public function testload()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'load');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'resource');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::find
|
||||
* @todo Implement testfind().
|
||||
*/
|
||||
public function testfind()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'find', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testfind()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('find', $methods ), 'exists method find' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'find');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'nodesKey');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'where');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::getNode
|
||||
* @todo Implement testgetNode().
|
||||
*/
|
||||
public function testgetNode()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'getNode', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetNode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'getNode');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'nodeKey');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'from');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::plainArray
|
||||
* @todo Implement testplainArray().
|
||||
*/
|
||||
public function testplainArray()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'plainArray', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testplainArray()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('plainArray', $methods ), 'exists method plainArray' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'plainArray');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'array');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlDomain::arrayAppend
|
||||
* @todo Implement testarrayAppend().
|
||||
*/
|
||||
public function testarrayAppend()
|
||||
{
|
||||
if (class_exists('ymlDomain')) {
|
||||
$methods = get_class_methods( 'ymlDomain');
|
||||
$this->assertTrue( in_array( 'arrayAppend', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testarrayAppend()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' );
|
||||
$r = new ReflectionMethod('ymlDomain', 'arrayAppend');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'to');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'appendFrom');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,85 +1,195 @@
|
||||
<?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.ymlTestCases.php';
|
||||
<?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.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
|
||||
* @todo Implement testymlTestCases().
|
||||
*/
|
||||
public function testymlTestCases()
|
||||
{
|
||||
if (class_exists('ymlTestCases')) {
|
||||
$methods = get_class_methods( 'ymlTestCases');
|
||||
$this->assertTrue( in_array( 'ymlTestCases', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testymlTestCases()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('ymlTestCases', $methods ), 'exists method ymlTestCases' );
|
||||
$r = new ReflectionMethod('ymlTestCases', 'ymlTestCases');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'testCaseFile');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'testDomain');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'testLime');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlTestCases::load
|
||||
* @todo Implement testload().
|
||||
*/
|
||||
public function testload()
|
||||
{
|
||||
if (class_exists('ymlTestCases')) {
|
||||
$methods = get_class_methods( 'ymlTestCases');
|
||||
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
|
||||
$r = new ReflectionMethod('ymlTestCases', 'load');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'inputTestCasesIndex');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'TestCases');
|
||||
$this->assertTrue( $params[1]->getName() == 'fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlTestCases::addToPlan
|
||||
* @todo Implement testaddToPlan().
|
||||
*/
|
||||
public function testaddToPlan()
|
||||
{
|
||||
if (class_exists('ymlTestCases')) {
|
||||
$methods = get_class_methods( 'ymlTestCases');
|
||||
$this->assertTrue( in_array( 'addToPlan', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddToPlan()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addToPlan', $methods ), 'exists method addToPlan' );
|
||||
$r = new ReflectionMethod('ymlTestCases', 'addToPlan');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'count');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '-1');
|
||||
$this->assertTrue( $params[1]->getName() == 'start');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlTestCases::run
|
||||
* @todo Implement testrun().
|
||||
*/
|
||||
public function testrun()
|
||||
{
|
||||
if (class_exists('ymlTestCases')) {
|
||||
$methods = get_class_methods( 'ymlTestCases');
|
||||
$this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrun()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('run', $methods ), 'exists method run' );
|
||||
$r = new ReflectionMethod('ymlTestCases', 'run');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'testerObject');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[2]->getName() == 'count');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '-1');
|
||||
$this->assertTrue( $params[3]->getName() == 'start');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlTestCases::runSingle
|
||||
* @todo Implement testrunSingle().
|
||||
*/
|
||||
public function testrunSingle()
|
||||
{
|
||||
if (class_exists('ymlTestCases')) {
|
||||
$methods = get_class_methods( 'ymlTestCases');
|
||||
$this->assertTrue( in_array( 'runSingle', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrunSingle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('runSingle', $methods ), 'exists method runSingle' );
|
||||
$r = new ReflectionMethod('ymlTestCases', 'runSingle');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'testerObject');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ymlTestCases::runMultiple
|
||||
* @todo Implement testrunMultiple().
|
||||
*/
|
||||
public function testrunMultiple()
|
||||
{
|
||||
if (class_exists('ymlTestCases')) {
|
||||
$methods = get_class_methods( 'ymlTestCases');
|
||||
$this->assertTrue( in_array( 'runMultiple', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrunMultiple()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('runMultiple', $methods ), 'exists method runMultiple' );
|
||||
$r = new ReflectionMethod('ymlTestCases', 'runMultiple');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'testerObject');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[2]->getName() == 'count');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '-1');
|
||||
$this->assertTrue( $params[3]->getName() == 'start');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,75 +1,208 @@
|
||||
<?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.applications.php';
|
||||
<?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.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 . '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
|
||||
* @todo Implement testgetAll().
|
||||
*/
|
||||
public function testgetAll()
|
||||
{
|
||||
if (class_exists('Applications')) {
|
||||
$methods = get_class_methods( 'Applications');
|
||||
$this->assertTrue( in_array( 'getAll', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAll()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAll', $methods ), 'exists method getAll' );
|
||||
$r = new ReflectionMethod('Applications', 'getAll');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'userUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'start');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'limit');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'action');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'filter');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'search');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[6]->getName() == 'process');
|
||||
$this->assertTrue( $params[6]->isArray() == false);
|
||||
$this->assertTrue( $params[6]->isOptional () == true);
|
||||
$this->assertTrue( $params[6]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[7]->getName() == 'user');
|
||||
$this->assertTrue( $params[7]->isArray() == false);
|
||||
$this->assertTrue( $params[7]->isOptional () == true);
|
||||
$this->assertTrue( $params[7]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[8]->getName() == 'status');
|
||||
$this->assertTrue( $params[8]->isArray() == false);
|
||||
$this->assertTrue( $params[8]->isOptional () == true);
|
||||
$this->assertTrue( $params[8]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[9]->getName() == 'type');
|
||||
$this->assertTrue( $params[9]->isArray() == false);
|
||||
$this->assertTrue( $params[9]->isOptional () == true);
|
||||
$this->assertTrue( $params[9]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[10]->getName() == 'dateFrom');
|
||||
$this->assertTrue( $params[10]->isArray() == false);
|
||||
$this->assertTrue( $params[10]->isOptional () == true);
|
||||
$this->assertTrue( $params[10]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[11]->getName() == 'dateTo');
|
||||
$this->assertTrue( $params[11]->isArray() == false);
|
||||
$this->assertTrue( $params[11]->isOptional () == true);
|
||||
$this->assertTrue( $params[11]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[12]->getName() == 'callback');
|
||||
$this->assertTrue( $params[12]->isArray() == false);
|
||||
$this->assertTrue( $params[12]->isOptional () == true);
|
||||
$this->assertTrue( $params[12]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[13]->getName() == 'dir');
|
||||
$this->assertTrue( $params[13]->isArray() == false);
|
||||
$this->assertTrue( $params[13]->isOptional () == true);
|
||||
$this->assertTrue( $params[13]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[14]->getName() == 'sort');
|
||||
$this->assertTrue( $params[14]->isArray() == false);
|
||||
$this->assertTrue( $params[14]->isOptional () == true);
|
||||
$this->assertTrue( $params[14]->getDefaultValue() == 'APP_CACHE_VIEW.APP_NUMBER');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Applications::setDefaultFields
|
||||
* @todo Implement testsetDefaultFields().
|
||||
*/
|
||||
public function testsetDefaultFields()
|
||||
{
|
||||
if (class_exists('Applications')) {
|
||||
$methods = get_class_methods( 'Applications');
|
||||
$this->assertTrue( in_array( 'setDefaultFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetDefaultFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setDefaultFields', $methods ), 'exists method setDefaultFields' );
|
||||
$r = new ReflectionMethod('Applications', 'setDefaultFields');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Applications::getDefaultFields
|
||||
* @todo Implement testgetDefaultFields().
|
||||
*/
|
||||
public function testgetDefaultFields()
|
||||
{
|
||||
if (class_exists('Applications')) {
|
||||
$methods = get_class_methods( 'Applications');
|
||||
$this->assertTrue( in_array( 'getDefaultFields', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetDefaultFields()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getDefaultFields', $methods ), 'exists method getDefaultFields' );
|
||||
$r = new ReflectionMethod('Applications', 'getDefaultFields');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'action');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Applications::genericJsonResponse
|
||||
* @todo Implement testgenericJsonResponse().
|
||||
*/
|
||||
public function testgenericJsonResponse()
|
||||
{
|
||||
if (class_exists('Applications')) {
|
||||
$methods = get_class_methods( 'Applications');
|
||||
$this->assertTrue( in_array( 'genericJsonResponse', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgenericJsonResponse()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('genericJsonResponse', $methods ), 'exists method genericJsonResponse' );
|
||||
$r = new ReflectionMethod('Applications', 'genericJsonResponse');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'pmtable');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'first');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'second');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'rowsperpage');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->assertTrue( $params[4]->getName() == 'dateFormat');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Applications::getSteps
|
||||
* @todo Implement testgetSteps().
|
||||
*/
|
||||
public function testgetSteps()
|
||||
{
|
||||
if (class_exists('Applications')) {
|
||||
$methods = get_class_methods( 'Applications');
|
||||
$this->assertTrue( in_array( 'getSteps', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetSteps()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getSteps', $methods ), 'exists method getSteps' );
|
||||
$r = new ReflectionMethod('Applications', 'getSteps');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'appUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'index');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'tasUid');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'proUid');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,171 +1,293 @@
|
||||
<?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.cli.php';
|
||||
<?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.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 . '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
|
||||
* @todo Implement testtaskName().
|
||||
*/
|
||||
public function testtaskName()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'taskName', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtaskName()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('taskName', $methods ), 'exists method taskName' );
|
||||
$r = new ReflectionMethod('CLI', 'taskName');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::taskDescription
|
||||
* @todo Implement testtaskDescription().
|
||||
*/
|
||||
public function testtaskDescription()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'taskDescription', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtaskDescription()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('taskDescription', $methods ), 'exists method taskDescription' );
|
||||
$r = new ReflectionMethod('CLI', 'taskDescription');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'description');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::taskArg
|
||||
* @todo Implement testtaskArg().
|
||||
*/
|
||||
public function testtaskArg()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'taskArg', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtaskArg()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('taskArg', $methods ), 'exists method taskArg' );
|
||||
$r = new ReflectionMethod('CLI', 'taskArg');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'optional');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '1');
|
||||
$this->assertTrue( $params[2]->getName() == 'multiple');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::taskOpt
|
||||
* @todo Implement testtaskOpt().
|
||||
*/
|
||||
public function testtaskOpt()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'taskOpt', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtaskOpt()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('taskOpt', $methods ), 'exists method taskOpt' );
|
||||
$r = new ReflectionMethod('CLI', 'taskOpt');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'name');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'description');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'short');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'long');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::taskRun
|
||||
* @todo Implement testtaskRun().
|
||||
*/
|
||||
public function testtaskRun()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'taskRun', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testtaskRun()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('taskRun', $methods ), 'exists method taskRun' );
|
||||
$r = new ReflectionMethod('CLI', 'taskRun');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'function');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::help
|
||||
* @todo Implement testhelp().
|
||||
*/
|
||||
public function testhelp()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'help', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testhelp()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('help', $methods ), 'exists method help' );
|
||||
$r = new ReflectionMethod('CLI', 'help');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'args');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'opts');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::run
|
||||
* @todo Implement testrun().
|
||||
*/
|
||||
public function testrun()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'run', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testrun()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('run', $methods ), 'exists method run' );
|
||||
$r = new ReflectionMethod('CLI', 'run');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::info
|
||||
* @todo Implement testinfo().
|
||||
*/
|
||||
public function testinfo()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'info', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testinfo()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('info', $methods ), 'exists method info' );
|
||||
$r = new ReflectionMethod('CLI', 'info');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::warning
|
||||
* @todo Implement testwarning().
|
||||
*/
|
||||
public function testwarning()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'warning', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testwarning()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('warning', $methods ), 'exists method warning' );
|
||||
$r = new ReflectionMethod('CLI', 'warning');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::error
|
||||
* @todo Implement testerror().
|
||||
*/
|
||||
public function testerror()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'error', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testerror()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('error', $methods ), 'exists method error' );
|
||||
$r = new ReflectionMethod('CLI', 'error');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::prompt
|
||||
* @todo Implement testprompt().
|
||||
*/
|
||||
public function testprompt()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'prompt', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprompt()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('prompt', $methods ), 'exists method prompt' );
|
||||
$r = new ReflectionMethod('CLI', 'prompt');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::question
|
||||
* @todo Implement testquestion().
|
||||
*/
|
||||
public function testquestion()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'question', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testquestion()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('question', $methods ), 'exists method question' );
|
||||
$r = new ReflectionMethod('CLI', 'question');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers CLI::logging
|
||||
* @todo Implement testlogging().
|
||||
*/
|
||||
public function testlogging()
|
||||
{
|
||||
if (class_exists('CLI')) {
|
||||
$methods = get_class_methods( 'CLI');
|
||||
$this->assertTrue( in_array( 'logging', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testlogging()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('logging', $methods ), 'exists method logging' );
|
||||
$r = new ReflectionMethod('CLI', 'logging');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'message');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'filename');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,207 +1,430 @@
|
||||
<?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.configuration.php';
|
||||
<?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.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 . '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
|
||||
* @todo Implement testConfigurations().
|
||||
*/
|
||||
public function testConfigurations()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'Configurations', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testConfigurations()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Configurations', $methods ), 'exists method Configurations' );
|
||||
$r = new ReflectionMethod('Configurations', 'Configurations');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::arrayClone
|
||||
* @todo Implement testarrayClone().
|
||||
*/
|
||||
public function testarrayClone()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'arrayClone', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testarrayClone()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('arrayClone', $methods ), 'exists method arrayClone' );
|
||||
$r = new ReflectionMethod('Configurations', 'arrayClone');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'object');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'cloneObject');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::configObject
|
||||
* @todo Implement testconfigObject().
|
||||
*/
|
||||
public function testconfigObject()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'configObject', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testconfigObject()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('configObject', $methods ), 'exists method configObject' );
|
||||
$r = new ReflectionMethod('Configurations', 'configObject');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'object');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'from');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::loadConfig
|
||||
* @todo Implement testloadConfig().
|
||||
*/
|
||||
public function testloadConfig()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'loadConfig', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testloadConfig()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('loadConfig', $methods ), 'exists method loadConfig' );
|
||||
$r = new ReflectionMethod('Configurations', 'loadConfig');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'object');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'cfg');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'obj');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'pro');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'usr');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'app');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::load
|
||||
* @todo Implement testload().
|
||||
*/
|
||||
public function testload()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
|
||||
$r = new ReflectionMethod('Configurations', 'load');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'cfg');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'obj');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'pro');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'usr');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'app');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::saveConfig
|
||||
* @todo Implement testsaveConfig().
|
||||
*/
|
||||
public function testsaveConfig()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'saveConfig', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsaveConfig()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('saveConfig', $methods ), 'exists method saveConfig' );
|
||||
$r = new ReflectionMethod('Configurations', 'saveConfig');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'cfg');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'obj');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'pro');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'usr');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'app');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::saveObject
|
||||
* @todo Implement testsaveObject().
|
||||
*/
|
||||
public function testsaveObject()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'saveObject', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsaveObject()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('saveObject', $methods ), 'exists method saveObject' );
|
||||
$r = new ReflectionMethod('Configurations', 'saveObject');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'object');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'cfg');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'obj');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'pro');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'usr');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[5]->getName() == 'app');
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::loadObject
|
||||
* @todo Implement testloadObject().
|
||||
*/
|
||||
public function testloadObject()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'loadObject', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testloadObject()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('loadObject', $methods ), 'exists method loadObject' );
|
||||
$r = new ReflectionMethod('Configurations', 'loadObject');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'cfg');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'obj');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'pro');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'usr');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'app');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::getConfiguration
|
||||
* @todo Implement testgetConfiguration().
|
||||
*/
|
||||
public function testgetConfiguration()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'getConfiguration', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetConfiguration()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getConfiguration', $methods ), 'exists method getConfiguration' );
|
||||
$r = new ReflectionMethod('Configurations', 'getConfiguration');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'cfg');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'obj');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'pro');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[3]->getName() == 'usr');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[4]->getName() == 'app');
|
||||
$this->assertTrue( $params[4]->isArray() == false);
|
||||
$this->assertTrue( $params[4]->isOptional () == true);
|
||||
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::usersNameFormat
|
||||
* @todo Implement testusersNameFormat().
|
||||
*/
|
||||
public function testusersNameFormat()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'usersNameFormat', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testusersNameFormat()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('usersNameFormat', $methods ), 'exists method usersNameFormat' );
|
||||
$r = new ReflectionMethod('Configurations', 'usersNameFormat');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'username');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'firstname');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'lastname');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::getFormats
|
||||
* @todo Implement testgetFormats().
|
||||
*/
|
||||
public function testgetFormats()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'getFormats', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetFormats()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getFormats', $methods ), 'exists method getFormats' );
|
||||
$r = new ReflectionMethod('Configurations', 'getFormats');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::setConfig
|
||||
* @todo Implement testsetConfig().
|
||||
*/
|
||||
public function testsetConfig()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'setConfig', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetConfig()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setConfig', $methods ), 'exists method setConfig' );
|
||||
$r = new ReflectionMethod('Configurations', 'setConfig');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'route');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'object');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'to');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::getDateFormats
|
||||
* @todo Implement testgetDateFormats().
|
||||
*/
|
||||
public function testgetDateFormats()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'getDateFormats', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetDateFormats()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getDateFormats', $methods ), 'exists method getDateFormats' );
|
||||
$r = new ReflectionMethod('Configurations', 'getDateFormats');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::getUserNameFormats
|
||||
* @todo Implement testgetUserNameFormats().
|
||||
*/
|
||||
public function testgetUserNameFormats()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'getUserNameFormats', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetUserNameFormats()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getUserNameFormats', $methods ), 'exists method getUserNameFormats' );
|
||||
$r = new ReflectionMethod('Configurations', 'getUserNameFormats');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::getSystemDate
|
||||
* @todo Implement testgetSystemDate().
|
||||
*/
|
||||
public function testgetSystemDate()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'getSystemDate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetSystemDate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getSystemDate', $methods ), 'exists method getSystemDate' );
|
||||
$r = new ReflectionMethod('Configurations', 'getSystemDate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'dateTime');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configurations::getEnvSetting
|
||||
* @todo Implement testgetEnvSetting().
|
||||
*/
|
||||
public function testgetEnvSetting()
|
||||
{
|
||||
if (class_exists('Configurations')) {
|
||||
$methods = get_class_methods( 'Configurations');
|
||||
$this->assertTrue( in_array( 'getEnvSetting', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetEnvSetting()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getEnvSetting', $methods ), 'exists method getEnvSetting' );
|
||||
$r = new ReflectionMethod('Configurations', 'getEnvSetting');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'key');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'data');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,171 +1,291 @@
|
||||
<?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.derivation.php';
|
||||
<?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.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 . '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
|
||||
* @todo Implement testprepareInformation().
|
||||
*/
|
||||
public function testprepareInformation()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'prepareInformation', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testprepareInformation()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('prepareInformation', $methods ), 'exists method prepareInformation' );
|
||||
$r = new ReflectionMethod('Derivation', 'prepareInformation');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aData');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::getRouteCondition
|
||||
* @todo Implement testgetRouteCondition().
|
||||
*/
|
||||
public function testgetRouteCondition()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'getRouteCondition', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetRouteCondition()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getRouteCondition', $methods ), 'exists method getRouteCondition' );
|
||||
$r = new ReflectionMethod('Derivation', 'getRouteCondition');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aData');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::GetAppParentIndex
|
||||
* @todo Implement testGetAppParentIndex().
|
||||
*/
|
||||
public function testGetAppParentIndex()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'GetAppParentIndex', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testGetAppParentIndex()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('GetAppParentIndex', $methods ), 'exists method GetAppParentIndex' );
|
||||
$r = new ReflectionMethod('Derivation', 'GetAppParentIndex');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aData');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::getAllUsersFromAnyTask
|
||||
* @todo Implement testgetAllUsersFromAnyTask().
|
||||
*/
|
||||
public function testgetAllUsersFromAnyTask()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'getAllUsersFromAnyTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAllUsersFromAnyTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAllUsersFromAnyTask', $methods ), 'exists method getAllUsersFromAnyTask' );
|
||||
$r = new ReflectionMethod('Derivation', 'getAllUsersFromAnyTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTasUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::getUsersFullNameFromArray
|
||||
* @todo Implement testgetUsersFullNameFromArray().
|
||||
*/
|
||||
public function testgetUsersFullNameFromArray()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'getUsersFullNameFromArray', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetUsersFullNameFromArray()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getUsersFullNameFromArray', $methods ), 'exists method getUsersFullNameFromArray' );
|
||||
$r = new ReflectionMethod('Derivation', 'getUsersFullNameFromArray');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aUsers');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::getNextAssignedUser
|
||||
* @todo Implement testgetNextAssignedUser().
|
||||
*/
|
||||
public function testgetNextAssignedUser()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'getNextAssignedUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetNextAssignedUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getNextAssignedUser', $methods ), 'exists method getNextAssignedUser' );
|
||||
$r = new ReflectionMethod('Derivation', 'getNextAssignedUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tasInfo');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::getDenpendentUser
|
||||
* @todo Implement testgetDenpendentUser().
|
||||
*/
|
||||
public function testgetDenpendentUser()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'getDenpendentUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetDenpendentUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getDenpendentUser', $methods ), 'exists method getDenpendentUser' );
|
||||
$r = new ReflectionMethod('Derivation', 'getDenpendentUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'USR_UID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::setTasLastAssigned
|
||||
* @todo Implement testsetTasLastAssigned().
|
||||
*/
|
||||
public function testsetTasLastAssigned()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'setTasLastAssigned', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testsetTasLastAssigned()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setTasLastAssigned', $methods ), 'exists method setTasLastAssigned' );
|
||||
$r = new ReflectionMethod('Derivation', 'setTasLastAssigned');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'tasUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'usrUid');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::derivate
|
||||
* @todo Implement testderivate().
|
||||
*/
|
||||
public function testderivate()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'derivate', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testderivate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('derivate', $methods ), 'exists method derivate' );
|
||||
$r = new ReflectionMethod('Derivation', 'derivate');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'currentDelegation');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[1]->getName() == 'nextDelegations');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::doDerivation
|
||||
* @todo Implement testdoDerivation().
|
||||
*/
|
||||
public function testdoDerivation()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'doDerivation', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdoDerivation()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('doDerivation', $methods ), 'exists method doDerivation' );
|
||||
$r = new ReflectionMethod('Derivation', 'doDerivation');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'currentDelegation');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'nextDel');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'appFields');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->assertTrue( $params[3]->getName() == 'aSP');
|
||||
$this->assertTrue( $params[3]->isArray() == false);
|
||||
$this->assertTrue( $params[3]->isOptional () == true);
|
||||
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::verifyIsCaseChild
|
||||
* @todo Implement testverifyIsCaseChild().
|
||||
*/
|
||||
public function testverifyIsCaseChild()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'verifyIsCaseChild', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testverifyIsCaseChild()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('verifyIsCaseChild', $methods ), 'exists method verifyIsCaseChild' );
|
||||
$r = new ReflectionMethod('Derivation', 'verifyIsCaseChild');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::getDerivatedCases
|
||||
* @todo Implement testgetDerivatedCases().
|
||||
*/
|
||||
public function testgetDerivatedCases()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'getDerivatedCases', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetDerivatedCases()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getDerivatedCases', $methods ), 'exists method getDerivatedCases' );
|
||||
$r = new ReflectionMethod('Derivation', 'getDerivatedCases');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sParentUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sDelIndexParent');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Derivation::getGrpUser
|
||||
* @todo Implement testgetGrpUser().
|
||||
*/
|
||||
public function testgetGrpUser()
|
||||
{
|
||||
if (class_exists('Derivation')) {
|
||||
$methods = get_class_methods( 'Derivation');
|
||||
$this->assertTrue( in_array( 'getGrpUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetGrpUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getGrpUser', $methods ), 'exists method getGrpUser' );
|
||||
$r = new ReflectionMethod('Derivation', 'getGrpUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aData');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,75 +1,139 @@
|
||||
<?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.dynaFormField.php';
|
||||
<?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.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 . '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
|
||||
* @todo Implement testSetTo().
|
||||
*/
|
||||
public function testSetTo()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testSetTo()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('SetTo', $methods ), 'exists method SetTo' );
|
||||
$r = new ReflectionMethod('DynaFormField', 'SetTo');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'objConnection');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::Load
|
||||
* @todo Implement testLoad().
|
||||
*/
|
||||
public function testLoad()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testLoad()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Load', $methods ), 'exists method Load' );
|
||||
$r = new ReflectionMethod('DynaFormField', 'Load');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::Delete
|
||||
* @todo Implement testDelete().
|
||||
*/
|
||||
public function testDelete()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'Delete', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testDelete()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Delete', $methods ), 'exists method Delete' );
|
||||
$r = new ReflectionMethod('DynaFormField', 'Delete');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'uid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::Save
|
||||
* @todo Implement testSave().
|
||||
*/
|
||||
public function testSave()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'Save', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testSave()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('Save', $methods ), 'exists method Save' );
|
||||
$r = new ReflectionMethod('DynaFormField', 'Save');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'Fields');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'labels');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[2]->getName() == 'options');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::isNew
|
||||
* @todo Implement testisNew().
|
||||
*/
|
||||
public function testisNew()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'isNew', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testisNew()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('isNew', $methods ), 'exists method isNew' );
|
||||
$r = new ReflectionMethod('DynaFormField', 'isNew');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,219 +1,356 @@
|
||||
<?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.groups.php';
|
||||
<?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.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 . '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
|
||||
* @todo Implement testgetUsersOfGroup().
|
||||
*/
|
||||
public function testgetUsersOfGroup()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getUsersOfGroup', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetUsersOfGroup()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getUsersOfGroup', $methods ), 'exists method getUsersOfGroup' );
|
||||
$r = new ReflectionMethod('Groups', 'getUsersOfGroup');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getActiveGroupsForAnUser
|
||||
* @todo Implement testgetActiveGroupsForAnUser().
|
||||
*/
|
||||
public function testgetActiveGroupsForAnUser()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getActiveGroupsForAnUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetActiveGroupsForAnUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getActiveGroupsForAnUser', $methods ), 'exists method getActiveGroupsForAnUser' );
|
||||
$r = new ReflectionMethod('Groups', 'getActiveGroupsForAnUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::addUserToGroup
|
||||
* @todo Implement testaddUserToGroup().
|
||||
*/
|
||||
public function testaddUserToGroup()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'addUserToGroup', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testaddUserToGroup()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('addUserToGroup', $methods ), 'exists method addUserToGroup' );
|
||||
$r = new ReflectionMethod('Groups', 'addUserToGroup');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'GrpUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'UsrUid');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::removeUserOfGroup
|
||||
* @todo Implement testremoveUserOfGroup().
|
||||
*/
|
||||
public function testremoveUserOfGroup()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'removeUserOfGroup', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testremoveUserOfGroup()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('removeUserOfGroup', $methods ), 'exists method removeUserOfGroup' );
|
||||
$r = new ReflectionMethod('Groups', 'removeUserOfGroup');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'GrpUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'UsrUid');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getAllGroups
|
||||
* @todo Implement testgetAllGroups().
|
||||
*/
|
||||
public function testgetAllGroups()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getAllGroups', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAllGroups()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAllGroups', $methods ), 'exists method getAllGroups' );
|
||||
$r = new ReflectionMethod('Groups', 'getAllGroups');
|
||||
$params = $r->getParameters();
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getUserGroups
|
||||
* @todo Implement testgetUserGroups().
|
||||
*/
|
||||
public function testgetUserGroups()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getUserGroups', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetUserGroups()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getUserGroups', $methods ), 'exists method getUserGroups' );
|
||||
$r = new ReflectionMethod('Groups', 'getUserGroups');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getAvailableGroupsCriteria
|
||||
* @todo Implement testgetAvailableGroupsCriteria().
|
||||
*/
|
||||
public function testgetAvailableGroupsCriteria()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getAvailableGroupsCriteria', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAvailableGroupsCriteria()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAvailableGroupsCriteria', $methods ), 'exists method getAvailableGroupsCriteria' );
|
||||
$r = new ReflectionMethod('Groups', 'getAvailableGroupsCriteria');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'filter');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getAssignedGroupsCriteria
|
||||
* @todo Implement testgetAssignedGroupsCriteria().
|
||||
*/
|
||||
public function testgetAssignedGroupsCriteria()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getAssignedGroupsCriteria', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAssignedGroupsCriteria()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAssignedGroupsCriteria', $methods ), 'exists method getAssignedGroupsCriteria' );
|
||||
$r = new ReflectionMethod('Groups', 'getAssignedGroupsCriteria');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'filter');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getGroupsForUser
|
||||
* @todo Implement testgetGroupsForUser().
|
||||
*/
|
||||
public function testgetGroupsForUser()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getGroupsForUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetGroupsForUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getGroupsForUser', $methods ), 'exists method getGroupsForUser' );
|
||||
$r = new ReflectionMethod('Groups', 'getGroupsForUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'usrUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::removeUserOfAllGroups
|
||||
* @todo Implement testremoveUserOfAllGroups().
|
||||
*/
|
||||
public function testremoveUserOfAllGroups()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'removeUserOfAllGroups', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testremoveUserOfAllGroups()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('removeUserOfAllGroups', $methods ), 'exists method removeUserOfAllGroups' );
|
||||
$r = new ReflectionMethod('Groups', 'removeUserOfAllGroups');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getUsersGroupCriteria
|
||||
* @todo Implement testgetUsersGroupCriteria().
|
||||
*/
|
||||
public function testgetUsersGroupCriteria()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getUsersGroupCriteria', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetUsersGroupCriteria()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getUsersGroupCriteria', $methods ), 'exists method getUsersGroupCriteria' );
|
||||
$r = new ReflectionMethod('Groups', 'getUsersGroupCriteria');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getUserGroupsCriteria
|
||||
* @todo Implement testgetUserGroupsCriteria().
|
||||
*/
|
||||
public function testgetUserGroupsCriteria()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getUserGroupsCriteria', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetUserGroupsCriteria()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getUserGroupsCriteria', $methods ), 'exists method getUserGroupsCriteria' );
|
||||
$r = new ReflectionMethod('Groups', 'getUserGroupsCriteria');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getNumberGroups
|
||||
* @todo Implement testgetNumberGroups().
|
||||
*/
|
||||
public function testgetNumberGroups()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getNumberGroups', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetNumberGroups()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getNumberGroups', $methods ), 'exists method getNumberGroups' );
|
||||
$r = new ReflectionMethod('Groups', 'getNumberGroups');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::getAvailableUsersCriteria
|
||||
* @todo Implement testgetAvailableUsersCriteria().
|
||||
*/
|
||||
public function testgetAvailableUsersCriteria()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'getAvailableUsersCriteria', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAvailableUsersCriteria()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAvailableUsersCriteria', $methods ), 'exists method getAvailableUsersCriteria' );
|
||||
$r = new ReflectionMethod('Groups', 'getAvailableUsersCriteria');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::verifyUsertoGroup
|
||||
* @todo Implement testverifyUsertoGroup().
|
||||
*/
|
||||
public function testverifyUsertoGroup()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'verifyUsertoGroup', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testverifyUsertoGroup()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('verifyUsertoGroup', $methods ), 'exists method verifyUsertoGroup' );
|
||||
$r = new ReflectionMethod('Groups', 'verifyUsertoGroup');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'GrpUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'UsrUid');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::verifyGroup
|
||||
* @todo Implement testverifyGroup().
|
||||
*/
|
||||
public function testverifyGroup()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'verifyGroup', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testverifyGroup()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('verifyGroup', $methods ), 'exists method verifyGroup' );
|
||||
$r = new ReflectionMethod('Groups', 'verifyGroup');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sGroupUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Groups::load
|
||||
* @todo Implement testload().
|
||||
*/
|
||||
public function testload()
|
||||
{
|
||||
if (class_exists('Groups')) {
|
||||
$methods = get_class_methods( 'Groups');
|
||||
$this->assertTrue( in_array( 'load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testload()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('load', $methods ), 'exists method load' );
|
||||
$r = new ReflectionMethod('Groups', 'load');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'GrpUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user