if (!
getenv('POSTGRES_HOST'
)) { $this->
markTestSkipped('Missing POSTGRES_HOST env variable'
);
} return self::
getDbalConnection('pdo-pgsql://postgres:password@'.
getenv('POSTGRES_HOST'
));
} public function getStore(): PersistingStoreInterface
{ $conn =
$this->
createPostgreSqlConnection();
return new DoctrineDbalPostgreSqlStore($conn);
} /**
* @requires extension pdo_sqlite
*
* @dataProvider getInvalidDrivers
*/
public function testInvalidDriver($connOrDsn) { $this->
expectException(InvalidArgumentException::
class);
$this->
expectExceptionMessage('The adapter "Symfony\Component\Lock\Store\DoctrineDbalPostgreSqlStore" does not support'
);