Loading core/phpstan-baseline.neon +0 −5 Original line number Diff line number Diff line Loading @@ -1675,11 +1675,6 @@ parameters: count: 5 path: tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php - message: "#^Parameter \\$template of method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:prepareTemplate\\(\\) has invalid type Text_Template\\.$#" count: 1 path: tests/Drupal/KernelTests/KernelTestBase.php - message: "#^Instantiated class Drupal\\\\KernelTests\\\\KernelMissingDependentModuleMethodTest not found\\.$#" count: 1 Loading core/tests/Drupal/KernelTests/KernelTestBase.php +0 −21 Original line number Diff line number Diff line Loading @@ -980,27 +980,6 @@ private static function getModulesToEnable($class) { return call_user_func_array('array_merge_recursive', $modules); } /** * {@inheritdoc} */ protected function prepareTemplate(\Text_Template $template) { $bootstrap_globals = ''; // Fix missing bootstrap.php when $preserveGlobalState is FALSE. // @see https://github.com/sebastianbergmann/phpunit/pull/797 $bootstrap_globals .= '$__PHPUNIT_BOOTSTRAP = ' . var_export($GLOBALS['__PHPUNIT_BOOTSTRAP'], TRUE) . ";\n"; // Avoid repetitive test namespace discoveries to improve performance. // @see /core/tests/bootstrap.php $bootstrap_globals .= '$namespaces = ' . var_export($GLOBALS['namespaces'], TRUE) . ";\n"; $template->setVar([ 'constants' => '', 'included_files' => '', 'globals' => $bootstrap_globals, ]); } /** * Prevents serializing any properties. * Loading Loading
core/phpstan-baseline.neon +0 −5 Original line number Diff line number Diff line Loading @@ -1675,11 +1675,6 @@ parameters: count: 5 path: tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php - message: "#^Parameter \\$template of method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:prepareTemplate\\(\\) has invalid type Text_Template\\.$#" count: 1 path: tests/Drupal/KernelTests/KernelTestBase.php - message: "#^Instantiated class Drupal\\\\KernelTests\\\\KernelMissingDependentModuleMethodTest not found\\.$#" count: 1 Loading
core/tests/Drupal/KernelTests/KernelTestBase.php +0 −21 Original line number Diff line number Diff line Loading @@ -980,27 +980,6 @@ private static function getModulesToEnable($class) { return call_user_func_array('array_merge_recursive', $modules); } /** * {@inheritdoc} */ protected function prepareTemplate(\Text_Template $template) { $bootstrap_globals = ''; // Fix missing bootstrap.php when $preserveGlobalState is FALSE. // @see https://github.com/sebastianbergmann/phpunit/pull/797 $bootstrap_globals .= '$__PHPUNIT_BOOTSTRAP = ' . var_export($GLOBALS['__PHPUNIT_BOOTSTRAP'], TRUE) . ";\n"; // Avoid repetitive test namespace discoveries to improve performance. // @see /core/tests/bootstrap.php $bootstrap_globals .= '$namespaces = ' . var_export($GLOBALS['namespaces'], TRUE) . ";\n"; $template->setVar([ 'constants' => '', 'included_files' => '', 'globals' => $bootstrap_globals, ]); } /** * Prevents serializing any properties. * Loading