Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
TestCaseDcp Class Reference
+ Inheritance diagram for TestCaseDcp:
+ Collaboration diagram for TestCaseDcp:

Public Member Functions

 importCsvData ($data)
 
 requiresCoreParamEquals ($paramName, $requiredValue, $markTestIncomplete=true)
 

Static Public Member Functions

static setUpBeforeClass ()
 
static log ($text)
 
static setIncludePath ($include_path)
 
static resetIncludePath ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 _DBGetValue ($sql)
 

Static Protected Member Functions

static beginTransaction ()
 
static rollbackTransaction ()
 
static connectUser ($login="admin")
 
static & getAction ()
 
static getApplication ()
 
static resetDocumentCache ()
 
static sudo ($login)
 
static exitSudo ()
 
static importDocument ($file)
 
static importDocuments ($fileList)
 

Static Protected Attributes

static $dbaccess
 
static $odb
 
static $user = null
 
static $include_path = null
 
static $testDirectory = "DCPTEST"
 
static $importCsvEnclosure = "auto"
 
static $importCsvSeparator = "auto"
 

Detailed Description

Definition at line 17 of file PU_testcase_dcp.php.

Member Function Documentation

_DBGetValue (   $sql)
protected

return a single value from DB

Parameters
string$sqla query with a single fields in from part
Returns
string

Definition at line 143 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

static beginTransaction ( )
staticprotected

Make a begin in the db

Returns
void

Definition at line 71 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

static connectUser (   $login = "admin")
staticprotected

Connect as a user

Parameters
string$loginlogin of the user
Returns
void

Definition at line 100 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

static exitSudo ( )
staticprotected

exit sudo

Returns
void

Definition at line 183 of file PU_testcase_dcp.php.

static& getAction ( )
staticprotected

Current action

Returns

Definition at line 112 of file PU_testcase_dcp.php.

static getApplication ( )
staticprotected

Current application

Returns

Definition at line 130 of file PU_testcase_dcp.php.

importCsvData (   $data)

Import CSV data

Parameters
string$dataCSV data
Exceptions
\Dcp\Exception

Definition at line 248 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

static importDocument (   $file)
staticprotected

Import a file document description

Parameters
string$filefile path
Returns
array
Exceptions
\Dcp\Exception

Definition at line 198 of file PU_testcase_dcp.php.

static importDocuments (   $fileList)
staticprotected

Import multiple files specified as a array list

Parameters
array$fileListlist of files to import
Returns
array

Definition at line 230 of file PU_testcase_dcp.php.

static log (   $text)
static

Definition at line 62 of file PU_testcase_dcp.php.

requiresCoreParamEquals (   $paramName,
  $requiredValue,
  $markTestIncomplete = true 
)

Mark test as incomplete (skip) if a core param is not equal to the required value.

Parameters
string$paramNamethe core parameter name
string$requiredValuethe required value
bool$markTestIncompleteautomatically calls the markTestIncomplete() method if the value is different
Returns
bool

Definition at line 295 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

static resetDocumentCache ( )
staticprotected

reset shared documents

Returns
void

Definition at line 154 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

static resetIncludePath ( )
static

Set back the original include_path INI parameter

Definition at line 280 of file PU_testcase_dcp.php.

static rollbackTransaction ( )
staticprotected

Make a rollback in the db

Returns
void

Definition at line 86 of file PU_testcase_dcp.php.

static setIncludePath (   $include_path)
static

Set the include_path INI parameter

Parameters
string$include_paththe new include_path to use

Definition at line 270 of file PU_testcase_dcp.php.

setUp ( )
protected

Definition at line 47 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

static setUpBeforeClass ( )
static

Definition at line 58 of file PU_testcase_dcp.php.

static sudo (   $login)
staticprotected

use another user

Parameters
string$login
Returns
Exceptions
\Dcp\Exception

Definition at line 165 of file PU_testcase_dcp.php.

tearDown ( )
protected

Definition at line 53 of file PU_testcase_dcp.php.

+ Here is the call graph for this function:

Field Documentation

$dbaccess
staticprotected

Definition at line 24 of file PU_testcase_dcp.php.

$importCsvEnclosure = "auto"
staticprotected

Definition at line 44 of file PU_testcase_dcp.php.

$importCsvSeparator = "auto"
staticprotected

Definition at line 45 of file PU_testcase_dcp.php.

$include_path = null
staticprotected

Store original include_path

Definition at line 40 of file PU_testcase_dcp.php.

$odb
staticprotected

Definition at line 30 of file PU_testcase_dcp.php.

$testDirectory = "DCPTEST"
staticprotected

Definition at line 42 of file PU_testcase_dcp.php.

$user = null
staticprotected

Definition at line 36 of file PU_testcase_dcp.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen