diff --git a/tests/_bootstrap.php b/tests/_bootstrap.php index fed1e7c9..50ca9a49 100644 --- a/tests/_bootstrap.php +++ b/tests/_bootstrap.php @@ -3,14 +3,14 @@ use Pimcore\Tests\Support\Util\Autoloader; -if (file_exists(__DIR__ . '/../vendor/autoload.php')) { - include __DIR__ . '/../vendor/autoload.php'; +if (file_exists(__DIR__ . '/../vendor/autoload_runtime.php')) { + include __DIR__ . '/../vendor/autoload_runtime.php'; $pimcoreTestDir = __DIR__ . '/../vendor/pimcore/pimcore/tests'; -} elseif (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) { - include __DIR__ . '/../../../../vendor/autoload.php'; +} elseif (file_exists(__DIR__ . '/../../../../vendor/autoload_runtime.php')) { + include __DIR__ . '/../../../../vendor/autoload_runtime.php'; $pimcoreTestDir = __DIR__ . '/../../../../vendor/pimcore/pimcore/tests'; -} elseif (getenv('PIMCORE_PROJECT_ROOT') != '' && file_exists(getenv('PIMCORE_PROJECT_ROOT') . '/vendor/autoload.php')) { - include getenv('PIMCORE_PROJECT_ROOT') . '/vendor/autoload.php'; +} elseif (getenv('PIMCORE_PROJECT_ROOT') != '' && file_exists(getenv('PIMCORE_PROJECT_ROOT') . '/vendor/autoload_runtime.php')) { + include getenv('PIMCORE_PROJECT_ROOT') . '/vendor/autoload_runtime.php'; $pimcoreTestDir = getenv('PIMCORE_PROJECT_ROOT') . '/vendor/pimcore/pimcore/tests'; } elseif (getenv('PIMCORE_PROJECT_ROOT') != '') { throw new \Exception('Invalid Pimcore project root "' . getenv('PIMCORE_PROJECT_ROOT') . '"');