Skip to content

Commit e29922f

Browse files
committed
Fix test cases for libxml2 2.9.10
Since the error reporting has been slightly changed, we have to adapt the two affected test cases.
1 parent 5f6eaf3 commit e29922f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/dom/tests/DOMDocument_loadXML_error1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ domdocumentloadxml_test_method.php
2121
--EXPECTF--
2222
Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s
2323

24-
Warning: DOMDocument::load%r(XML){0,1}%r(): expected '>' %s
24+
Warning: DOMDocument::load%r(XML){0,1}%r(): %rexpected '>'|Opening and ending tag mismatch: book line 5 and books%r %s
2525

26-
Warning: DOMDocument::load%r(XML){0,1}%r(): Premature end of data in tag books %s
26+
Warning: DOMDocument::load%r(XML){0,1}%r(): %rPremature end of data in tag books|EndTag: '<\/' not found in Entity, line: 13%r %s

ext/dom/tests/DOMDocument_load_error1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ domdocumentload_test_method.php
2121
--EXPECTF--
2222
Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s
2323

24-
Warning: DOMDocument::load%r(XML){0,1}%r(): expected '>' %s
24+
Warning: DOMDocument::load%r(XML){0,1}%r(): %rexpected '>'|Opening and ending tag mismatch: book line 5 and books%r %s
2525

26-
Warning: DOMDocument::load%r(XML){0,1}%r(): Premature end of data in tag books %s
26+
Warning: DOMDocument::load%r(XML){0,1}%r(): %rPremature end of data in tag books|EndTag: '<\/' not found%r %s

0 commit comments

Comments
 (0)