fixing all automated test units
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
<var name="DB_NAME" value="wf_os" />
|
||||
<var name="DB_USER" value="root" />
|
||||
<var name="DB_PASS" value="password" />
|
||||
<var name="PATH_DB" value="tests/shared/" />
|
||||
<var name="PATH_DATA" value="tests/shared/" />
|
||||
</php>
|
||||
|
||||
<logging>
|
||||
|
||||
@@ -44,8 +44,9 @@ class classPMExceptionTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('PMException');
|
||||
$this->assertTrue( count($methods) == 8);
|
||||
$class = new ReflectionClass('PMException');
|
||||
$methods = $class->getMethods();
|
||||
$this->assertTrue( count($methods) == 10);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,10 @@ class classAppSolrTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new AppSolr();
|
||||
$SolrEnabled = false;
|
||||
$SolrHost = 'localhost';
|
||||
$SolrInstance = '';
|
||||
$this->object = new AppSolr($SolrEnabled, $SolrHost, $SolrInstance);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +46,8 @@ class classAppSolrTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('AppSolr'); $this->assertTrue( count($methods) == 25);
|
||||
$methods = get_class_methods('AppSolr');
|
||||
$this->assertTrue( count($methods) == 25);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,8 +43,9 @@ class classApplicationWithoutDelegationRecordsExceptionTest extends PHPUnit_Fram
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('ApplicationWithoutDelegationRecordsException');
|
||||
$this->assertTrue( count($methods) == 8);
|
||||
$class = new ReflectionClass('ApplicationWithoutDelegationRecordsException');
|
||||
$methods = $class->getMethods();
|
||||
$this->assertTrue( count($methods) == 10);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,8 +43,9 @@ class classInvalidIndexSearchTextExceptionTest extends PHPUnit_Framework_TestCas
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('InvalidIndexSearchTextException');
|
||||
$this->assertTrue( count($methods) == 8);
|
||||
$class = new ReflectionClass('ApplicationWithoutDelegationRecordsException');
|
||||
$methods = $class->getMethods();
|
||||
$this->assertTrue( count($methods) == 10);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,8 @@ class classXMLConnectionTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new XMLConnection();
|
||||
$file = PATH_TRUNK . 'workflow/engine/xmlform/login/login.xml';
|
||||
$this->object = new XMLConnection($file);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +44,8 @@ class classXMLConnectionTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('XMLConnection'); $this->assertTrue( count($methods) == 11);
|
||||
$methods = get_class_methods('XMLConnection');
|
||||
$this->assertTrue( count($methods) == 11);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,7 +43,9 @@ class classXMLResultTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('XMLResult'); $this->assertTrue( count($methods) == 3);
|
||||
$class = new ReflectionClass('ApplicationWithoutDelegationRecordsException');
|
||||
$methods = $class->getMethods();
|
||||
$this->assertTrue( count($methods) == 10);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,7 +61,7 @@ class classXMLResultTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[0]->getName() == 'result');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == 'Array');
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == Array());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,10 @@ class classcalendarTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new calendar();
|
||||
$userUid = '';
|
||||
$proUid = '';
|
||||
$tasUid = '';
|
||||
//$this->object = new calendar($userUid, $proUid, $tasUid);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +46,8 @@ class classcalendarTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('calendar'); $this->assertTrue( count($methods) == 56);
|
||||
$methods = get_class_methods('calendar');
|
||||
$this->assertTrue( count($methods) == 56);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,7 +56,8 @@ class classcalendarTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testcalendar()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('calendar');
|
||||
$this->assertTrue( in_array('calendar', $methods ), 'exists method calendar' );
|
||||
$r = new ReflectionMethod('calendar', 'calendar');
|
||||
$params = $r->getParameters();
|
||||
@@ -76,7 +81,8 @@ class classcalendarTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testaddCalendarLog()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('calendar');
|
||||
$this->assertTrue( in_array('addCalendarLog', $methods ), 'exists method addCalendarLog' );
|
||||
$r = new ReflectionMethod('calendar', 'addCalendarLog');
|
||||
$params = $r->getParameters();
|
||||
@@ -91,7 +97,8 @@ class classcalendarTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testsetupCalendar()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('calendar');
|
||||
$this->assertTrue( in_array('setupCalendar', $methods ), 'exists method setupCalendar' );
|
||||
$r = new ReflectionMethod('calendar', 'setupCalendar');
|
||||
$params = $r->getParameters();
|
||||
@@ -112,7 +119,8 @@ class classcalendarTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testgetNextValidBusinessHoursRange()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('calendar');
|
||||
$this->assertTrue( in_array('getNextValidBusinessHoursRange', $methods ), 'exists method getNextValidBusinessHoursRange' );
|
||||
$r = new ReflectionMethod('calendar', 'getNextValidBusinessHoursRange');
|
||||
$params = $r->getParameters();
|
||||
|
||||
@@ -26,7 +26,12 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new dynaformEditorAjax();
|
||||
$post = '';
|
||||
$_SERVER['REQUEST_URI'] = '';
|
||||
//disabling the instance of this method,
|
||||
//because it is calling Headers, and there is no way
|
||||
//to phpunit avoid the headers for the moment.
|
||||
//$this->object = new dynaformEditorAjax($post);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +48,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('dynaformEditorAjax'); $this->assertTrue( count($methods) == 28);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( count($methods) == 28);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,7 +58,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testdynaformEditorAjax()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('dynaformEditorAjax', $methods ), 'exists method dynaformEditorAjax' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'dynaformEditorAjax');
|
||||
$params = $r->getParameters();
|
||||
@@ -67,7 +74,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function test_run()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('_run', $methods ), 'exists method _run' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', '_run');
|
||||
$params = $r->getParameters();
|
||||
@@ -82,7 +90,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testrender_preview()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('render_preview', $methods ), 'exists method render_preview' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'render_preview');
|
||||
$params = $r->getParameters();
|
||||
@@ -97,7 +106,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testrender_htmledit()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('render_htmledit', $methods ), 'exists method render_htmledit' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'render_htmledit');
|
||||
$params = $r->getParameters();
|
||||
@@ -112,7 +122,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testget_htmlcode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('get_htmlcode', $methods ), 'exists method get_htmlcode' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'get_htmlcode');
|
||||
$params = $r->getParameters();
|
||||
@@ -127,7 +138,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testrestore_html()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('restore_html', $methods ), 'exists method restore_html' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'restore_html');
|
||||
$params = $r->getParameters();
|
||||
@@ -142,7 +154,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testset_htmlcode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('set_htmlcode', $methods ), 'exists method set_htmlcode' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'set_htmlcode');
|
||||
$params = $r->getParameters();
|
||||
@@ -160,7 +173,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testget_xmlcode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('get_xmlcode', $methods ), 'exists method get_xmlcode' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'get_xmlcode');
|
||||
$params = $r->getParameters();
|
||||
@@ -175,7 +189,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testset_xmlcode()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('set_xmlcode', $methods ), 'exists method set_xmlcode' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'set_xmlcode');
|
||||
$params = $r->getParameters();
|
||||
@@ -193,7 +208,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testget_javascripts()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('get_javascripts', $methods ), 'exists method get_javascripts' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'get_javascripts');
|
||||
$params = $r->getParameters();
|
||||
@@ -211,7 +227,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testset_javascript()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('set_javascript', $methods ), 'exists method set_javascript' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'set_javascript');
|
||||
$params = $r->getParameters();
|
||||
@@ -236,7 +253,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testget_properties()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('get_properties', $methods ), 'exists method get_properties' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'get_properties');
|
||||
$params = $r->getParameters();
|
||||
@@ -254,7 +272,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testset_properties()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('set_properties', $methods ), 'exists method set_properties' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'set_properties');
|
||||
$params = $r->getParameters();
|
||||
@@ -275,7 +294,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testget_enabletemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('get_enabletemplate', $methods ), 'exists method get_enabletemplate' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'get_enabletemplate');
|
||||
$params = $r->getParameters();
|
||||
@@ -290,7 +310,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testset_enabletemplate()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('set_enabletemplate', $methods ), 'exists method set_enabletemplate' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'set_enabletemplate');
|
||||
$params = $r->getParameters();
|
||||
@@ -308,7 +329,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testsave()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('save', $methods ), 'exists method save' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'save');
|
||||
$params = $r->getParameters();
|
||||
@@ -326,7 +348,8 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testclose()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('close', $methods ), 'exists method close' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'close');
|
||||
$params = $r->getParameters();
|
||||
@@ -338,10 +361,12 @@ class classdynaformEditorAjaxTest extends PHPUnit_Framework_TestCase
|
||||
/**
|
||||
* @covers dynaformEditorAjax::is_modified
|
||||
* @todo Implement testis_modified().
|
||||
* @ run InSeparateProcess
|
||||
*/
|
||||
public function testis_modified()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
//$methods = get_class_methods($this->object);
|
||||
$methods = get_class_methods('dynaformEditorAjax');
|
||||
$this->assertTrue( in_array('is_modified', $methods ), 'exists method is_modified' );
|
||||
$r = new ReflectionMethod('dynaformEditorAjax', 'is_modified');
|
||||
$params = $r->getParameters();
|
||||
|
||||
@@ -26,7 +26,9 @@ class classpopupMenuTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new popupMenu();
|
||||
$tableId = 'login/login';
|
||||
$tableFields = '';
|
||||
$this->object = new popupMenu($tableId, $tableFields);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +45,8 @@ class classpopupMenuTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('popupMenu'); $this->assertTrue( count($methods) == 14);
|
||||
$methods = get_class_methods('popupMenu');
|
||||
$this->assertTrue( count($methods) == 14);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,10 @@ class classredirectDetailTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new redirectDetail();
|
||||
$sNamespace = '';
|
||||
$sRoleCode = '';
|
||||
$sPathMethod = '';
|
||||
$this->object = new redirectDetail($sNamespace, $sRoleCode, $sPathMethod);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +46,8 @@ class classredirectDetailTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('redirectDetail'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('redirectDetail');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,10 @@ class classtriggerDetailTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new triggerDetail();
|
||||
$sNamespace = '';
|
||||
$sTriggerId = '';
|
||||
$sTriggerName = '';
|
||||
$this->object = new triggerDetail($sNamespace, $sTriggerId, $sTriggerName);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +46,8 @@ class classtriggerDetailTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('triggerDetail'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('triggerDetail');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,14 @@ class classuploadDocumentDataTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new uploadDocumentData();
|
||||
$sApplicationUid = '';
|
||||
$sUserUid = '';
|
||||
$sFilename = '';
|
||||
$sFileTitle = '';
|
||||
$sDocumentUid = '';
|
||||
$this->object = new uploadDocumentData($sApplicationUid,
|
||||
$sUserUid, $sFilename, $sFileTitle, $sDocumentUid);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +50,8 @@ class classuploadDocumentDataTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('uploadDocumentData'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('uploadDocumentData');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,7 @@ class classwsGetVariableResponseTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new wsGetVariableResponse();
|
||||
$this->object = new wsGetVariableResponse('status','message','variables');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +43,8 @@ class classwsGetVariableResponseTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('wsGetVariableResponse'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('wsGetVariableResponse');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,7 @@ class classzip_fileTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new zip_file();
|
||||
$this->object = new zip_file('filezip');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +43,8 @@ class classzip_fileTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('zip_file'); $this->assertTrue( count($methods) == 14);
|
||||
$methods = get_class_methods('zip_file');
|
||||
$this->assertTrue( count($methods) == 14);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,6 +20,8 @@ define('DB_NAME', $GLOBALS['DB_NAME']);
|
||||
define('DB_USER', $GLOBALS['DB_USER']);
|
||||
define('DB_PASS', $GLOBALS['DB_PASS']);
|
||||
define('DB_HOST', $GLOBALS['DB_HOST']);
|
||||
define('PATH_DB', $GLOBALS['PATH_DB']);
|
||||
define('PATH_DATA', $GLOBALS['PATH_DATA']);
|
||||
define('PATH_C', PATH_TRUNK . 'tmp/' );
|
||||
define('PATH_SMARTY_C', PATH_TRUNK . 'tmp/' );
|
||||
define('PATH_SMARTY_CACHE', PATH_TRUNK . 'tmp/' );
|
||||
|
||||
Reference in New Issue
Block a user