/**
  * @param string $name
  * @param string $dir
  * @param string $subdir
  */
 private function _registerExtensionPsr4($name, $dir, $subdir)
 {
     $this->finder->addPsr4('Drupal\\' . $name . '\\', $dir . '/' . $subdir);
     // Re-add the PSR-0 test directory, for consistency's sake.
     if (is_dir($lib_tests = $dir . '/lib/Drupal/' . $name . '/Tests')) {
         $this->finder->addPsr0('Drupal\\' . $name . '\\Tests\\', $lib_tests);
     }
     $this->registered[$name] = 'psr-4';
 }