markTestSkipped('sqlite not found, tests skipped.'); } $driver = new common_persistence_sql_dbal_Driver(); $persistence = $driver->connect($key, ['connection' => ['url' => 'sqlite:///:memory:']]); $pmProphecy = $this->prophesize(PersistenceManager::class); $pmProphecy->setServiceLocator(Argument::any())->willReturn(null); $pmProphecy->getPersistenceById($key)->willReturn($persistence); return $pmProphecy->reveal(); } }