1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-26 20:04:44 +01:00
ext-pq/tests/_skipif.inc
Michael Wallner 3024b0b5a9 tests & fixes
2013-02-14 14:54:22 +01:00

13 lines
295 B
PHP

<?php
function _ext($ext) {
extension_loaded($ext) or die("skip $ext not loaded");
}
_ext("pq");
include "_setup.inc";
defined("PQ_DSN") or die("skip PQ_DSN undefined");
try {
new pq\Connection(PQ_DSN);
} catch (pq\Exception $e) {
die("skip could not connect to PQ_DSN ".$e->getMessage());
}