ci: add 8.1
[m6w6/ext-pq] / tests / _skipif.inc
1 <?php
2 function _ext($ext) {
3 extension_loaded($ext) or die("skip $ext not loaded");
4 }
5 _ext("pq");
6 include "_setup.inc";
7 defined("PQ_DSN") or die("skip PQ_DSN undefined");
8 try {
9 new pq\Connection(PQ_DSN);
10 } catch (pq\Exception $e) {
11 die("skip could not connect to PQ_DSN ".$e->getMessage());
12 }