public function testFullyQualified()
 {
     $uri = dirname(__FILE__) . '/../../../../samples/custom/fully_qualified_assessmenttest.xml';
     $doc = new XmlDocument('2.1');
     $doc->load($uri);
     $doc->schemaValidate();
     $this->assertInstanceOf('qtism\\data\\storage\\xml\\XmlDocument', $doc);
     $this->assertInstanceOf('qtism\\data\\AssessmentTest', $doc->getDocumentComponent());
 }
 /**
  * Validate the compact AssessmentTest XML document according to the relevant XSD schema.
  * If $filename is provided, the file pointed by $filename will be used instead
  * of the default schema.
  */
 public function schemaValidate($filename = '')
 {
     if (empty($filename)) {
         $dS = DIRECTORY_SEPARATOR;
         // default xsd for AssessmentTest.
         $filename = dirname(__FILE__) . $dS . 'schemes' . $dS . 'qticompact_v1p0.xsd';
     }
     parent::schemaValidate($filename);
 }