From 9058926600c353cc4ba202345f9b8f78feb7520d Mon Sep 17 00:00:00 2001 From: Mathieu Date: Wed, 4 Oct 2023 15:33:07 +0200 Subject: [PATCH] Set `PHPUNIT_COMPOSER_INSTALL` before requiring the autoloader so it can access it (#794) --- bin/phpunit-wrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/phpunit-wrapper.php b/bin/phpunit-wrapper.php index 73e47ea8..9af18075 100644 --- a/bin/phpunit-wrapper.php +++ b/bin/phpunit-wrapper.php @@ -25,8 +25,8 @@ foreach ($composerAutoloadFiles as $file) { if (file_exists($file)) { - require_once $file; define('PHPUNIT_COMPOSER_INSTALL', $file); + require_once $file; break; }