| Línea 36... | 
            Línea 36... | 
          
          
            | 36 | 
                 * @dataProvider handler_info_data_provider
  | 
            36 | 
                 * @dataProvider handler_info_data_provider
  | 
          
          
            | 37 | 
                 * @param string $modname the name of the mod.
  | 
            37 | 
                 * @param string $modname the name of the mod.
  | 
          
          
            | 38 | 
                 * @param string $description description of the mod.
  | 
            38 | 
                 * @param string $description description of the mod.
  | 
          
          
            | 39 | 
                 * @param bool $expectexception whether we expect an exception during init or not.
  | 
            39 | 
                 * @param bool $expectexception whether we expect an exception during init or not.
  | 
          
          
            | 40 | 
                 */
  | 
            40 | 
                 */
  | 
          
          
            | 41 | 
                public function test_initialisation($modname, $description, $expectexception) {
  | 
            41 | 
                public function test_initialisation($modname, $description, $expectexception): void {
  | 
          
          
            | 42 | 
                    $this->resetAfterTest();
  | 
            42 | 
                    $this->resetAfterTest();
  | 
          
          
            | 43 | 
                    // Skip those cases we cannot init.
  | 
            43 | 
                    // Skip those cases we cannot init.
  | 
          
          
            | 44 | 
                    if ($expectexception) {
  | 
            44 | 
                    if ($expectexception) {
  | 
          
          
            | 45 | 
                        $this->expectException(\coding_exception::class);
  | 
            45 | 
                        $this->expectException(\coding_exception::class);
  | 
          
          
            | 46 | 
                        $handlerinfo = new import_handler_info($modname, $description, new import_strategy_file());
  | 
            46 | 
                        $handlerinfo = new import_handler_info($modname, $description, new import_strategy_file());
  |