Skip to content

Commit

Permalink
Additional tests for XmlDocumentTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Sep 23, 2016
1 parent b58ccb4 commit 8c6adf4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/qtismtest/data/storage/xml/XmlDocumentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,16 @@ public function testIncludeAssessmentSectionRefsNoComponent()
);
$doc->includeAssessmentSectionRefs();
}

public function testSaveNoComponent()
{
$doc = new XmlDocument();

$this->setExpectedException(
'qtism\data\storage\xml\XmlStorageException',
'The document cannot be saved. No document component object to be saved.'
);

$doc->save('path.xml');
}
}

0 comments on commit 8c6adf4

Please sign in to comment.