6 use PHPUnit\Framework\TestCase;
7 use PHPUnit\DbUnit\TestCaseTrait;
8 use PHPUnit\DbUnit\DataSet\YamlDataSet;
9 use PHPUnit\DbUnit\DataSet\CompositeDataSet;
22 return $this->createDefaultDBConnection($pdo);
33 if (empty($fileList)) {
34 throw new \Exception(
"No files specified");
36 if( !is_array($fileList)){
37 $fileList = array($fileList);
39 $datasetList = array();
40 foreach ($fileList as $file_name) {
42 if( !is_file($file) ){
43 throw new \Exception(
"missing $file");
45 $dataSet =
new YamlDataSet($file);
46 $datasetList[] = $dataSet;
48 $compositeDataSet =
new CompositeDataSet($datasetList);
foreach(array(ALTERNC_MAIL, ALTERNC_HTML, ALTERNC_LOGS) as $crdir) $database
const PHPUNIT_DATASETS_PATH