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