php units for all classes
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
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.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user