/** * Verify that TestModel import handlers are known and tested */ public function testTestModelImportHandlers() { $model = new TestModelService(['importHandlers' => array(new \taoQtiTest_models_classes_import_TestImport())]); $handlers = $model->getImportHandlers(); $this->assertCount(1, $handlers); $handler = reset($handlers); $this->assertInstanceOf('taoQtiTest_models_classes_import_TestImport', $handler); }