From 06965b823e185bfa1ba1c1612f69f917cad20785 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 17 Oct 2023 12:17:20 +0800 Subject: [PATCH] MDL-79739 core: Only run some tests in separate processes --- lib/tests/component_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests/component_test.php b/lib/tests/component_test.php index bdf3638973a..7704e6d06d2 100644 --- a/lib/tests/component_test.php +++ b/lib/tests/component_test.php @@ -23,7 +23,6 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * * @covers \core_component - * @runTestsInSeparateProcesses */ class component_test extends advanced_testcase { @@ -602,6 +601,7 @@ class component_test extends advanced_testcase { * @param array $psr4 The PSR-4 namespaces to be used in the test. * @param string $classname The name of the class to attempt to load. * @param string $includedfiles The file expected to be loaded. + * @runInSeparateProcess */ public function test_classloader($psr0, $psr4, $classname, $includedfiles) { $psr0namespaces = new ReflectionProperty('core_component', 'psr0namespaces'); @@ -713,6 +713,7 @@ class component_test extends advanced_testcase { * @param array $psr4 The PSR-4 namespaces to be used in the test. * @param string $classname The name of the class to attempt to load. * @param string|bool $file The expected file corresponding to the class or false for nonexistant. + * @runInSeparateProcess */ public function test_psr_classloader($psr0, $psr4, $classname, $file) { $psr0namespaces = new ReflectionProperty('core_component', 'psr0namespaces');