X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=8b4b8ade1ebb473c0ff3ffe62f12fc55ee0de3c0;hb=f3ea4a4f45daa41d0aa032b1dc4804a5f6ff503c;hp=a839dbed73c832fcfa8ab773bc154a6fd1b251a0;hpb=36ba7fa79c7c2d4304f3423d84215771e3bb6a9f;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a839dbed73..8b4b8ade1e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -3,9 +3,16 @@ * 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);