Merge branch 'MDL-56102-master' of https://github.com/xow/moodle

This commit is contained in:
Dan Poltawski
2016-09-28 08:16:28 +01:00
+2 -4
View File
@@ -433,7 +433,6 @@ class enrol_lti_helper_testcase extends advanced_testcase {
/**
* Test set_xpath when an incorrect xpath expression is given.
* @expectedException coding_exception
*/
public function test_set_xpath_incorrect_xpath() {
$parameters = [
@@ -451,10 +450,9 @@ class enrol_lti_helper_testcase extends advanced_testcase {
$document = new \DOMDocument();
$document->load(realpath(__DIR__ . '/fixtures/input.xml'));
$xpath = new \DOMXpath($document);
$this->setExpectedException("coding_exception");
$function->invokeArgs(null, [$xpath, $parameters]);
$result = $document->saveXML();
$expected = file_get_contents(realpath(__DIR__ . '/fixtures/' . $expected));
$this->assertEquals($expected, $result);
}
/**