X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=bf95252f106e4008a2fcaabbf7ab5cbd48077980;hb=2280f5294522de9283b40235a407389a8593dc56;hp=ada2b1a0ec6852af6cc387841ef464ce51077e1d;hpb=3bccaccede0c39b451e23bfdcdbdcadfd5368f53;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index ada2b1a0ec..bf95252f10 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,19 +1,35 @@ . + * * This file is loaded by PHPUnit before any test. */ -use PHPUnit\DbUnit\DataSet\YamlDataSet; -use PHPUnit\DbUnit\TestCaseTrait; +use Dice\Dice; +use Friendica\DI; use PHPUnit\Framework\TestCase; // Backward compatibility if (!class_exists(TestCase::class)) { class_alias(PHPUnit_Framework_TestCase::class, TestCase::class); } -if (!trait_exists(TestCaseTrait::class)) { - class_alias(PHPUnit_Extensions_Database_TestCase_Trait::class, TestCaseTrait::class); -} -if (!class_exists(YamlDataSet::class)) { - class_alias(PHPUnit_Extensions_Database_DataSet_YamlDataSet::class, YamlDataSet::class); -} + +$dice = new Dice(); +$dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php'); + +DI::init($dice);