Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
AlterncTest Class Reference

This is the abstract class for all tests. More...

+ Inheritance diagram for AlterncTest:

Public Member Functions

 getConnection ()
 loadDataSet ($file_name)

Detailed Description

This is the abstract class for all tests.

See Also
http://phpunit.de/manual/

Definition at line 6 of file AlterncTest.php.

Member Function Documentation

loadDataSet (   $file_name)
Parameters
type$file_name
Returns
Exceptions
\Exception

Definition at line 24 of file AlterncTest.php.

References PHPUNIT_DATASETS_PATH.

Referenced by m_variablesTest\getDataSet(), m_actionTest\getDataSet(), m_actionTest\testPurge(), and m_variablesTest\testVariable_update().

{
$file = PHPUNIT_DATASETS_PATH."/$file_name";
if( !is_file($file) ){
throw new \Exception("missing $file");
}
$dataSet = new PHPUnit_Extensions_Database_DataSet_YamlDataSet($file);
return $dataSet;
}

The documentation for this class was generated from the following file: