@@ -92,11 +92,20 @@ public function testUncaughtException(): void {
* Tests displaying an uncaught fatal error.
*/
publicfunctiontestUncaughtFatalError():void{
if(PHP_VERSION_ID>=80400){
$fatal_error=[
'%type'=>'TypeError',
'@message'=>'Drupal\error_test\Controller\ErrorTestController::{closure:Drupal\error_test\Controller\ErrorTestController::generateFatalErrors():64}(): Argument #1 ($test) must be of type array, string given, called in '.\Drupal::root().'/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php on line 67',
'@message'=>'Drupal\error_test\Controller\ErrorTestController::Drupal\error_test\Controller\{closure}(): Argument #1 ($test) must be of type array, string given, called in '.\Drupal::root().'/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php on line 67',
$this->expectedExceptionMessage='Drupal\FunctionalTests\Bootstrap\ErrorContainer::Drupal\FunctionalTests\Bootstrap\{closure}(): Argument #1 ($container) must be of type Drupal\FunctionalTests\Bootstrap\ErrorContainer';
'Drupal\FunctionalTests\Bootstrap\ErrorContainer::{closure:Drupal\FunctionalTests\Bootstrap\ErrorContainer::get():21}(): Argument #1 ($container) must be of type Drupal\FunctionalTests\Bootstrap\ErrorContainer':
'Drupal\FunctionalTests\Bootstrap\ErrorContainer::Drupal\FunctionalTests\Bootstrap\{closure}(): Argument #1 ($container) must be of type Drupal\FunctionalTests\Bootstrap\ErrorContainer';