createDefaultDBConnection($pdo); } /** * * @param type $file_name * @return \PHPUnit_Extensions_Database_DataSet_YamlDataSet * @throws \Exception */ public function loadDataSet($file_name) { $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; } }