public static function registerAll()
 {
     RacesEnumRegistrar::registerAll();
     GendersEnumRegistrar::registerAll();
     PropertiesEnumRegistrar::registerAll();
     PersonBackgroundEnumRegistrar::registerAll();
     GamingSessionEnumRegistrar::registerAll();
     ProfessionsEnumRegistrar::registerAll();
     ProfessionLevelsEnumRegistrar::registerAll();
     ExceptionalitiesEnumRegistrar::registerAll();
     StaminaEnumsRegistrar::registerAll();
     HealthEnumsRegistrar::registerAll();
     NameType::registerSelf();
 }
 protected function setUp()
 {
     ExceptionalitiesEnumRegistrar::registerAll();
     parent::setUp();
 }
<?php

// this file is for vendor/doctrine/bin/console and its testing purposes
use Doctrine\ORM\Tools\Console\ConsoleRunner;
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
$paths = [__DIR__ . '/../DrdPlus'];
$config = Setup::createAnnotationMetadataConfiguration($paths, true);
$cache = new \Doctrine\Common\Cache\ArrayCache();
$config->setMetadataCacheImpl($cache);
$config->setQueryCacheImpl($cache);
$driver = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(new \Doctrine\Common\Annotations\AnnotationReader(), $paths);
$config->setMetadataDriverImpl($driver);
$entityManager = EntityManager::create(['driver' => 'pdo_sqlite', 'path' => ':memory:'], $config);
\DrdPlus\Exceptionalities\EnumTypes\ExceptionalitiesEnumRegistrar::registerAll();
return ConsoleRunner::createHelperSet($entityManager);
 /**
  * @test
  */
 public function I_can_register_all_enums_at_once()
 {
     ExceptionalitiesEnumRegistrar::registerAll();
     self::assertTrue(Type::hasType(ExceptionalityChoiceType::EXCEPTIONALITY_CHOICE));
     self::assertTrue(Type::hasType(ExceptionalityFateType::EXCEPTIONALITY_FATE));
 }