Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
migrate_plus
Commits
09d6efbb
Commit
09d6efbb
authored
Jun 29, 2020
by
heddn
Browse files
backout some of phpunit deprecations so phpunit 7 can still be run in Drupal 8
parent
145aee65
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/src/Kernel/Plugin/migrate_plus/data_parser/SimpleXmlTest.php
View file @
09d6efbb
...
...
@@ -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
->
expectExceptionMessage
Matches
(
'/^Fatal Error 7[0-9]/'
);
$this
->
expectExceptionMessage
RegExp
(
'/^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
->
expectExceptionMessage
Matches
(
'/^Fatal Error 76/'
);
$this
->
expectExceptionMessage
RegExp
(
'/^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
->
expectExceptionMessage
Matches
(
'/^Fatal Error 46/'
);
$this
->
expectExceptionMessage
RegExp
(
'/^Fatal Error 46/'
);
$parser
=
$this
->
pluginManager
->
createInstance
(
'simple_xml'
,
$this
->
configuration
);
$parser
->
next
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment