X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=9f7c1c3f9195f0df55ee744b0f3c6144e85600d1;hb=858151807f5398c67d38ab3e50ddfd6e6b808810;hp=bf95252f106e4008a2fcaabbf7ab5cbd48077980;hpb=d09b3f5bdeae444f785f6283e55dbf2f61caadac;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index bf95252f10..9f7c1c3f91 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,6 +1,6 @@ addRules(include __DIR__ . '/../static/dependencies.config.php'); +require __DIR__ . '/../vendor/autoload.php'; -DI::init($dice); +// Backward compatibility +if (!class_exists(TestCase::class)) { + class_alias(\PHPUnit\Framework\TestCase::class, TestCase::class); +}