factory = new EntityManagerFactory(); } /** @test */ public function serviceIsCreated(): void { $sm = new ServiceManager(['services' => [ 'config' => [ 'debug' => true, 'entity_manager' => [ 'orm' => [ 'types' => [ ChronosDateTimeType::CHRONOS_DATETIME => ChronosDateTimeType::class, ], ], 'connection' => [ 'driver' => 'pdo_sqlite', ], ], ], ]]); $em = ($this->factory)($sm, EntityManager::class); $this->assertInstanceOf(EntityManager::class, $em); } }