From 09d6efbbd0b52098dd3dbced303f7da5c792f462 Mon Sep 17 00:00:00 2001 From: Lucas D Hedding <lucashedding@1463982.no-reply.drupal.org> Date: Mon, 29 Jun 2020 13:41:23 -0600 Subject: [PATCH] backout some of phpunit deprecations so phpunit 7 can still be run in Drupal 8 --- .../Plugin/migrate_plus/data_parser/SimpleXmlTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/Kernel/Plugin/migrate_plus/data_parser/SimpleXmlTest.php b/tests/src/Kernel/Plugin/migrate_plus/data_parser/SimpleXmlTest.php index 6505075a..a89ed669 100644 --- a/tests/src/Kernel/Plugin/migrate_plus/data_parser/SimpleXmlTest.php +++ b/tests/src/Kernel/Plugin/migrate_plus/data_parser/SimpleXmlTest.php @@ -132,7 +132,7 @@ class SimpleXmlTest extends KernelTestBase { $this->configuration['urls'][0] = $url; $this->expectException(MigrateException::class); // Newer versions of libxml mark it as an error 76, older ones as 73. - $this->expectExceptionMessageMatches('/^Fatal Error 7[0-9]/'); + $this->expectExceptionMessageRegExp('/^Fatal Error 7[0-9]/'); $parser = $this->pluginManager->createInstance('simple_xml', $this->configuration); $parser->next(); } @@ -147,7 +147,7 @@ class SimpleXmlTest extends KernelTestBase { $this->configuration['urls'][0] = $url; $this->expectException(MigrateException::class); - $this->expectExceptionMessageMatches('/^Fatal Error 76/'); + $this->expectExceptionMessageRegExp('/^Fatal Error 76/'); $parser = $this->pluginManager->createInstance('simple_xml', $this->configuration); $parser->next(); @@ -163,7 +163,7 @@ class SimpleXmlTest extends KernelTestBase { $this->configuration['urls'][0] = $url; $this->expectException(MigrateException::class); - $this->expectExceptionMessageMatches('/^Fatal Error 46/'); + $this->expectExceptionMessageRegExp('/^Fatal Error 46/'); $parser = $this->pluginManager->createInstance('simple_xml', $this->configuration); $parser->next(); } -- GitLab