Update DataSet classes to match recent phpunit/dbunit versions
This commit is contained in:
parent
9ca9c024c6
commit
943a1704be
phpunit/lib
|
@ -5,6 +5,8 @@
|
||||||
*/
|
*/
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use PHPUnit\DbUnit\TestCaseTrait;
|
use PHPUnit\DbUnit\TestCaseTrait;
|
||||||
|
use PHPUnit\DbUnit\DataSet\YamlDataSet;
|
||||||
|
use PHPUnit\DbUnit\DataSet\CompositeDataSet;
|
||||||
|
|
||||||
abstract class AlterncTest extends TestCase
|
abstract class AlterncTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -40,10 +42,10 @@ abstract class AlterncTest extends TestCase
|
||||||
if( !is_file($file) ){
|
if( !is_file($file) ){
|
||||||
throw new \Exception("missing $file");
|
throw new \Exception("missing $file");
|
||||||
}
|
}
|
||||||
$dataSet = new PHPUnit_Extensions_Database_DataSet_YamlDataSet($file);
|
$dataSet = new YamlDataSet($file);
|
||||||
$datasetList[] = $dataSet;
|
$datasetList[] = $dataSet;
|
||||||
}
|
}
|
||||||
$compositeDataSet = new PHPUnit_Extensions_Database_DataSet_CompositeDataSet($datasetList);
|
$compositeDataSet = new CompositeDataSet($datasetList);
|
||||||
return $dataSet;
|
return $dataSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue