Merge remote branch 'upstream/master'
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
|
||||
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
|
||||
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
|
||||
@@ -43,7 +44,8 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('Installer'); $this->assertTrue( count($methods) == 11);
|
||||
$methods = get_class_methods('Installer');
|
||||
$this->assertTrue( count($methods) == 11);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -56,7 +58,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
||||
$r = new ReflectionMethod('Installer', '__construct');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::create_site
|
||||
@@ -71,12 +73,12 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'config');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == array());
|
||||
$this->assertTrue( $params[1]->getName() == 'confirmed');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::isset_site
|
||||
@@ -92,7 +94,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'workflow');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::set_admin
|
||||
@@ -104,7 +106,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('set_admin', $methods ), 'exists method set_admin' );
|
||||
$r = new ReflectionMethod('Installer', 'set_admin');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::query_sql_file
|
||||
@@ -122,7 +124,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'connection');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::file_permisions
|
||||
@@ -141,7 +143,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '777');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::is_dir_writable
|
||||
@@ -157,7 +159,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::getDirectoryFiles
|
||||
@@ -175,7 +177,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'extension');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::check_db_empty
|
||||
@@ -190,7 +192,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'dbName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::check_db
|
||||
@@ -205,7 +207,7 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'dbName');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Installer::log
|
||||
@@ -224,6 +226,6 @@ class classInstallerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,8 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new Jrml();
|
||||
$array = array('sql'=>'', 'type'=> array());
|
||||
$this->object = new Jrml($array);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +44,8 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('Jrml'); $this->assertTrue( count($methods) == 7);
|
||||
$methods = get_class_methods('Jrml');
|
||||
$this->assertTrue( count($methods) == 7);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,8 +61,8 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'data');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
}
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == array());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Jrml::get_md
|
||||
@@ -72,7 +74,7 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('get_md', $methods ), 'exists method get_md' );
|
||||
$r = new ReflectionMethod('Jrml', 'get_md');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Jrml::get_header
|
||||
@@ -84,7 +86,7 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('get_header', $methods ), 'exists method get_header' );
|
||||
$r = new ReflectionMethod('Jrml', 'get_header');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Jrml::get_column_header
|
||||
@@ -96,7 +98,7 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('get_column_header', $methods ), 'exists method get_column_header' );
|
||||
$r = new ReflectionMethod('Jrml', 'get_column_header');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Jrml::get_detail
|
||||
@@ -108,7 +110,7 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('get_detail', $methods ), 'exists method get_detail' );
|
||||
$r = new ReflectionMethod('Jrml', 'get_detail');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Jrml::get_footer
|
||||
@@ -120,7 +122,7 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('get_footer', $methods ), 'exists method get_footer' );
|
||||
$r = new ReflectionMethod('Jrml', 'get_footer');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Jrml::export
|
||||
@@ -132,6 +134,6 @@ class classJrmlTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('export', $methods ), 'exists method export' );
|
||||
$r = new ReflectionMethod('Jrml', 'export');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new PMmemcached();
|
||||
$this->object = new PMmemcached('workflow');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,12 +38,13 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('PMmemcached'); $this->assertTrue( count($methods) == 12);
|
||||
$methods = get_class_methods('PMmemcached');
|
||||
$this->assertTrue( count($methods) == 12);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,7 +60,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'workspace');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::getSingleton
|
||||
@@ -74,7 +75,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'workspace');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::__clone
|
||||
@@ -86,7 +87,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('__clone', $methods ), 'exists method __clone' );
|
||||
$r = new ReflectionMethod('PMmemcached', '__clone');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::__wakeup
|
||||
@@ -98,7 +99,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('__wakeup', $methods ), 'exists method __wakeup' );
|
||||
$r = new ReflectionMethod('PMmemcached', '__wakeup');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::set
|
||||
@@ -120,7 +121,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '0');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::get
|
||||
@@ -135,7 +136,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'key');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::add
|
||||
@@ -153,7 +154,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::increment
|
||||
@@ -171,7 +172,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'value');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::delete
|
||||
@@ -186,7 +187,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'key');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::flush
|
||||
@@ -198,7 +199,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('flush', $methods ), 'exists method flush' );
|
||||
$r = new ReflectionMethod('PMmemcached', 'flush');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::getStats
|
||||
@@ -210,7 +211,7 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('getStats', $methods ), 'exists method getStats' );
|
||||
$r = new ReflectionMethod('PMmemcached', 'getStats');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers PMmemcached::printDetails
|
||||
@@ -222,6 +223,6 @@ class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( in_array('printDetails', $methods ), 'exists method printDetails' );
|
||||
$r = new ReflectionMethod('PMmemcached', 'printDetails');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class classcssFileTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new cssFile();
|
||||
$this->object = new cssFile('sNamespace', 'sCssFile');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,12 +38,13 @@ class classcssFileTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('cssFile'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('cssFile');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,6 +63,6 @@ class classcssFileTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[1]->getName() == 'sCssFile');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class classmenuDetailTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new menuDetail();
|
||||
$this->object = new menuDetail('nameSpace', 'menuId', 'fileName');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +43,8 @@ class classmenuDetailTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('menuDetail'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('menuDetail');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,6 +66,6 @@ class classmenuDetailTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->getName() == 'sFilename');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
|
||||
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
|
||||
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
|
||||
@@ -11,19 +12,19 @@ require_once PATH_TRUNK . 'workflow/engine/classes/class.propelTable.php';
|
||||
|
||||
/**
|
||||
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:25.
|
||||
*/
|
||||
|
||||
*/
|
||||
class classpropelTableTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var propelTable
|
||||
*/
|
||||
*/
|
||||
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 propelTable();
|
||||
@@ -32,145 +33,147 @@ class classpropelTableTest extends PHPUnit_Framework_TestCase
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('propelTable'); $this->assertTrue( count($methods) == 8);
|
||||
$methods = get_class_methods('propelTable');
|
||||
$this->assertTrue(count($methods) == 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::prepareQuery
|
||||
* @todo Implement testprepareQuery().
|
||||
*/
|
||||
* @covers propelTable::prepareQuery
|
||||
* @todo Implement testprepareQuery().
|
||||
*/
|
||||
public function testprepareQuery()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('prepareQuery', $methods ), 'exists method prepareQuery' );
|
||||
$this->assertTrue(in_array('prepareQuery', $methods), 'exists method prepareQuery');
|
||||
$r = new ReflectionMethod('propelTable', 'prepareQuery');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'limitPage');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
}
|
||||
$this->assertTrue($params[0]->getName() == 'limitPage');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == true);
|
||||
$this->assertTrue($params[0]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::setupFromXmlform
|
||||
* @todo Implement testsetupFromXmlform().
|
||||
*/
|
||||
* @covers propelTable::setupFromXmlform
|
||||
* @todo Implement testsetupFromXmlform().
|
||||
*/
|
||||
public function testsetupFromXmlform()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('setupFromXmlform', $methods ), 'exists method setupFromXmlform' );
|
||||
$this->assertTrue(in_array('setupFromXmlform', $methods), 'exists method setupFromXmlform');
|
||||
$r = new ReflectionMethod('propelTable', 'setupFromXmlform');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'xmlForm');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
}
|
||||
$this->assertTrue($params[0]->getName() == 'xmlForm');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::count
|
||||
* @todo Implement testcount().
|
||||
*/
|
||||
* @covers propelTable::count
|
||||
* @todo Implement testcount().
|
||||
*/
|
||||
public function testcount()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('count', $methods ), 'exists method count' );
|
||||
$this->assertTrue(in_array('count', $methods), 'exists method count');
|
||||
$r = new ReflectionMethod('propelTable', 'count');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::renderTitle
|
||||
* @todo Implement testrenderTitle().
|
||||
*/
|
||||
* @covers propelTable::renderTitle
|
||||
* @todo Implement testrenderTitle().
|
||||
*/
|
||||
public function testrenderTitle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTitle', $methods ), 'exists method renderTitle' );
|
||||
$this->assertTrue(in_array('renderTitle', $methods), 'exists method renderTitle');
|
||||
$r = new ReflectionMethod('propelTable', 'renderTitle');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::renderField
|
||||
* @todo Implement testrenderField().
|
||||
*/
|
||||
* @covers propelTable::renderField
|
||||
* @todo Implement testrenderField().
|
||||
*/
|
||||
public function testrenderField()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderField', $methods ), 'exists method renderField' );
|
||||
$this->assertTrue(in_array('renderField', $methods), 'exists method renderField');
|
||||
$r = new ReflectionMethod('propelTable', 'renderField');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'row');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'r');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'result');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
}
|
||||
$this->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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::defaultStyle
|
||||
* @todo Implement testdefaultStyle().
|
||||
*/
|
||||
* @covers propelTable::defaultStyle
|
||||
* @todo Implement testdefaultStyle().
|
||||
*/
|
||||
public function testdefaultStyle()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('defaultStyle', $methods ), 'exists method defaultStyle' );
|
||||
$this->assertTrue(in_array('defaultStyle', $methods), 'exists method defaultStyle');
|
||||
$r = new ReflectionMethod('propelTable', 'defaultStyle');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
* @covers propelTable::renderTable
|
||||
* @todo Implement testrenderTable().
|
||||
*/
|
||||
public function testrenderTable()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('renderTable', $methods ), 'exists method renderTable' );
|
||||
$this->assertTrue(in_array('renderTable', $methods), 'exists method renderTable');
|
||||
$r = new ReflectionMethod('propelTable', 'renderTable');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'block');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'fields');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
}
|
||||
$this->assertTrue($params[0]->getName() == 'block');
|
||||
$this->assertTrue($params[0]->isArray() == false);
|
||||
$this->assertTrue($params[0]->isOptional() == true);
|
||||
$this->assertTrue($params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue($params[1]->getName() == 'fields');
|
||||
$this->assertTrue($params[1]->isArray() == false);
|
||||
$this->assertTrue($params[1]->isOptional() == true);
|
||||
$this->assertTrue($params[1]->getDefaultValue() == '');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers propelTable::printForm
|
||||
* @todo Implement testprintForm().
|
||||
*/
|
||||
* @covers propelTable::printForm
|
||||
* @todo Implement testprintForm().
|
||||
*/
|
||||
public function testprintForm()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('printForm', $methods ), 'exists method printForm' );
|
||||
$this->assertTrue(in_array('printForm', $methods), 'exists method printForm');
|
||||
$r = new ReflectionMethod('propelTable', 'printForm');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'filename');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'data');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
||||
}
|
||||
$this->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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,7 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new wsCreateDepartmentResponse();
|
||||
$this->object = new wsCreateDepartmentResponse('status', 'message', 'departmentUID');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +43,8 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('wsCreateDepartmentResponse'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('wsCreateDepartmentResponse');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,6 +66,6 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->getName() == 'departmentUID');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class classwsGetCaseNotesResponseTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new wsGetCaseNotesResponse();
|
||||
$this->object = new wsGetCaseNotesResponse(0, 'message', array());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,12 +38,13 @@ class classwsGetCaseNotesResponseTest extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the default method to test, if the class still having
|
||||
* This is the default method to test, if the class still having
|
||||
* the same number of methods.
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('wsGetCaseNotesResponse'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('wsGetCaseNotesResponse');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,6 +66,6 @@ class classwsGetCaseNotesResponseTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[2]->getName() == 'notes');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user