/** * @expectedException oat\taoQtiItem\model\qti\exception\QtiModelException * @expectedExceptionMessageRegExp |^Wrong QTI item output format.*| */ public function testLoadWrongQtiXml() { $xmlStr = file_get_contents($this->getSamplePath('/authoring/loadWrongQtiXml.xml')); Authoring::loadQtiXml($xmlStr); }