fixing all automated test units
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,12 +45,13 @@ class classuploadDocumentDataTest 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('uploadDocumentData'); $this->assertTrue( count($methods) == 1);
|
||||
$methods = get_class_methods('uploadDocumentData');
|
||||
$this->assertTrue( count($methods) == 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,6 +83,6 @@ class classuploadDocumentDataTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue( $params[5]->isArray() == false);
|
||||
$this->assertTrue( $params[5]->isOptional () == true);
|
||||
$this->assertTrue( $params[5]->getDefaultValue() == '1');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user