X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=9f7c1c3f9195f0df55ee744b0f3c6144e85600d1;hb=fad915cd29b3b9b03d9ccb7dd260167258ef6d14;hp=7201b6e6316c108035f5c987feedb22886ce413d;hpb=054c301ef0345c4ff9f35cfd08717757eab17b9d;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7201b6e631..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); +}