X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=bf95252f106e4008a2fcaabbf7ab5cbd48077980;hb=2280f5294522de9283b40235a407389a8593dc56;hp=a839dbed73c832fcfa8ab773bc154a6fd1b251a0;hpb=f8c0f24e34e124ab782d5dcf3d2d658d70e19e5c;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a839dbed73..bf95252f10 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,11 +1,35 @@ . + * * This file is loaded by PHPUnit before any test. */ +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); } + +$dice = new Dice(); +$dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php'); + +DI::init($dice);