From 7419804e54d953c3e972ea9edf031cc6c1d3a178 Mon Sep 17 00:00:00 2001 From: Mathieu Lechat Date: Wed, 4 Oct 2023 15:31:14 +0200 Subject: [PATCH] Set `PHPUNIT_COMPOSER_INSTALL` before requiring the autoloader so it can access it --- 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 c5478c39..5ef61238 100644 --- a/bin/phpunit-wrapper.php +++ b/bin/phpunit-wrapper.php @@ -15,8 +15,8 @@ foreach ($composerAutoloadFiles as $file) { if (file_exists($file)) { - require_once $file; define('PHPUNIT_COMPOSER_INSTALL', $file); + require_once $file; break; }