X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fbootstrap.php;h=b034b092beccbc80bee7841f480538cc4b9ea2d0;hb=f5a3f8039df2031397cf236ab54b37b991c028be;hp=7201b6e6316c108035f5c987feedb22886ce413d;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7201b6e631..b034b092be 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -24,9 +24,15 @@ use Dice\Dice; use Friendica\DI; 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); } $dice = new Dice();