X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=9f7c1c3f9195f0df55ee744b0f3c6144e85600d1;hb=06a1db4f24bffbb6027f6341879345bde7212ecc;hp=a839dbed73c832fcfa8ab773bc154a6fd1b251a0;hpb=1de3960e267a8d298348fbca18cf1be1f6a20f7a;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a839dbed73..9f7c1c3f91 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,11 +1,34 @@ . + * * This file is loaded by PHPUnit before any test. */ use PHPUnit\Framework\TestCase; +if (!file_exists(__DIR__ . '/../vendor/autoload.php')) { + die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.'); +} + +require __DIR__ . '/../vendor/autoload.php'; + // Backward compatibility if (!class_exists(TestCase::class)) { - class_alias(PHPUnit_Framework_TestCase::class, TestCase::class); + class_alias(\PHPUnit\Framework\TestCase::class, TestCase::class); }