1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-11 08:59:45 +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());
}