/**
  * Test the exception when a wrong content is given to the parser
  *
  * @expectedException \common_Exception
  */
 public function testWrongContentToPack()
 {
     $testPacker = new QtiTestPacker();
     $directory = $this->getMockBuilder(\tao_models_classes_service_StorageDirectory::class)->disableOriginalConstructor()->getMock();
     $testPacker->packTest(new core_kernel_classes_Resource('foo'), $directory);
 }
 /**
  * Test the exception when a wrong content is given to the parser
  *
  * @expectedException \common_Exception
  */
 public function testWrongContentToPack()
 {
     $testPacker = new QtiTestPacker();
     $testPacker->packTest(new core_kernel_classes_Resource('foo'));
 }