*/ public const array FILES = [ 'Runner/Filter/NameFilterIterator.php', 'Runner/ResultCache/DefaultResultCache.php', 'Runner/TestSuiteLoader.php', 'TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php', 'TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php', 'TextUI/TestSuiteFilterProcessor.php', 'Event/Value/ThrowableBuilder.php', 'Logging/JUnit/JunitXmlLogger.php', ]; /** * Boots the list of files to be overridden. */ public function boot(): void { foreach (self::FILES as $file) { $file = __DIR__."/../../overrides/$file"; if (! file_exists($file)) { throw ShouldNotHappen::fromMessage(sprintf('File [%s] does not exist.', $file)); } require_once $file; } } }