mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-38829 core: fix whitespace in xmlize test
This commit is contained in:
parent
f9628f871a
commit
8525d8466a
2 changed files with 1 additions and 3 deletions
|
@ -4,7 +4,6 @@
|
||||||
<question type="category">
|
<question type="category">
|
||||||
<category>
|
<category>
|
||||||
<text>$course$/Default for Scratch/input_samples</text>
|
<text>$course$/Default for Scratch/input_samples</text>
|
||||||
|
|
||||||
</category>
|
</category>
|
||||||
</question>
|
</question>
|
||||||
|
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
</name>
|
</name>
|
||||||
<questiontext format="html">
|
<questiontext format="html">
|
||||||
<text><![CDATA[<p>Type in {@ta@}.<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
|
<text><![CDATA[<p>Type in {@ta@}.<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
|
||||||
|
|
||||||
<text></text>
|
<text></text>
|
||||||
</generalfeedback>
|
</generalfeedback>
|
||||||
<defaultgrade>1.0000000</defaultgrade>
|
<defaultgrade>1.0000000</defaultgrade>
|
||||||
|
|
|
@ -53,7 +53,7 @@ class core_xmlize_testcase extends basic_testcase {
|
||||||
public function test_xmlimport_of_wrong_file() {
|
public function test_xmlimport_of_wrong_file() {
|
||||||
$xml = file_get_contents(__DIR__ . '/sample_questions_wrong.xml');
|
$xml = file_get_contents(__DIR__ . '/sample_questions_wrong.xml');
|
||||||
$this->expectException('xml_format_exception');
|
$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);
|
$xmlnew = xmlize($xml, 1, "UTF-8", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue