From 82543c846c591be086bd5ce5e2d08fe46b1b03ca Mon Sep 17 00:00:00 2001 From: Morgan Pichat Date: Tue, 13 Feb 2024 10:15:24 +0100 Subject: [PATCH] add condition for autoload --- tests/Integration/bootstrap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Integration/bootstrap.php b/tests/Integration/bootstrap.php index 7045d3c..61c5218 100644 --- a/tests/Integration/bootstrap.php +++ b/tests/Integration/bootstrap.php @@ -39,4 +39,6 @@ define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__, 4) . '/vendor/autoload.php'); } -require_once dirname(__DIR__, 2) . '/vendor/autoload.php'; +if (file_exists(dirname(__DIR__, 2) . '/vendor/autoload.php')) { + require_once dirname(__DIR__, 2) . '/vendor/autoload.php'; +}