MDL-56102 enrol_lti: Removed unused lines in unit test

This commit is contained in:
John Okely 2016-09-23 12:18:07 +08:00
parent 26162efe4a
commit 8e55ffc6c3

View file

@ -433,7 +433,6 @@ class enrol_lti_helper_testcase extends advanced_testcase {
/** /**
* Test set_xpath when an incorrect xpath expression is given. * Test set_xpath when an incorrect xpath expression is given.
* @expectedException coding_exception
*/ */
public function test_set_xpath_incorrect_xpath() { public function test_set_xpath_incorrect_xpath() {
$parameters = [ $parameters = [
@ -451,10 +450,9 @@ class enrol_lti_helper_testcase extends advanced_testcase {
$document = new \DOMDocument(); $document = new \DOMDocument();
$document->load(realpath(__DIR__ . '/fixtures/input.xml')); $document->load(realpath(__DIR__ . '/fixtures/input.xml'));
$xpath = new \DOMXpath($document); $xpath = new \DOMXpath($document);
$this->setExpectedException("coding_exception");
$function->invokeArgs(null, [$xpath, $parameters]); $function->invokeArgs(null, [$xpath, $parameters]);
$result = $document->saveXML();
$expected = file_get_contents(realpath(__DIR__ . '/fixtures/' . $expected));
$this->assertEquals($expected, $result);
} }
/** /**