markTestSkipped('This test requires either ext/pgsql or pecl/pq'); } } public function testConnect(): \Generator { $connection = yield connect(ConnectionConfig::fromString('host=localhost user=postgres')); $this->assertInstanceOf(Connection::class, $connection); } public function testConnectInvalidUser(): Promise { $this->expectException(FailureException::class); return connect(ConnectionConfig::fromString('host=localhost user=invalid')); } }