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); } }