diff --git a/core/tests/bootstrap.php b/core/tests/bootstrap.php index e80381e..626f4ba 100644 --- a/core/tests/bootstrap.php +++ b/core/tests/bootstrap.php @@ -81,7 +81,9 @@ function drupal_phpunit_get_extension_namespaces($dirs) { } // We define the COMPOSER_INSTALL constant, so that PHPUnit knows where to -// autoload from. This is needed for tests run in isolation mode. +// autoload from. This is needed for tests run in isolation mode, because +// phpunit.xml.dist is located in a non-default directory relative to the +// PHPUnit executable. if (!defined('PHPUNIT_COMPOSER_INSTALL')) { define('PHPUNIT_COMPOSER_INSTALL', __DIR__ . '/../../autoload.php'); }