X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=34467b7607c75bda6490621e85f660561f56980f;hb=0649d2c3934f5b9548bea32e2d17aa830104162d;hp=7201b6e6316c108035f5c987feedb22886ce413d;hpb=befc2af5043a3afde251721c0d27df695db1bb7e;p=friendica.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7201b6e631..34467b7607 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -24,6 +24,12 @@ 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);