From 8525d8466ad3470e01044adfcb42b4481bcdc250 Mon Sep 17 00:00:00 2001
From: Jake Dallimore
Date: Thu, 8 Mar 2018 11:39:42 +0800
Subject: [PATCH] MDL-38829 core: fix whitespace in xmlize test
---
lib/tests/sample_questions_wrong.xml | 2 --
lib/tests/xmlize_test.php | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/tests/sample_questions_wrong.xml b/lib/tests/sample_questions_wrong.xml
index 145d0a9a4a6..e62f4ca9db5 100644
--- a/lib/tests/sample_questions_wrong.xml
+++ b/lib/tests/sample_questions_wrong.xml
@@ -4,7 +4,6 @@
$course$/Default for Scratch/input_samples
-
@@ -15,7 +14,6 @@
Type in {@ta@}.
[[input:ans1]]
[[validation:ans1]]
]]>
-
1.0000000
diff --git a/lib/tests/xmlize_test.php b/lib/tests/xmlize_test.php
index e4e1f80a448..f6dceb49ab3 100644
--- a/lib/tests/xmlize_test.php
+++ b/lib/tests/xmlize_test.php
@@ -53,7 +53,7 @@ class core_xmlize_testcase extends basic_testcase {
public function test_xmlimport_of_wrong_file() {
$xml = file_get_contents(__DIR__ . '/sample_questions_wrong.xml');
$this->expectException('xml_format_exception');
- $this->expectExceptionMessage('Error parsing XML: Mismatched tag at line 20, char 23');
+ $this->expectExceptionMessage('Error parsing XML: Mismatched tag at line 18, char 23');
$xmlnew = xmlize($xml, 1, "UTF-8", true);
}
}