adding phpunit, and updating the phpunit.xml

This commit is contained in:
Fernando Ontiveros
2012-07-12 20:42:56 -04:00
parent dd88abc53b
commit dcc1754ecf
9 changed files with 1541 additions and 91 deletions

View File

@@ -12,7 +12,10 @@
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="ProcessMaker Test Suite">
<testsuite name="automated">
<directory>./tests/automated/</directory>
</testsuite>
<testsuite name="unit">
<directory>./tests/unit/</directory>
</testsuite>
</testsuites>
@@ -27,9 +30,11 @@
</exclude>
</whitelist>
</filter> -->
<php>
<var name="SYS_SYS" value="os" />
<var name="SYS_LANG" value="en" />
<var name="SYS_SKIN" value="classic" />
</php>
<logging>
@@ -38,5 +43,5 @@
lowUpperBound="10" highLowerBound="20"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
</logging>
</logging>
</phpunit>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,84 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.AppSolr.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:32.
*/
class classApplicationWithoutDelegationRecordsExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var ApplicationWithoutDelegationRecordsException
*/
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 ApplicationWithoutDelegationRecordsException();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* 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);
}
/**
* @covers ApplicationWithoutDelegationRecordsException::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('ApplicationWithoutDelegationRecordsException', '__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->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers ApplicationWithoutDelegationRecordsException::__toString
* @todo Implement test__toString().
*/
public function test__toString()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__toString', $methods ), 'exists method __toString' );
$r = new ReflectionMethod('ApplicationWithoutDelegationRecordsException', '__toString');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -0,0 +1,258 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.solr.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:38.
*/
class classBpmnEngine_SearchIndexAccess_SolrTest extends PHPUnit_Framework_TestCase
{
/**
* @var BpmnEngine_SearchIndexAccess_Solr
*/
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 BpmnEngine_SearchIndexAccess_Solr();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$this->assertTrue( count($methods) == 12);
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'solrIsEnabled');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'solrHost');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::isEnabled
* @todo Implement testisEnabled().
*/
public function testisEnabled()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('isEnabled', $methods ), 'exists method isEnabled' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'isEnabled');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::getNumberDocuments
* @todo Implement testgetNumberDocuments().
*/
public function testgetNumberDocuments()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getNumberDocuments', $methods ), 'exists method getNumberDocuments' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'getNumberDocuments');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::executeQuery
* @todo Implement testexecuteQuery().
*/
public function testexecuteQuery()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('executeQuery', $methods ), 'exists method executeQuery' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'executeQuery');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'solrRequestData');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::updateDocument
* @todo Implement testupdateDocument().
*/
public function testupdateDocument()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('updateDocument', $methods ), 'exists method updateDocument' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'updateDocument');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'solrUpdateDocument');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::commitChanges
* @todo Implement testcommitChanges().
*/
public function testcommitChanges()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('commitChanges', $methods ), 'exists method commitChanges' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'commitChanges');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::rollbackChanges
* @todo Implement testrollbackChanges().
*/
public function testrollbackChanges()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('rollbackChanges', $methods ), 'exists method rollbackChanges' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'rollbackChanges');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::optimizeChanges
* @todo Implement testoptimizeChanges().
*/
public function testoptimizeChanges()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('optimizeChanges', $methods ), 'exists method optimizeChanges' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'optimizeChanges');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::getListIndexedStoredFields
* @todo Implement testgetListIndexedStoredFields().
*/
public function testgetListIndexedStoredFields()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getListIndexedStoredFields', $methods ), 'exists method getListIndexedStoredFields' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'getListIndexedStoredFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::deleteAllDocuments
* @todo Implement testdeleteAllDocuments().
*/
public function testdeleteAllDocuments()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('deleteAllDocuments', $methods ), 'exists method deleteAllDocuments' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'deleteAllDocuments');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::deleteDocument
* @todo Implement testdeleteDocument().
*/
public function testdeleteDocument()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('deleteDocument', $methods ), 'exists method deleteDocument' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'deleteDocument');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'idQuery');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_SearchIndexAccess_Solr::getFacetsList
* @todo Implement testgetFacetsList().
*/
public function testgetFacetsList()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getFacetsList', $methods ), 'exists method getFacetsList' );
$r = new ReflectionMethod('BpmnEngine_SearchIndexAccess_Solr', 'getFacetsList');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'facetRequest');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -0,0 +1,207 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.searchIndex.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:38.
*/
class classBpmnEngine_Services_SearchIndexTest extends PHPUnit_Framework_TestCase
{
/**
* @var BpmnEngine_Services_SearchIndex
*/
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 BpmnEngine_Services_SearchIndex();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* This is the default method to test, if the class still having
* the same number of methods.
*/
public function testNumberOfMethodsInThisClass()
{
$this->assertTrue( count($methods) == 9);
}
/**
* @covers BpmnEngine_Services_SearchIndex::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'solrIsEnabled');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == '');
$this->assertTrue( $params[1]->getName() == 'solrHost');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::isEnabled
* @todo Implement testisEnabled().
*/
public function testisEnabled()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('isEnabled', $methods ), 'exists method isEnabled' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'isEnabled');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::getFacetsList
* @todo Implement testgetFacetsList().
*/
public function testgetFacetsList()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getFacetsList', $methods ), 'exists method getFacetsList' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'getFacetsList');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'facetRequestEntity');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::getNumberDocuments
* @todo Implement testgetNumberDocuments().
*/
public function testgetNumberDocuments()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getNumberDocuments', $methods ), 'exists method getNumberDocuments' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'getNumberDocuments');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::updateIndexDocument
* @todo Implement testupdateIndexDocument().
*/
public function testupdateIndexDocument()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('updateIndexDocument', $methods ), 'exists method updateIndexDocument' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'updateIndexDocument');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'solrUpdateDocumentEntity');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::deleteDocumentFromIndex
* @todo Implement testdeleteDocumentFromIndex().
*/
public function testdeleteDocumentFromIndex()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('deleteDocumentFromIndex', $methods ), 'exists method deleteDocumentFromIndex' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'deleteDocumentFromIndex');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'idQuery');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::commitIndexChanges
* @todo Implement testcommitIndexChanges().
*/
public function testcommitIndexChanges()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('commitIndexChanges', $methods ), 'exists method commitIndexChanges' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'commitIndexChanges');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::getDataTablePaginatedList
* @todo Implement testgetDataTablePaginatedList().
*/
public function testgetDataTablePaginatedList()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getDataTablePaginatedList', $methods ), 'exists method getDataTablePaginatedList' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'getDataTablePaginatedList');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'solrRequestData');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers BpmnEngine_Services_SearchIndex::getIndexFields
* @todo Implement testgetIndexFields().
*/
public function testgetIndexFields()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getIndexFields', $methods ), 'exists method getIndexFields' );
$r = new ReflectionMethod('BpmnEngine_Services_SearchIndex', 'getIndexFields');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'workspace');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -0,0 +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.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.fileCache.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:38.
*/
class classFileCacheTest extends PHPUnit_Framework_TestCase
{
/**
* @var FileCache
*/
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 FileCache();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* 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);
}
/**
* @covers FileCache::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('FileCache', '__construct');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'dir');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers FileCache::get
* @todo Implement testget().
*/
public function testget()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('get', $methods ), 'exists method get' );
$r = new ReflectionMethod('FileCache', 'get');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'key');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'expiration');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == '3600');
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers FileCache::set
* @todo Implement testset().
*/
public function testset()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('set', $methods ), 'exists method set' );
$r = new ReflectionMethod('FileCache', 'set');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'key');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->assertTrue( $params[1]->getName() == 'data');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers FileCache::clear
* @todo Implement testclear().
*/
public function testclear()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('clear', $methods ), 'exists method clear' );
$r = new ReflectionMethod('FileCache', 'clear');
$params = $r->getParameters();
$this->assertTrue( $params[0]->getName() == 'key');
$this->assertTrue( $params[0]->isArray() == false);
$this->assertTrue( $params[0]->isOptional () == false);
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -0,0 +1,84 @@
<?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'workflow/engine/classes/class.AppSolr.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:32.
*/
class classInvalidIndexSearchTextExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var InvalidIndexSearchTextException
*/
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 InvalidIndexSearchTextException();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* 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);
}
/**
* @covers InvalidIndexSearchTextException::__construct
* @todo Implement test__construct().
*/
public function test__construct()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
$r = new ReflectionMethod('InvalidIndexSearchTextException', '__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->markTestIncomplete('This test has not been implemented yet.');
}
/**
* @covers InvalidIndexSearchTextException::__toString
* @todo Implement test__toString().
*/
public function test__toString()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('__toString', $methods ), 'exists method __toString' );
$r = new ReflectionMethod('InvalidIndexSearchTextException', '__toString');
$params = $r->getParameters();
$this->markTestIncomplete('This test has not been implemented yet.');
}
}

View File

@@ -13,6 +13,8 @@ define('PATH_TRUNK', realpath(__DIR__ . '/../') . PATH_SEP);
define('PATH_HOME', PATH_TRUNK . 'workflow' . PATH_SEP);
define('SYS_SYS', $GLOBALS['SYS_SYS']);
define('SYS_LANG', $GLOBALS['SYS_LANG']);
define('SYS_SKIN', $GLOBALS['SYS_SKIN']);
require PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php';

File diff suppressed because it is too large Load Diff